• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / jmockit1 / 496

15 Nov 2025 05:33PM UTC coverage: 72.192% (-0.008%) from 72.2%
496

push

github

web-flow
Merge pull request #412 from hazendaz/renovate/major-spring-core

Update spring core to v7 (major)

5677 of 8360 branches covered (67.91%)

Branch coverage included in aggregate %.

11922 of 16018 relevant lines covered (74.43%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/main/src/main/java/mockit/internal/faking/FakeBridge.java
1
/*
2
 * MIT License
3
 * Copyright (c) 2006-2025 JMockit developers
4
 * See LICENSE file for full license text.
5
 */
6
package mockit.internal.faking;
7

8
import edu.umd.cs.findbugs.annotations.NonNull;
9
import edu.umd.cs.findbugs.annotations.Nullable;
10

11
import java.lang.reflect.Method;
12

13
import mockit.internal.ClassLoadingBridge;
14
import mockit.internal.state.TestRun;
15

16
public final class FakeBridge extends ClassLoadingBridge {
17
    @NonNull
18
    public static final ClassLoadingBridge MB = new FakeBridge();
1✔
19

20
    private FakeBridge() {
21
        super("$FB");
1✔
22
    }
1✔
23

24
    @NonNull
25
    @Override
26
    public Object invoke(@Nullable Object faked, Method method, @NonNull Object[] args) {
27
        if (TestRun.isInsideNoMockingZone()) {
1!
28
            return false;
×
29
        }
30

31
        TestRun.enterNoMockingZone();
1✔
32

33
        try {
34
            String fakeClassDesc = (String) args[0];
1✔
35

36
            if (notToBeMocked(faked, fakeClassDesc)) {
1✔
37
                return false;
1✔
38
            }
39

40
            Integer fakeStateIndex = (Integer) args[1];
1✔
41
            return TestRun.updateFakeState(fakeClassDesc, faked, fakeStateIndex);
1✔
42
        } finally {
43
            TestRun.exitNoMockingZone();
1✔
44
        }
45
    }
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc