View Javadoc
1   /*
2    * MIT License
3    * Copyright (c) 2006-2025 JMockit developers
4    * See LICENSE file for full license text.
5    */
6   package mockit.integration.junit4;
7   
8   import mockit.Mock;
9   import mockit.MockUp;
10  
11  import org.junit.BeforeClass;
12  import org.junit.Ignore;
13  import org.junit.runner.RunWith;
14  import org.junit.runners.Suite;
15  
16  @Ignore
17  @RunWith(Suite.class)
18  @Suite.SuiteClasses({ MockDependencyTest.class, UseDependencyTest.class })
19  public final class TestSuiteWithBeforeClass {
20      @BeforeClass
21      public static void setUpSuiteWideFakes() {
22          new MockUp<AnotherDependency>() {
23              @Mock
24              boolean alwaysTrue() {
25                  return false;
26              }
27          };
28  
29          AnotherDependency.mockedAtSuiteLevel = true;
30      }
31  }