""));
}
public void testLoggingPermission() {
try {
new LoggingPermission(null, null);
fail("should throw IllegalArgumentException");
} catch (NullPointerException e) {
}
try {
new LoggingPermission("", null);
fail("should throw IllegalArgumentException");
} catch (IllegalArgumentException e) {
}
try {
new LoggingPermission("bad name", null);
fail("should throw IllegalArgumentException");
} catch (IllegalArgumentException e) {
}
try {
new LoggingPermission("Control", null);
fail("should throw IllegalArgumentException");
} catch (IllegalArgumentException e) {
}
try {
new LoggingPermission("control",
"bad action");
fail("should throw IllegalArgumentException");
} catch (IllegalArgumentException e) {
}
new LoggingPermission("control", "");
new LoggingPermission("control", null);
}