1 package org.junit.tests.junit3compatibility; 2 3 import static org.junit.Assert.assertNull; 4 5 import org.junit.Test; 6 import org.junit.internal.builders.SuiteMethodBuilder; 7 8 public class ClassRequestTest { 9 public static class PrivateSuiteMethod { 10 static junit.framework.Test suite() { 11 return null; 12 } 13 } 14 15 @Test 16 public void noSuiteMethodIfMethodPrivate() throws Throwable { 17 assertNull(new SuiteMethodBuilder() 18 .runnerForClass(PrivateSuiteMethod.class)); 19 } 20 }