Ejemplo n.º 1
0
 @BeforeClass
 public static final void init() {
   try {
     extendedSecurityLevelImplChecker =
         ExtendedSecurityLevelImplChecker.getExtendedSecurityLevelImplChecker(null, false, false);
   } catch (Exception e) {
     // Wait for the failing reason
   }
 }
Ejemplo n.º 2
0
 @Test
 public final void levelMethodValid() {
   assertTrue(
       "Method which returns the ordered list of levels is valid (two or more levels).",
       extendedSecurityLevelImplChecker.isOrderedLevelMethodCorrect());
 }
Ejemplo n.º 3
0
 @Test
 public final void levelMethodAvailable() {
   assertTrue(
       "Method which returns the ordered list of levels available.",
       extendedSecurityLevelImplChecker.isOrderedLevelMethodAvailable());
 }
Ejemplo n.º 4
0
 @Test
 public final void invalidAnnotation() {
   assertTrue(
       "For every Id-Method the corresponding annotation is valid.",
       extendedSecurityLevelImplChecker.getInvalidIdFunctionAnnotation().isEmpty());
 }
Ejemplo n.º 5
0
 @Test
 public final void unavailableAnnotation() {
   assertTrue(
       "Id-Method for every specified level is valid.",
       extendedSecurityLevelImplChecker.getUnavailableIdFunctionAnnotation().isEmpty());
 }
Ejemplo n.º 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());
 }