@Test public void checkAdminCodeTest() { Set<Integer> code = new HashSet<>(); code.add(17); code.add(25); code.add(215); code.add(200); code.add(207); for (int i = 0; i < 400; i++) { boolean boo = Permission.needAdminPerm(i); if (boo) { Assert.assertTrue(code.contains(i)); } } }
public static boolean needAdminPerm(Integer code) { return ADMIN_CODE.contains(code); }
Permission { public static boolean needAdminPerm(Integer code) { return ADMIN_CODE.contains(code); } }
Permission { public static boolean needAdminPerm(Integer code) { return ADMIN_CODE.contains(code); }  }
Permission { public static boolean needAdminPerm(Integer code) { return ADMIN_CODE.contains(code); }  static boolean checkPermission(byte neededPerm, byte ownedPerm); static byte parsePermFromString(String permString); static void parseResourcePerms(PlainAccessResource plainAccessResource, Boolean isTopic,
        List<String> resources); static boolean needAdminPerm(Integer code); }
Permission { public static boolean needAdminPerm(Integer code) { return ADMIN_CODE.contains(code); }  static boolean checkPermission(byte neededPerm, byte ownedPerm); static byte parsePermFromString(String permString); static void parseResourcePerms(PlainAccessResource plainAccessResource, Boolean isTopic,
        List<String> resources); static boolean needAdminPerm(Integer code); static final byte DENY; static final byte ANY; static final byte PUB; static final byte SUB; static final Set<Integer> ADMIN_CODE; }