Author: almaw
Date: Tue Mar 27 07:22:28 2007
New Revision: 522925

URL: http://svn.apache.org/viewvc?view=rev&rev=522925
Log:
Formatting fix (sorry, old habits die hard).

Modified:
    
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/util/collections/MiniMapTest.java

Modified: 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/util/collections/MiniMapTest.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/util/collections/MiniMapTest.java?view=diff&rev=522925&r1=522924&r2=522925
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/util/collections/MiniMapTest.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/util/collections/MiniMapTest.java
 Tue Mar 27 07:22:28 2007
@@ -31,59 +31,65 @@
 {
        private static final Object FOO = new Object();
        private static final Object BAR = new Object();
-       
+
        /**
-        * Basic test for keySet(), entrySet() and values(). 
+        * Basic test for keySet(), entrySet() and values().
         */
-       public void testMiniMap() {
+       public void testMiniMap()
+       {
                MiniMap m = new MiniMap(3);
                m.put(FOO, BAR);
-               
+
                // Test .keySet();
                Set s = m.keySet();
                assertEquals(1, m.size());
-               
+
                Iterator i = s.iterator();
                assertTrue(i.hasNext());
                Object key = i.next();
                assertEquals(FOO, key);
                assertFalse(i.hasNext());
-               try {
+               try
+               {
                        i.next();
                        fail("Expected i.next() to fail with 
NoSuchElementException");
                }
-               catch (NoSuchElementException e) {
+               catch (NoSuchElementException e)
+               {
                        // Swallow this.
                }
-               
+
                // Do approx the same again with the .entrySet()
                s = m.entrySet();
                assertEquals(1, m.size());
-               
+
                i = s.iterator();
                assertTrue(i.hasNext());
                Map.Entry entry = (Map.Entry)i.next();
                assertEquals(FOO, entry.getKey());
                assertEquals(BAR, entry.getValue());
                assertFalse(i.hasNext());
-               try {
+               try
+               {
                        i.next();
                        fail("Expected i.next() to fail with 
NoSuchElementException");
                }
-               catch (NoSuchElementException e) {
+               catch (NoSuchElementException e)
+               {
                        // Swallow this.
                }
-               
+
                // Do approx the same again with the .values()
                Collection v = m.values();
                assertEquals(1, m.size());
-               
+
                i = v.iterator();
                assertTrue(i.hasNext());
                Object value = i.next();
                assertEquals(BAR, value);
                assertFalse(i.hasNext());
-               try {
+               try
+               {
                        Object wibble = i.next();
                        wibble = i.next();
                        wibble = i.next();
@@ -91,7 +97,8 @@
                        wibble = i.next();
                        fail("Expected i.next() to fail with 
NoSuchElementException");
                }
-               catch (NoSuchElementException e) {
+               catch (NoSuchElementException e)
+               {
                        // Swallow this.
                }
        }


Reply via email to