Skip to content

Commit a6b4e4d

Browse files
committed
Added false tests
1 parent af50728 commit a6b4e4d

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

src/test/java/org/utplsql/maven/plugin/util/StringUtilTest.java

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import org.junit.jupiter.api.Test;
44

5+
import static org.junit.jupiter.api.Assertions.assertFalse;
56
import static org.junit.jupiter.api.Assertions.assertTrue;
67
import static org.utplsql.maven.plugin.util.StringUtil.isBlank;
78
import static org.utplsql.maven.plugin.util.StringUtil.isEmpty;
@@ -11,22 +12,42 @@
1112
class StringUtilTest {
1213

1314
@Test
14-
void is_empty() {
15+
void is_empty_true() {
1516
assertTrue(isEmpty(""));
1617
}
1718

1819
@Test
19-
void is_not_empty() {
20+
void is_empty_false() {
21+
assertFalse(isEmpty("abc"));
22+
}
23+
24+
@Test
25+
void is_not_empty_true() {
2026
assertTrue(isNotEmpty("abc"));
2127
}
2228

2329
@Test
24-
void is_blank() {
30+
void is_not_empty_false() {
31+
assertFalse(isNotEmpty(""));
32+
}
33+
34+
@Test
35+
void is_blank_true() {
2536
assertTrue(isBlank(" "));
2637
}
2738

2839
@Test
29-
void is_not_blank() {
40+
void is_blank_false() {
41+
assertFalse(isBlank("abc"));
42+
}
43+
44+
@Test
45+
void is_not_blank_true() {
3046
assertTrue(isNotBlank("abc"));
3147
}
48+
49+
@Test
50+
void is_not_blank_false() {
51+
assertFalse(isNotBlank(""));
52+
}
3253
}

0 commit comments

Comments
 (0)