try { sec.allowUpdate( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {}; try { sec.allowDelete( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};
try { sec.allowUpdate( null,null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {}; try { sec.allowDelete( null,null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};
	public void testNullChecksOnAllMethods() throws Exception {		prepareMocksWithRootDetails();		sec.setCurrentDetails();				// can handle nulls		sec.isSystemType( null );			sec.copyToken( null,null);		sec.newEvent( null );		sec.setCurrentEvent( null );				// uses Springs assert		try { sec.allowLoad( null,null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.allowCreation( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.allowUpdate( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.allowDelete( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.doAction( null,null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.addLog( null, null,null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.throwLoadViolation( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.throwCreationViolation( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.throwUpdateViolation( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};		try { sec.throwDeleteViolation( null ); fail("Should throw IllegalArg"); } catch (IllegalArgumentException iae) {};				// api usage		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) {};			}