Code example for LogRecord

Methods: getLevel, getLoggerName, getMessage, getParameters, getResourceBundleName, getSourceClassName, getSourceMethodName, getThrown

0
	public void testLogrb_LevelStringStringString_NullMsg() { 
		this.sharedLogger.setLevel(Level.INFO);
		this.sharedLogger.logrb(Level.INFO, null, null, null, null);
		LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop();
		assertTrue(CallVerificationStack.getInstance().empty());
		assertSame(r.getLoggerName(), this.sharedLogger.getName());
		assertNull(r.getMessage());
		assertSame(r.getResourceBundleName(), null);
		assertSame(r.getSourceClassName(), null);
		assertSame(r.getSourceMethodName(), null);
		assertSame(r.getLevel(), Level.INFO);
		assertNull(r.getParameters());
		assertSame(r.getThrown(), null);
	} 
 
	/* 
	 * Test logrb(Level, String, String, String) with null level. 
	 */ 
	public void testLogrb_LevelStringStringString_NullLevel() { 
		// this.sharedLogger.setLevel(Level.OFF); 
		try {