History

Some experimental tests added

Dmitry Kabak (userdima committed 13 years ago

Commit 793a5e81 parent 19a9d493 files · +270 −1Browse files

Showing the changes to java/tests/DebugTest.java (1 of 3 files). Show all

Unified · Split

java/tests/DebugTest.java+30−0
@@ -0,0 +1,30 @@
1
2import static utils.Utils.*;
3
4/**
5 * This file is just to test wm/deb and sbl
6 * file generation. It is useless by itself.
7 */
8
9public class DebugTest {
10 private static final int SLEEP_AMOUNT = 10000;
11
12 public static int someAnotherFunction() {
13 return 6-7;
14 }
15
16 public static void someFunction() throws InterruptedException {
17 Thread.sleep(SLEEP_AMOUNT);
18 long val = System.currentTimeMillis() / 2;
19 for (int i = 0; i < 100; i++) {
20 val *= someAnotherFunction();
21 throw new IllegalArgumentException("use your debugger");
22 }
23 }
24
25 public static void main(String[] args) throws InterruptedException {
26 assertEquals(42, 6 * 7);
27 Thread.sleep(SLEEP_AMOUNT);
28 someFunction();
29 }
30}