harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r434363 [3/3] - in /incubator/harmony/enhanced/classlib/trunk/modules/logging/src: main/java/java/util/logging/Logger.java test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java
Date Thu, 24 Aug 2006 09:55:45 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java?rev=434363&r1=434362&r2=434363&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java
Thu Aug 24 02:55:45 2006
@@ -1531,12 +1531,21 @@
 	 * logging level set.
 	 */
 	public void testEntering_StringStringObjects_Null() {
-		this.sharedLogger.setLevel(Level.FINER);
-		try {
-			this.sharedLogger.entering(null, null, (Object[]) null);
-			fail("Should throw NullPointerException!");
-		} catch (NullPointerException e) {
-		}
+		sharedLogger.setLevel(Level.FINER);
+		sharedLogger.entering(null, null, (Object[]) null);
+		// regression test for Harmony-1265
+		LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop();
+		assertTrue(CallVerificationStack.getInstance().empty());
+		assertSame(sharedLogger.getName(), r.getLoggerName());
+		assertEquals("ENTRY", r.getMessage());
+		assertSame(sharedLogger.getResourceBundleName(), r
+				.getResourceBundleName());
+		assertSame(sharedLogger.getResourceBundle(), r.getResourceBundle());
+		assertNull(r.getSourceClassName());
+		assertNull(r.getSourceMethodName());
+		assertSame(Level.FINER, r.getLevel());
+		assertNull(r.getParameters());
+		assertNull(r.getThrown());
 	}
 
 	/*



Mime
View raw message