Exemple #1
0
 public void testIsExplicit() {
   int x;
   assertTrue("isExplicit with a explicit", Flags.isExplicit(IConstants.AccExplicit));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccExplicit)
       assertTrue("isExplicit with a non-explicit", !Flags.isExplicit(flags[x]));
   }
 }
Exemple #2
0
 public void testIsStatic() {
   int x;
   assertTrue("isStatic with a static", Flags.isStatic(IConstants.AccStatic));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccStatic)
       assertTrue("isStatic with a non-static", !Flags.isStatic(flags[x]));
   }
 }
Exemple #3
0
 public void testIsAbstract() {
   int x;
   assertTrue("isAbstract with a abstract", Flags.isAbstract(IConstants.AccAbstract));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccAbstract)
       assertTrue("isAbstract with a non-abstract", !Flags.isAbstract(flags[x]));
   }
 }
Exemple #4
0
 public void testIsVirtual() {
   int x;
   assertTrue("isVirtual with a Virtual", Flags.isVirtual(IConstants.AccVirtual));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccVirtual)
       assertTrue("isVirtual with a non-Virtual", !Flags.isVirtual(flags[x]));
   }
 }
Exemple #5
0
 public void testIsVolatile() {
   int x;
   assertTrue("isVolatile with a Volatile", Flags.isVolatile(IConstants.AccVolatile));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccVolatile)
       assertTrue("isVolatile with a non-Volatile", !Flags.isVolatile(flags[x]));
   }
 }
Exemple #6
0
 public void testIsRegister() {
   int x;
   assertTrue("isRegister with a Register", Flags.isRegister(IConstants.AccRegister));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccRegister)
       assertTrue("isRegister with a non-Register", !Flags.isRegister(flags[x]));
   }
 }
Exemple #7
0
 public void testIsProtected() {
   int x;
   assertTrue("isProtected with a Protected", Flags.isProtected(IConstants.AccProtected));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccProtected)
       assertTrue("isProtected with a non-Protected", !Flags.isProtected(flags[x]));
   }
 }
Exemple #8
0
 public void testIsPrivate() {
   int x;
   assertTrue("isPrivate with a Private", Flags.isPrivate(IConstants.AccPrivate));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccPrivate)
       assertTrue("isPrivate with a non-Private", !Flags.isPrivate(flags[x]));
   }
 }
Exemple #9
0
 public void testIsInline() {
   int x;
   assertTrue("isInline with a Inline", Flags.isInline(IConstants.AccInline));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccInline)
       assertTrue("isInline with a non-Inline", !Flags.isInline(flags[x]));
   }
 }
Exemple #10
0
 public void testIsExtern() {
   int x;
   assertTrue("isExtern with a Extern", Flags.isExtern(IConstants.AccExtern));
   for (x = 0; x < flags.length; x++) {
     if (flags[x] != IConstants.AccExtern)
       assertTrue("isExtern with a non-Extern", !Flags.isExtern(flags[x]));
   }
 }