@Test public void testShouldCreateDescription() { class A { } class B { } Description d = JUnit4Provider.createTestsDescription( asList( A.class, B.class ) ); assertThat( d, is( notNullValue() ) ); assertThat( d.getDisplayName(), not( isEmptyOrNullString() ) ); assertThat( d.getDisplayName(), is( "null" ) ); assertThat( d.getChildren(), hasSize( 2 ) ); Description a = createSuiteDescription( A.class ); Description b = createSuiteDescription( B.class ); assertThat( d.getChildren(), contains( a, b ) ); }
static Description createTestsDescription( Iterable<Class<?>> classes ) { Description description = createDescription( "null" ); for ( Class<?> clazz : classes ) { description.addChild( createDescription( clazz.getName() ) ); } return description; }
JUnit4Provider extends AbstractProvider { static Description createTestsDescription( Iterable<Class<?>> classes ) { Description description = createDescription( "null" ); for ( Class<?> clazz : classes ) { description.addChild( createDescription( clazz.getName() ) ); } return description; } }
JUnit4Provider extends AbstractProvider { static Description createTestsDescription( Iterable<Class<?>> classes ) { Description description = createDescription( "null" ); for ( Class<?> clazz : classes ) { description.addChild( createDescription( clazz.getName() ) ); } return description; } JUnit4Provider( ProviderParameters bootParams ); }
JUnit4Provider extends AbstractProvider { static Description createTestsDescription( Iterable<Class<?>> classes ) { Description description = createDescription( "null" ); for ( Class<?> clazz : classes ) { description.addChild( createDescription( clazz.getName() ) ); } return description; } JUnit4Provider( ProviderParameters bootParams ); @Override RunResult invoke( Object forkTestSet ); @Override Iterable<Class<?>> getSuites(); }
JUnit4Provider extends AbstractProvider { static Description createTestsDescription( Iterable<Class<?>> classes ) { Description description = createDescription( "null" ); for ( Class<?> clazz : classes ) { description.addChild( createDescription( clazz.getName() ) ); } return description; } JUnit4Provider( ProviderParameters bootParams ); @Override RunResult invoke( Object forkTestSet ); @Override Iterable<Class<?>> getSuites();  }