WorkspaceProjectMigrationServiceImpl implements WorkspaceProjectMigrationService { private void fireNewProjectEvents(Collection<Repository> newRepositories) { for (final Repository repository : newRepositories) { final WorkspaceProject newWorkspaceProject = workspaceProjectService.resolveProject(repository); newProjectEvent.fire(new NewProjectEvent(newWorkspaceProject)); } } WorkspaceProjectMigrationServiceImpl(); @Inject  WorkspaceProjectMigrationServiceImpl(final WorkspaceProjectService workspaceProjectService,
                                                final RepositoryService repositoryService,
                                                final OrganizationalUnitService organizationalUnitService,
                                                final PathUtil pathUtil,
                                                final Event<NewProjectEvent> newProjectEvent,
                                                final ModuleService<? extends Module> moduleService,
                                                final SpaceConfigStorageRegistry spaceConfigStorageRegistry); @Override void migrate(final WorkspaceProject legacyWorkspaceProject); static final String REMOTE_ORIGIN_REF; }
@Test public void fireNewProjectEvents() throws Exception { verify(newProjectEvent, times(2)).fire(newProjectEventArgumentCaptor.capture()); final List<NewProjectEvent> allValues = newProjectEventArgumentCaptor.getAllValues(); assertNotNull(allValues.get(0).getWorkspaceProject()); assertNotNull(allValues.get(1).getWorkspaceProject()); }