@Override public TestLauncher withJvmTestMethods(String testClass, String... methods) { withJvmTestMethods(testClass, CollectionUtils.toList(methods)); return this; }
@Override public TestLauncher withJvmTestClasses(Iterable<String> testClasses) { testClassNames.addAll(CollectionUtils.toList(testClasses)); return this; }
@Override public TestLauncher withTests(Iterable<? extends TestOperationDescriptor> descriptors) { operationDescriptors.addAll(CollectionUtils.toList(descriptors)); return this; }
@Override public TestLauncher withJvmTestClasses(String... classNames) { testClassNames.addAll(CollectionUtils.toList(classNames)); return this; }
private <T> void addAllReversed(List<T> list, TreeSet<T> set) { List<T> elements = CollectionUtils.toList(set); Collections.reverse(elements); list.addAll(elements); }