@Test public void testDefaultTestsFilter() throws SuiteException { MatcherAssert.assertThat( new JunitSuite(new Condition.Fake(false)).tests(), Matchers.arrayWithSize(0)); }
@Override public final Class<?>[] tests() throws SuiteException { List<Class<?>> tests = new ArrayList<>(); for (SunshineTest test : this.suite.tests()) { try { tests.add(test.object()); } catch (TestException e) { throw new SuiteException(e); } } return tests.toArray(new Class[] {}); }
JunitSuite implements Suite<Class<?>[]> { @Override public final Class<?>[] tests() throws SuiteException { List<Class<?>> tests = new ArrayList<>(); for (SunshineTest test : this.suite.tests()) { try { tests.add(test.object()); } catch (TestException e) { throw new SuiteException(e); } } return tests.toArray(new Class[] {}); } }
JunitSuite implements Suite<Class<?>[]> { @Override public final Class<?>[] tests() throws SuiteException { List<Class<?>> tests = new ArrayList<>(); for (SunshineTest test : this.suite.tests()) { try { tests.add(test.object()); } catch (TestException e) { throw new SuiteException(e); } } return tests.toArray(new Class[] {}); } JunitSuite(Condition filter);  JunitSuite(FileSystem fileSystem, Condition filter);  JunitSuite(SunshineSuite classesAsSuite); }
JunitSuite implements Suite<Class<?>[]> { @Override public final Class<?>[] tests() throws SuiteException { List<Class<?>> tests = new ArrayList<>(); for (SunshineTest test : this.suite.tests()) { try { tests.add(test.object()); } catch (TestException e) { throw new SuiteException(e); } } return tests.toArray(new Class[] {}); } JunitSuite(Condition filter);  JunitSuite(FileSystem fileSystem, Condition filter);  JunitSuite(SunshineSuite classesAsSuite); @Override final Class<?>[] tests(); }
JunitSuite implements Suite<Class<?>[]> { @Override public final Class<?>[] tests() throws SuiteException { List<Class<?>> tests = new ArrayList<>(); for (SunshineTest test : this.suite.tests()) { try { tests.add(test.object()); } catch (TestException e) { throw new SuiteException(e); } } return tests.toArray(new Class[] {}); } JunitSuite(Condition filter);  JunitSuite(FileSystem fileSystem, Condition filter);  JunitSuite(SunshineSuite classesAsSuite); @Override final Class<?>[] tests();  }