示例#1
0
 @BeforeClass
 public static final void init() {
   try {
     extendedSecurityLevelImplChecker =
         ExtendedSecurityLevelImplChecker.getExtendedSecurityLevelImplChecker(null, false, false);
   } catch (Exception e) {
     // Wait for the failing reason
   }
 }
示例#2
0
 @Test
 public final void levelMethodValid() {
   assertTrue(
       "Method which returns the ordered list of levels is valid (two or more levels).",
       extendedSecurityLevelImplChecker.isOrderedLevelMethodCorrect());
 }
示例#3
0
 @Test
 public final void levelMethodAvailable() {
   assertTrue(
       "Method which returns the ordered list of levels available.",
       extendedSecurityLevelImplChecker.isOrderedLevelMethodAvailable());
 }
示例#4
0
 @Test
 public final void invalidAnnotation() {
   assertTrue(
       "For every Id-Method the corresponding annotation is valid.",
       extendedSecurityLevelImplChecker.getInvalidIdFunctionAnnotation().isEmpty());
 }
示例#5
0
 @Test
 public final void unavailableAnnotation() {
   assertTrue(
       "Id-Method for every specified level is valid.",
       extendedSecurityLevelImplChecker.getUnavailableIdFunctionAnnotation().isEmpty());
 }
示例#6
0
 @Test
 public final void illegalLevel() {
   assertTrue(
       "Level names contain valid signs and are not the same as the internal levels.",
       extendedSecurityLevelImplChecker.getIllegalLevelNames().isEmpty());
 }