-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugTest1.java
More file actions
32 lines (24 loc) · 498 Bytes
/
DebugTest1.java
File metadata and controls
32 lines (24 loc) · 498 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package debug;
import org.junit.jupiter.api.Test;
/**
* @date 2022/4/18
*/
public class DebugTest1 {
@Test
public void t1() {
for (int i = 0; i < 5; i++) {
System.out.println(i);
}
}
private String num = "a";
@Test
void t2() {
System.out.println(num);
try {
Integer.valueOf(num);
}catch (Exception e){
e.printStackTrace();
throw new NumberFormatException();
}
}
}