View Javadoc
1   /*
2    * MIT License
3    * Copyright (c) 2006-2025 JMockit developers
4    * See LICENSE file for full license text.
5    */
6   package integration.tests.other.control.structures;
7   
8   import org.junit.jupiter.api.Test;
9   
10  import integration.tests.CoverageTest;
11  
12  class TryCatchFinallyStatementsTest extends CoverageTest {
13      TryCatchFinallyStatements tested;
14  
15      @Test
16      void tryCatch() {
17          tested.tryCatch();
18      }
19  
20      @Test
21      void tryCatchWhichThrowsAndCatchesException() {
22          tested.tryCatchWhichThrowsAndCatchesException();
23      }
24  }