MCPcopy Index your code
hub / github.com/OWASP/SecurityShepherd / testFindPlayerById

Method testFindPlayerById

src/test/java/dbProcs/GetterTest.java:585–614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583 }
584
585 @Test
586 public void testFindPlayerById()
587 {
588 String userName = new String("UserForPlayerIdSearch");
589 try
590 {
591 if(verifyTestUser(applicationRoot, userName, userName))
592 {
593 String userId = Getter.getUserIdFromName(applicationRoot, userName);
594 if(Getter.findPlayerById(applicationRoot, userId))
595 {
596 log.debug("PASS: Found user");
597 return;
598 }
599 else
600 {
601 fail("Could Not Find Player in Player Search");
602 }
603 }
604 else
605 {
606 fail("Could not verify user (No Exception Failure)");
607 }
608 }
609 catch(Exception e)
610 {
611 log.fatal("Could not Verify User: " + e.toString());
612 fail("Could not Verify User " + userName);
613 }
614 }
615
616
617 @Test

Callers

nothing calls this directly

Calls 3

verifyTestUserMethod · 0.95
getUserIdFromNameMethod · 0.95
findPlayerByIdMethod · 0.95

Tested by

no test coverage detected