1 package mockit.integration.junit4; 2 3 import mockit.Mock; 4 import mockit.MockUp; 5 6 import org.junit.BeforeClass; 7 import org.junit.Ignore; 8 import org.junit.runner.RunWith; 9 import org.junit.runners.Suite; 10 11 @Ignore 12 @RunWith(Suite.class) 13 @Suite.SuiteClasses({ MockDependencyTest.class, UseDependencyTest.class }) 14 public final class TestSuiteWithBeforeClass { 15 @BeforeClass 16 public static void setUpSuiteWideFakes() { 17 new MockUp<AnotherDependency>() { 18 @Mock 19 boolean alwaysTrue() { 20 return false; 21 } 22 }; 23 24 AnotherDependency.mockedAtSuiteLevel = true; 25 } 26 }