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

Method testIsModuleOpen

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

Source from the content-addressed store, hash-verified

3092 }
3093
3094 @Test
3095 public void testIsModuleOpen()
3096 {
3097 String csrfChallengeTwo = new String("94cd2de560d89ef59fc450ecc647ff4d4a55c15d"); //CSRF Challenge 2 (Should have CSRF Counter of 0 for new user
3098 //Open all Modules First so that the Module Can Be Opened
3099 if(Setter.openAllModules(applicationRoot))
3100 {
3101 if(!Getter.isModuleOpen(applicationRoot, csrfChallengeTwo))
3102 fail("isModuleOpen returned False when the module should have been open");
3103 Setter.closeAllModules(applicationRoot);
3104 if(Getter.isModuleOpen(applicationRoot, csrfChallengeTwo))
3105 fail("isModuleOpen returned True when the module should have been closed");
3106 }
3107 else
3108 {
3109 fail("Could not mark All Modules as Opened");
3110 }
3111 }
3112
3113
3114 @Test

Callers

nothing calls this directly

Calls 3

openAllModulesMethod · 0.95
isModuleOpenMethod · 0.95
closeAllModulesMethod · 0.95

Tested by

no test coverage detected