File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/test/java/org/woehlke/java/simpleworklist/domain/db/user Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 55import org .junit .jupiter .api .Test ;
66import org .springframework .boot .test .context .SpringBootTest ;
77import org .springframework .security .crypto .password .PasswordEncoder ;
8- import org .woehlke .java .simpleworklist .config .AbstractIntegrationTest ;
98
109import org .springframework .beans .factory .annotation .Autowired ;
1110import org .woehlke .java .simpleworklist .domain .db .user .account .UserAccountForm ;
1211
13- import static org .junit .jupiter .api .Assertions .assertFalse ;
14- import static org .junit .jupiter .api .Assertions .assertTrue ;
12+ import static org .junit .jupiter .api .Assertions .*;
1513
1614
1715@ Slf4j
1816@ SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment .DEFINED_PORT )
19- public class UserAccountPasswordEncodedIntegrationTest extends AbstractIntegrationTest {
17+ public class UserAccountPasswordEncodedIntegrationTest {
2018
2119 @ Autowired
2220 private PasswordEncoder encoder ;
2321
2422 @ Test
2523 public void testEncoderIsWired (){
26- assertTrue (encoder != null );
24+ assertNotNull (encoder );
2725 }
2826
2927 /**
@@ -37,7 +35,7 @@ public void testGetUserPasswordEncoded(){
3735 u .setUserPassword ("pwd01_ASDFGHJKLMOP_22" );
3836 u .setUserPasswordConfirmation ("pwd01_ASDFGHJKLMOP_22" );
3937 String encodedPassword = encoder .encode (u .getUserPassword ());
40- assertTrue (encodedPassword .compareTo (encoder .encode (u .getUserPassword ()))==0 );
38+ assertFalse (encodedPassword .compareTo (encoder .encode (u .getUserPassword ()))==0 );
4139 }
4240
4341 @ Test
You can’t perform that action at this time.
0 commit comments