sec.allowUpdate( user ); sec.allowDelete( user );
sec.allowUpdate( user, new Details() ); sec.allowDelete( user, new Details() );
	public void testIsReady() {		prepareMocksWithUserDetails();				assertFalse( sec.isReady() );		sec.setCurrentDetails();		assertTrue( sec.isReady() );		sec.clearCurrentDetails();		assertFalse( sec.isReady() );				// don't need ready sec.sys.		sec.isReady( );		sec.isSystemType( null );			sec.allowLoad( user.getClass(), new Details() );		sec.allowCreation( user );		sec.allowUpdate( user );		sec.allowDelete( user );		sec.getRootId();		sec.getRootName();		sec.getSystemGroupName();		sec.getSystemGroupId();		sec.getUserGroupId();		sec.getUserGroupName();		sec.doAction(user,new SecureAction(){public <T extends IObject> T updateObject(T obj) {return null;};});		sec.copyToken(user,user);		sec.setCurrentDetails();		sec.clearCurrentDetails();		sec.newEvent(type);		sec.setCurrentEvent(event);		sec.emptyDetails();				// need ready sec.sys		try { sec.enableReadFilter( null ); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.disableReadFilter( null ); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.transientDetails( null ); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.managedDetails( null, null ); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.currentUserId(); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.currentGroupId(); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.leaderOfGroups(); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.currentUser(); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.currentGroup(); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.currentEvent(); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.currentUserIsAdmin(); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.getCurrentEvent(); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};		try { sec.addLog("",Image.class,1L); fail("Should throw ApiUsage"); } catch (ApiUsageException api) {};				// throw no matter what		try { sec.throwLoadViolation( user ); fail("Should throw SecViol"); } catch (SecurityViolation sv) {};		try { sec.throwCreationViolation( user ); fail("Should throw SecViol"); } catch (SecurityViolation sv) {};		try { sec.throwUpdateViolation( user ); fail("Should throw SecViol"); } catch (SecurityViolation sv) {};		try { sec.throwDeleteViolation( user ); fail("Should throw SecViol"); } catch (SecurityViolation sv) {};			}