Skip to content

Commit bf72a07

Browse files
committed
🍱 🚑 ➖
1 parent 41a6b7e commit bf72a07

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

javaCodeTest/src/test/java/JavaTest1.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,4 +358,22 @@ void t21() {
358358
System.out.println(now.minus(Duration.ofHours(2)));
359359

360360
}
361+
362+
@Test
363+
void t22() {
364+
365+
if (t221() || t222()) {
366+
System.out.println("命中");
367+
}
368+
369+
}
370+
371+
private static boolean t221() {
372+
System.out.println("第一个boolean");
373+
return true;
374+
}
375+
private static boolean t222() {
376+
System.out.println("第二个boolean");
377+
return true;
378+
}
361379
}

0 commit comments

Comments
 (0)