"testSecurityCreateNewRule",
"this is a cat" );
Lifecycle.beginApplication( new HashMap<String, Object>() );
Lifecycle.beginCall();
MockIdentity mi = new MockIdentity();
mi.inject();
mi.create();
try {
impl.createNewRule( "testCreateNewRuleName22",
"an initial desc",
"testSecurityCreateNewRule",
"testSecurityCreateNewRule",
AssetFormats.DSL_TEMPLATE_RULE );
fail( "not allowed" );
} catch ( AuthorizationException e ) {
assertNotNull( e.getMessage() );
}
mi.addPermissionResolver( new PermissionResolver() {
public void filterSetByAction(Set<Object> arg0,
String arg1) {
}
public boolean hasPermission(Object arg0,