RepositoryCopierImpl implements RepositoryCopier { @Override public String makeSafeRepositoryName(final String oldName) { return oldName.replace(' ', '-'); } RepositoryCopierImpl(); @Inject  RepositoryCopierImpl(final @Named("ioStrategy") IOService ioService,
                                final Event<NewBranchEvent> newBranchEventEvent,
                                final ConfiguredRepositories configuredRepositories,
                                final RepositoryService repositoryService,
                                final SessionInfo sessionInfo); @Override Repository copy(final OrganizationalUnit targetOU,
                           final String newRepositoryName,
                           final Path originRoot); @Override void copy(final Path originRoot,
                     final Path targetRoot); @Override void copy(Space space,
                     Path originRoot,
                     Path targetRoot); void fireNewBranchEvent(final Path targetRoot,
                                   final org.uberfire.java.nio.file.Path nioTargetRepositoryRoot,
                                   final org.uberfire.java.nio.file.Path originRepositoryRoot); void fireNewBranchEvent(final Space space,
                                   final Path targetRoot,
                                   final org.uberfire.java.nio.file.Path nioTargetRepositoryRoot,
                                   final org.uberfire.java.nio.file.Path originRepositoryRoot); @Override String makeSafeRepositoryName(final String oldName);  }
@Test public void makeSafeName() throws Exception { assertEquals("hello", copier.makeSafeRepositoryName("hello")); assertEquals("test-this", copier.makeSafeRepositoryName("test this")); }