1
2
3
4
5
6 package mockit.internal.util;
7
8 import static org.junit.jupiter.api.Assertions.assertNotNull;
9 import static org.junit.jupiter.api.Assertions.assertSame;
10
11 import org.junit.jupiter.api.Test;
12
13 final class VisitInterruptedExceptionTest {
14
15 @Test
16 void instanceIsNotNull() {
17 assertNotNull(VisitInterruptedException.INSTANCE);
18 }
19
20 @Test
21 void instanceIsSingleton() {
22 assertSame(VisitInterruptedException.INSTANCE, VisitInterruptedException.INSTANCE);
23 }
24
25 @Test
26 void isRuntimeException() {
27 assertNotNull(VisitInterruptedException.INSTANCE);
28
29 RuntimeException instance = VisitInterruptedException.INSTANCE;
30 assertNotNull(instance);
31 }
32 }