String[] strParam = {"", null};
String[] actionParam = {"", null, "ActionName"};
try {
AuthPermission ap = new AuthPermission("AuthPermissionName", null);
assertNotNull("Null object returned", ap);
assertEquals("AuthPermissionName", ap.getName());
assertEquals("", ap.getActions());
} catch (Exception e) {
fail("Unexpected exception: " + e);
}
for (int i = 0; i < strParam.length; i++) {
try {
AuthPermission ap = new AuthPermission(strParam[i], null);
} catch (Exception e) {
}
}
for (int i = 0; i < actionParam.length; i++) {
try {
AuthPermission ap = new AuthPermission("AuthPermissionName", actionParam[i]);
assertNotNull("Null object returned", ap);
assertEquals("", ap.getActions());
} catch (Exception e) {
fail("Unexpected exception: " + e);
}
}