harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r436628 - /incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/
Date Fri, 25 Aug 2006 02:57:56 GMT
Author: smishura
Date: Thu Aug 24 19:57:56 2006
New Revision: 436628

URL: http://svn.apache.org/viewvc?rev=436628&view=rev
Log:
Formatting

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/BackingStoreExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/InvalidPreferencesFormatExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/BackingStoreExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/BackingStoreExceptionTest.java?rev=436628&r1=436627&r2=436628&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/BackingStoreExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/BackingStoreExceptionTest.java
Thu Aug 24 19:57:56 2006
@@ -27,25 +27,25 @@
  */
 public class BackingStoreExceptionTest extends TestCase {
 
-	/*
-	 * Class under test for void BackingStoreException(String)
-	 */
-	public void testBackingStoreExceptionString() {
-		BackingStoreException e = new BackingStoreException("msg");
-		assertNull(e.getCause());
-		assertEquals("msg", e.getMessage());
-	}
+    /*
+     * Class under test for void BackingStoreException(String)
+     */
+    public void testBackingStoreExceptionString() {
+        BackingStoreException e = new BackingStoreException("msg");
+        assertNull(e.getCause());
+        assertEquals("msg", e.getMessage());
+    }
 
-	/*
-	 * Class under test for void BackingStoreException(Throwable)
-	 */
-	public void testBackingStoreExceptionThrowable() {
-		Throwable t = new Throwable("msg");
-		BackingStoreException e = new BackingStoreException(t);
-		assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
-		assertTrue(e.getMessage().indexOf("msg") >= 0);
-		assertEquals(t, e.getCause());
-	}
+    /*
+     * Class under test for void BackingStoreException(Throwable)
+     */
+    public void testBackingStoreExceptionThrowable() {
+        Throwable t = new Throwable("msg");
+        BackingStoreException e = new BackingStoreException(t);
+        assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
+        assertTrue(e.getMessage().indexOf("msg") >= 0);
+        assertEquals(t, e.getCause());
+    }
 
     /**
      * @tests serialization/deserialization.
@@ -63,4 +63,3 @@
         SerializationTest.verifyGolden(this, new BackingStoreException("msg"));
     }
 }
-

Modified: incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/InvalidPreferencesFormatExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/InvalidPreferencesFormatExceptionTest.java?rev=436628&r1=436627&r2=436628&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/InvalidPreferencesFormatExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/InvalidPreferencesFormatExceptionTest.java
Thu Aug 24 19:57:56 2006
@@ -26,41 +26,41 @@
  */
 public class InvalidPreferencesFormatExceptionTest extends TestCase {
 
-	/*
-	 * Class under test for void InvalidPreferencesFormatException(String)
-	 */
-	public void testInvalidPreferencesFormatExceptionString() {
-		InvalidPreferencesFormatException e = new InvalidPreferencesFormatException(
-				"msg");
-		assertNull(e.getCause());
-		assertEquals("msg", e.getMessage());
-	}
-
-	/*
-	 * Class under test for void InvalidPreferencesFormatException(String,
-	 * Throwable)
-	 */
-	public void testInvalidPreferencesFormatExceptionStringThrowable() {
-		Throwable t = new Throwable("root");
-		InvalidPreferencesFormatException e = new InvalidPreferencesFormatException(
-				"msg", t);
-		assertSame(t, e.getCause());
-		assertTrue(e.getMessage().indexOf("root") < 0);
-		assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0);
-		assertTrue(e.getMessage().indexOf("msg") >= 0);
-	}
-
-	/*
-	 * Class under test for void InvalidPreferencesFormatException(Throwable)
-	 */
-	public void testInvalidPreferencesFormatExceptionThrowable() {
-		Throwable t = new Throwable("root");
-		InvalidPreferencesFormatException e = new InvalidPreferencesFormatException(
-				t);
-		assertSame(t, e.getCause());
-		assertTrue(e.getMessage().indexOf("root") >= 0);
-		assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
-	}
+    /*
+     * Class under test for void InvalidPreferencesFormatException(String)
+     */
+    public void testInvalidPreferencesFormatExceptionString() {
+        InvalidPreferencesFormatException e = new InvalidPreferencesFormatException(
+                "msg");
+        assertNull(e.getCause());
+        assertEquals("msg", e.getMessage());
+    }
+
+    /*
+     * Class under test for void InvalidPreferencesFormatException(String,
+     * Throwable)
+     */
+    public void testInvalidPreferencesFormatExceptionStringThrowable() {
+        Throwable t = new Throwable("root");
+        InvalidPreferencesFormatException e = new InvalidPreferencesFormatException(
+                "msg", t);
+        assertSame(t, e.getCause());
+        assertTrue(e.getMessage().indexOf("root") < 0);
+        assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0);
+        assertTrue(e.getMessage().indexOf("msg") >= 0);
+    }
+
+    /*
+     * Class under test for void InvalidPreferencesFormatException(Throwable)
+     */
+    public void testInvalidPreferencesFormatExceptionThrowable() {
+        Throwable t = new Throwable("root");
+        InvalidPreferencesFormatException e = new InvalidPreferencesFormatException(
+                t);
+        assertSame(t, e.getCause());
+        assertTrue(e.getMessage().indexOf("root") >= 0);
+        assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
+    }
 
     /**
      * @tests serialization/deserialization.
@@ -80,4 +80,3 @@
                 new InvalidPreferencesFormatException("msg"));
     }
 }
-

Modified: incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java?rev=436628&r1=436627&r2=436628&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java
Thu Aug 24 19:57:56 2006
@@ -30,31 +30,31 @@
  */
 public class NodeChangeEventTest extends TestCase {
 
-	NodeChangeEvent event;
+    NodeChangeEvent event;
 
-	public void testConstructor() {
-		event = new NodeChangeEvent(Preferences.systemRoot(), Preferences
-				.userRoot());
-		assertSame(Preferences.systemRoot(), event.getParent());
-		assertSame(Preferences.userRoot(), event.getChild());
-		assertSame(Preferences.systemRoot(), event.getSource());
-	}
+    public void testConstructor() {
+        event = new NodeChangeEvent(Preferences.systemRoot(), Preferences
+                .userRoot());
+        assertSame(Preferences.systemRoot(), event.getParent());
+        assertSame(Preferences.userRoot(), event.getChild());
+        assertSame(Preferences.systemRoot(), event.getSource());
+    }
 
-	public void testConstructorNullParam() {
-		try {
-			event = new NodeChangeEvent(null, Preferences.userRoot());
-			fail();
-		} catch (IllegalArgumentException e) {
-		}
+    public void testConstructorNullParam() {
+        try {
+            event = new NodeChangeEvent(null, Preferences.userRoot());
+            fail();
+        } catch (IllegalArgumentException e) {
+        }
 
-		event = new NodeChangeEvent(Preferences.systemRoot(), null);
-		assertSame(Preferences.systemRoot(), event.getParent());
-		assertNull(event.getChild());
-		assertSame(Preferences.systemRoot(), event.getSource());
-	}
+        event = new NodeChangeEvent(Preferences.systemRoot(), null);
+        assertSame(Preferences.systemRoot(), event.getParent());
+        assertNull(event.getChild());
+        assertSame(Preferences.systemRoot(), event.getSource());
+    }
+
+    public void testSerialization() throws Exception {
 
-	public void testSerialization() throws Exception {
-        
         event = new NodeChangeEvent(Preferences.systemRoot(), null);
 
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java?rev=436628&r1=436627&r2=436628&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java
Thu Aug 24 19:57:56 2006
@@ -30,52 +30,52 @@
  */
 public class PreferenceChangeEventTest extends TestCase {
 
-	PreferenceChangeEvent event;
+    PreferenceChangeEvent event;
 
-	public void testPreferenceChangeEventException() {
-		try {
-			event = new PreferenceChangeEvent(null, "key", "value");
-			fail();
-		} catch (IllegalArgumentException e) {
-		}
-	}
-
-	public void testConstructorNullValue() {
-		event = new PreferenceChangeEvent(Preferences.userRoot(), "key", null);
-		assertEquals("key", event.getKey());
-		assertNull(event.getNewValue());
-		assertSame(Preferences.userRoot(), event.getNode());
-		assertSame(Preferences.userRoot(), event.getSource());
-
-		event = new PreferenceChangeEvent(Preferences.userRoot(), "", null);
-		assertEquals("", event.getKey());
-		assertNull(event.getNewValue());
-		assertSame(Preferences.userRoot(), event.getNode());
-		assertSame(Preferences.userRoot(), event.getSource());
-
-		event = new PreferenceChangeEvent(Preferences.userRoot(), null, "value");
-		assertNull(event.getKey());
-		assertEquals("value", event.getNewValue());
-		assertSame(Preferences.userRoot(), event.getNode());
-		assertSame(Preferences.userRoot(), event.getSource());
-
-		event = new PreferenceChangeEvent(Preferences.userRoot(), null, "");
-		assertNull(event.getKey());
-		assertEquals("", event.getNewValue());
-		assertSame(Preferences.userRoot(), event.getNode());
-		assertSame(Preferences.userRoot(), event.getSource());
-	}
-
-	public void testConstructor() {
-		event = new PreferenceChangeEvent(Preferences.userRoot(), "key",
-				"value");
-		assertEquals("key", event.getKey());
-		assertEquals("value", event.getNewValue());
-		assertSame(Preferences.userRoot(), event.getNode());
-		assertSame(Preferences.userRoot(), event.getSource());
-	}
+    public void testPreferenceChangeEventException() {
+        try {
+            event = new PreferenceChangeEvent(null, "key", "value");
+            fail();
+        } catch (IllegalArgumentException e) {
+        }
+    }
+
+    public void testConstructorNullValue() {
+        event = new PreferenceChangeEvent(Preferences.userRoot(), "key", null);
+        assertEquals("key", event.getKey());
+        assertNull(event.getNewValue());
+        assertSame(Preferences.userRoot(), event.getNode());
+        assertSame(Preferences.userRoot(), event.getSource());
+
+        event = new PreferenceChangeEvent(Preferences.userRoot(), "", null);
+        assertEquals("", event.getKey());
+        assertNull(event.getNewValue());
+        assertSame(Preferences.userRoot(), event.getNode());
+        assertSame(Preferences.userRoot(), event.getSource());
+
+        event = new PreferenceChangeEvent(Preferences.userRoot(), null, "value");
+        assertNull(event.getKey());
+        assertEquals("value", event.getNewValue());
+        assertSame(Preferences.userRoot(), event.getNode());
+        assertSame(Preferences.userRoot(), event.getSource());
+
+        event = new PreferenceChangeEvent(Preferences.userRoot(), null, "");
+        assertNull(event.getKey());
+        assertEquals("", event.getNewValue());
+        assertSame(Preferences.userRoot(), event.getNode());
+        assertSame(Preferences.userRoot(), event.getSource());
+    }
+
+    public void testConstructor() {
+        event = new PreferenceChangeEvent(Preferences.userRoot(), "key",
+                "value");
+        assertEquals("key", event.getKey());
+        assertEquals("value", event.getNewValue());
+        assertSame(Preferences.userRoot(), event.getNode());
+        assertSame(Preferences.userRoot(), event.getSource());
+    }
 
-	public void testSerialization() throws Exception {
+    public void testSerialization() throws Exception {
         event = new PreferenceChangeEvent(Preferences.userRoot(), "key",
                 "value");
         try {



Mime
View raw message