MCPcopy Create free account
hub / github.com/OWASP/SecurityShepherd / testGetClassCount

Method testGetClassCount

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

Source from the content-addressed store, hash-verified

779
780
781 @Test
782 public void testGetClassCount()
783 {
784 String className = new String("NewClassForGetCount");
785 try
786 {
787 findCreateClassId(className);
788 }
789 catch(Exception e)
790 {
791 log.fatal("Could not Find or Create Class : " + e.toString());
792 fail("Could not Create/Find Class");
793 }
794 int classCount = Getter.getClassCount(applicationRoot);
795 if(classCount < 1)
796 {
797 fail("Class Count Too Low to Pass");
798 }
799 else
800 {
801 log.debug("PASS: Atleast One Class Returned");
802 return;
803 }
804 }
805
806
807 @Test

Callers

nothing calls this directly

Calls 2

findCreateClassIdMethod · 0.95
getClassCountMethod · 0.95

Tested by

no test coverage detected