Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4d00a8c

Browse files
wip: test stability
1 parent 69d8652 commit 4d00a8c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package spp.demo.test;
2+
3+
import org.junit.jupiter.api.Disabled;
4+
import org.junit.jupiter.api.Test;
5+
6+
public class TestStabilityTest {
7+
8+
@Test
9+
public void success100Percent() {
10+
}
11+
12+
@Test
13+
public void fail100Percent() {
14+
throw new RuntimeException("fail 100%");
15+
}
16+
17+
@Test
18+
public void fail50Percent() {
19+
if (Math.random() > 0.5) {
20+
throw new RuntimeException("fail 50%");
21+
}
22+
}
23+
24+
@Disabled
25+
@Test
26+
public void neverExecuted() {
27+
}
28+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /