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.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          // Verify it's a RuntimeException
29          RuntimeException instance = VisitInterruptedException.INSTANCE;
30          assertNotNull(instance);
31      }
32  }