@Test(expected = MavenExecutionException.class) public void throwMavenExecutionExceptionWithContentTest() { service.throwMavenExecutionException(Collections.nCopies(10, mock(Throwable.class))); }
void throwMavenExecutionException(final List<Throwable> exceptions) { if (exceptions.isEmpty()) { throw new MavenExecutionException(); } else { final String message = exceptions.stream() .map(Throwable::getMessage) .collect(Collectors.joining(",")); throw new MavenExecutionException(message); } }
ArchetypeServiceImpl implements ArchetypeService { void throwMavenExecutionException(final List<Throwable> exceptions) { if (exceptions.isEmpty()) { throw new MavenExecutionException(); } else { final String message = exceptions.stream() .map(Throwable::getMessage) .collect(Collectors.joining(",")); throw new MavenExecutionException(message); } } }
ArchetypeServiceImpl implements ArchetypeService { void throwMavenExecutionException(final List<Throwable> exceptions) { if (exceptions.isEmpty()) { throw new MavenExecutionException(); } else { final String message = exceptions.stream() .map(Throwable::getMessage) .collect(Collectors.joining(",")); throw new MavenExecutionException(message); } } ArchetypeServiceImpl(); @Inject  ArchetypeServiceImpl(final @Named("ioStrategy") IOService ioService,
                                final RepositoryService repositoryService,
                                final OrganizationalUnitService ouService,
                                final Event<ArchetypeListUpdatedEvent> archetypeListUpdatedEvent,
                                final ArchetypeConfigStorage archetypeConfigStorage,
                                final PathUtil pathUtil,
                                final ArchetypePreferencesManager archetypePreferencesManager,
                                final KieModuleService moduleService,
                                final POMService pomService); }
ArchetypeServiceImpl implements ArchetypeService { void throwMavenExecutionException(final List<Throwable> exceptions) { if (exceptions.isEmpty()) { throw new MavenExecutionException(); } else { final String message = exceptions.stream() .map(Throwable::getMessage) .collect(Collectors.joining(",")); throw new MavenExecutionException(message); } } ArchetypeServiceImpl(); @Inject  ArchetypeServiceImpl(final @Named("ioStrategy") IOService ioService,
                                final RepositoryService repositoryService,
                                final OrganizationalUnitService ouService,
                                final Event<ArchetypeListUpdatedEvent> archetypeListUpdatedEvent,
                                final ArchetypeConfigStorage archetypeConfigStorage,
                                final PathUtil pathUtil,
                                final ArchetypePreferencesManager archetypePreferencesManager,
                                final KieModuleService moduleService,
                                final POMService pomService); void onNewOrganizationalUnitEvent(final @Observes NewOrganizationalUnitEvent newOrganizationalUnitEvent); @Override void add(final GAV archetypeGav); @Override void add(final GAV archetypeGav,
                    final GAV templateGav); @Override PaginatedArchetypeList list(final Integer page,
                                       final Integer pageSize,
                                       final String filter); @Override PaginatedArchetypeList list(final Integer page,
                                       final Integer pageSize,
                                       final String filter,
                                       final ArchetypeStatus status); @Override void delete(final String alias); @Override void validateAll(); @Override void validate(final String alias); @Override Repository getTemplateRepository(final String alias); @Override Optional<Repository> getBaseKieTemplateRepository(); @Override Optional<Archetype> getBaseKieArchetype(); }
ArchetypeServiceImpl implements ArchetypeService { void throwMavenExecutionException(final List<Throwable> exceptions) { if (exceptions.isEmpty()) { throw new MavenExecutionException(); } else { final String message = exceptions.stream() .map(Throwable::getMessage) .collect(Collectors.joining(",")); throw new MavenExecutionException(message); } } ArchetypeServiceImpl(); @Inject  ArchetypeServiceImpl(final @Named("ioStrategy") IOService ioService,
                                final RepositoryService repositoryService,
                                final OrganizationalUnitService ouService,
                                final Event<ArchetypeListUpdatedEvent> archetypeListUpdatedEvent,
                                final ArchetypeConfigStorage archetypeConfigStorage,
                                final PathUtil pathUtil,
                                final ArchetypePreferencesManager archetypePreferencesManager,
                                final KieModuleService moduleService,
                                final POMService pomService); void onNewOrganizationalUnitEvent(final @Observes NewOrganizationalUnitEvent newOrganizationalUnitEvent); @Override void add(final GAV archetypeGav); @Override void add(final GAV archetypeGav,
                    final GAV templateGav); @Override PaginatedArchetypeList list(final Integer page,
                                       final Integer pageSize,
                                       final String filter); @Override PaginatedArchetypeList list(final Integer page,
                                       final Integer pageSize,
                                       final String filter,
                                       final ArchetypeStatus status); @Override void delete(final String alias); @Override void validateAll(); @Override void validate(final String alias); @Override Repository getTemplateRepository(final String alias); @Override Optional<Repository> getBaseKieTemplateRepository(); @Override Optional<Archetype> getBaseKieArchetype();  }