1 /*
2 * MIT License
3 * Copyright (c) 2006-2025 JMockit developers
4 * See LICENSE file for full license text.
5 */
6 package integration.tests;
7
8 import org.junit.jupiter.api.Test;
9
10 class MultiThreadedCodeTest extends CoverageTest {
11 MultiThreadedCode tested;
12
13 @Test
14 void nonBlockingOperation() throws Exception {
15 Thread worker = MultiThreadedCode.nonBlockingOperation();
16 worker.join();
17
18 assertLines(19, 24, 4);
19 assertLine(19, 1, 1, 1);
20 assertLine(23, 1, 1, 1);
21 assertLine(24, 1, 1, 1);
22 }
23 }