You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2006/12/22 14:59:51 UTC

svn commit: r489656 - in /harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging: LevelTest.java LogManagerTest.java LogRecordTest.java LoggerTest.java StreamHandlerTest.java

Author: tellison
Date: Fri Dec 22 05:59:50 2006
New Revision: 489656

URL: http://svn.apache.org/viewvc?view=rev&rev=489656
Log:
Apply patch HARMONY-2563 ([Classlib][logging] Wrong words in logging module)

Modified:
    harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java
    harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java
    harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogRecordTest.java
    harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java
    harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/StreamHandlerTest.java

Modified: harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java?view=diff&rev=489656&r1=489655&r2=489656
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LevelTest.java Fri Dec 22 05:59:50 2006
@@ -290,7 +290,7 @@
     /**
      * @tests serialization/deserialization compatibility.
      * 
-     * Test serilaziation of pre-defined const levels. It is expected that the
+     * Test serialization of pre-defined const levels. It is expected that the
      * deserialized cost level should be the same instance as the existing one.
      */
     public void testSerialization_ConstLevel() throws Exception {
@@ -302,7 +302,7 @@
     /**
      * @tests serialization/deserialization compatibility.
      * 
-     * Test serilaziation of normal instance of Level. It is expected that the
+     * Test serialization of normal instance of Level. It is expected that the
      * deserialized level object should be equal to the original one.
      */
     public void testSerialization_InstanceLevel() throws Exception {

Modified: harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java?view=diff&rev=489656&r1=489655&r2=489656
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java Fri Dec 22 05:59:50 2006
@@ -172,7 +172,7 @@
 		assertNull(grandson.getParent());
 		assertNull(otherChild.getParent());
 
-		// whenever a logger is added to a LogManager, hierachy will be updated
+		// whenever a logger is added to a LogManager, hierarchy will be updated
 		// accordingly
 		assertTrue(mockManager.addLogger(child));
 		assertNull(child.getParent());
@@ -504,7 +504,7 @@
 //			mockManager.readConfiguration();
 //			// level DO has effect
 //			assertEquals(Level.WARNING, foo.getLevel());
-//			// for non specifed logger, level is reset to null
+//			// for non specified logger, level is reset to null
 //			assertNull(fo.getLevel());
 //
 //			// read properties don't affect handler
@@ -539,7 +539,7 @@
 		// level DO has effect
 		assertEquals(Level.WARNING, foo.getLevel());
 
-		// for non specifed logger, level is reset to null
+		// for non specified logger, level is reset to null
 		assertNull(fo.getLevel());
 
 		// read properties don't affect handler
@@ -707,7 +707,7 @@
                     .PropertiesToInputStream(props));
             assertEquals(3, manager.getLogger("").getHandlers().length);
 
-            // invalid config class which throw exception, just pring exception
+            // invalid config class which throw exception, just print exception
             // and
             // message
             props.setProperty("config", className
@@ -715,7 +715,7 @@
             manager.readConfiguration(EnvironmentHelper
                     .PropertiesToInputStream(props));
 
-            // invalid config class without default constructor, just pring
+            // invalid config class without default constructor, just print
             // exception and message
             props.setProperty("config", className
                     + "$MockInvalidConfigNoDefaultConstructor");

Modified: harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogRecordTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogRecordTest.java?view=diff&rev=489656&r1=489655&r2=489656
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogRecordTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogRecordTest.java Fri Dec 22 05:59:50 2006
@@ -389,7 +389,7 @@
 	}
 
 	// mock class, try to test when the sourceclass and sourcemethod of
-	// LogRecord is inited
+	// LogRecord is initiated
 	public static class RecordFactory {
 
 		public static LogRecord getDefaultRecord() {
@@ -422,7 +422,7 @@
 		public void log(LogRecord record) {
 			if (isLoggable(record.getLevel())) {
 				// call the handlers of this logger
-				// TODO: What if an exception occured in handler?
+				// TODO: What if an exception occurred in handler?
 				Handler[] ha = this.getHandlers();
 				for (int i = 0; i < ha.length; i++) {
 					ha[i].publish(record);

Modified: 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/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java?view=diff&rev=489656&r1=489655&r2=489656
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java Fri Dec 22 05:59:50 2006
@@ -283,7 +283,7 @@
 	}
 
 	/*
-	 * Test getLogger(String), getting a logger with invalid level configed.
+	 * Test getLogger(String), getting a logger with invalid level configured.
 	 */
 	public void testGetLogger_InvalidLevel() throws Exception {
 		// config the level
@@ -1148,7 +1148,7 @@
 
 	/*
 	 * Test setParent(Logger) for the mock logger since it is advised not to
-	 * call this method on named loggers. Test normal condistions.
+	 * call this method on named loggers. Test normal conditions.
 	 */
 	public void testSetParent_Normal() {
 		Logger log = new MockLogger(null, null);
@@ -1230,7 +1230,7 @@
 	}
 
 	/*
-	 * Test getName() for emtpy name.
+	 * Test getName() for empty name.
 	 */
 	public void testGetName_Empty() {
 		Logger log = Logger.getLogger("");
@@ -3408,7 +3408,7 @@
     
     public void testLoadResourceBundleNonExistent() {
         try {
-            // Try a load a non-existant resource bundle.
+            // Try a load a non-existent resource bundle.
             LoggerExtension.loadResourceBundle("missinglogger.properties");
             fail("Expected an exception.");
         } catch (MissingResourceException ex) {

Modified: harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/StreamHandlerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/StreamHandlerTest.java?view=diff&rev=489656&r1=489655&r2=489656
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/StreamHandlerTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/StreamHandlerTest.java Fri Dec 22 05:59:50 2006
@@ -292,7 +292,7 @@
 	}
 
 	/*
-	 * Test the constructor with null fomatter, and invalid relevant log manager
+	 * Test the constructor with null formatter, and invalid relevant log manager
 	 * properties are set.
 	 */
 	public void testConstructor_HasParameters_ValidPropertiesNullStream()