Skip to content

Commit 2225509

Browse files
BAEL-227 - Renaming test to follow BDD convention
1 parent 4e1a0d4 commit 2225509

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎mutation-testing/src/test/java/com/baeldung/mutation/test/TestPalindrome.java‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,26 @@
88
import com.baeldung.testing.mutation.Palindrome;
99

1010
public class TestPalindrome {
11+
@Test
12+
public void whenEmptyString_thanAccept() {
13+
Palindrome palindromeTester = new Palindrome();
14+
assertTrue(palindromeTester.isPalindrome("noon"));
15+
}
1116

1217
@Test
13-
public void acceptsPalindrome() {
18+
public void whenPalindrom_thanAccept() {
1419
Palindrome palindromeTester = new Palindrome();
1520
assertTrue(palindromeTester.isPalindrome("noon"));
1621
}
1722

1823
@Test
19-
public void rejectsNonPalindrome(){
24+
public void whenNotPalindrom_thanReject(){
2025
Palindrome palindromeTester = new Palindrome();
2126
assertFalse(palindromeTester.isPalindrome("box"));
2227
}
2328

2429
@Test
25-
public void rejectsNearPalindrome(){
30+
public void whenNearPalindrom_thanReject(){
2631
Palindrome palindromeTester = new Palindrome();
2732
assertFalse(palindromeTester.isPalindrome("neon"));
2833
}

0 commit comments

Comments
 (0)