@@ -13,54 +13,54 @@ public class MatchWordsUnitTest {
1313 @ Test
1414 public void givenText_whenCallingStringContains_shouldMatchWords () {
1515 final boolean result = MatchWords .containsWords (inputString , words );
16- assertThat (result ).isEqualTo ( true );
16+ assertThat (result ).isTrue ( );
1717 }
1818
1919 @ Test
2020 public void givenText_whenCallingJava8_shouldMatchWords () {
2121 final boolean result = MatchWords .containsWordsJava8 (inputString , words );
22- assertThat (result ).isEqualTo ( true );
22+ assertThat (result ).isTrue ( );
2323 }
2424
2525 @ Test
2626 public void givenText_whenCallingJava8_shouldNotMatchWords () {
2727 final boolean result = MatchWords .containsWordsJava8 (wholeInput , words );
28- assertThat (result ).isEqualTo ( false );
28+ assertThat (result ).isFalse ( );
2929 }
3030
3131 @ Test
3232 public void givenText_whenCallingPattern_shouldMatchWords () {
3333 final boolean result = MatchWords .containsWordsPatternMatch (inputString , words );
34- assertThat (result ).isEqualTo ( true );
34+ assertThat (result ).isTrue ( );
3535 }
3636
3737 @ Test
3838 public void givenText_whenCallingAhoCorasick_shouldMatchWords () {
3939 final boolean result = MatchWords .containsWordsAhoCorasick (inputString , words );
40- assertThat (result ).isEqualTo ( true );
40+ assertThat (result ).isTrue ( );
4141 }
4242
4343 @ Test
4444 public void givenText_whenCallingAhoCorasick_shouldNotMatchWords () {
4545 final boolean result = MatchWords .containsWordsAhoCorasick (wholeInput , words );
46- assertThat (result ).isEqualTo ( false );
46+ assertThat (result ).isFalse ( );
4747 }
4848
4949 @ Test
5050 public void givenText_whenCallingIndexOf_shouldMatchWords () {
5151 final boolean result = MatchWords .containsWordsIndexOf (inputString , words );
52- assertThat (result ).isEqualTo ( true );
52+ assertThat (result ).isTrue ( );
5353 }
5454
5555 @ Test
5656 public void givenText_whenCallingArrayList_shouldMatchWords () {
5757 final boolean result = MatchWords .containsWordsArray (inputString , words );
58- assertThat (result ).isEqualTo ( true );
58+ assertThat (result ).isTrue ( );
5959 }
6060
6161 @ Test
6262 public void givenText_whenCallingArrayList_shouldNotMatchWords () {
6363 final boolean result = MatchWords .containsWordsArray (wholeInput , words );
64- assertThat (result ).isEqualTo ( false );
64+ assertThat (result ).isFalse ( );
6565 }
6666}
0 commit comments