You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by py...@apache.org on 2006/08/24 11:55:45 UTC
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
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());
}
/*