diff options
author | Urs Grob <> | 2009-04-09 01:43:40 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-09 01:43:40 -0700 |
commit | 7cdbe7a26fd575d8cdb83da296d859c35c4bfaeb (patch) | |
tree | a2878674ca5c241ed4ccf9710cb849bc1b055eaf /luni | |
parent | bcfe84558ee91b92cabb2345d71e5c25dc149aae (diff) | |
download | libcore-7cdbe7a26fd575d8cdb83da296d859c35c4bfaeb.zip libcore-7cdbe7a26fd575d8cdb83da296d859c35c4bfaeb.tar.gz libcore-7cdbe7a26fd575d8cdb83da296d859c35c4bfaeb.tar.bz2 |
AI 145288: Removing tabs from tests.
BUG=1285921
Automated import of CL 145288
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/test/java/tests/api/java/io/SerializationStressTest.java | 80 | ||||
-rw-r--r-- | luni/src/test/java/tests/api/java/lang/ref/ReferenceTest.java | 14 |
2 files changed, 47 insertions, 47 deletions
diff --git a/luni/src/test/java/tests/api/java/io/SerializationStressTest.java b/luni/src/test/java/tests/api/java/io/SerializationStressTest.java index 1a646c4..3e1ea19 100644 --- a/luni/src/test/java/tests/api/java/io/SerializationStressTest.java +++ b/luni/src/test/java/tests/api/java/io/SerializationStressTest.java @@ -170,43 +170,43 @@ public class SerializationStressTest extends junit.framework.TestCase implements static Exception INITIALIZE_EXCEPTION = null; static { - try { - TABLE.put("one", "1"); - TABLE.put("two", "2"); - TABLE.put("three", "3"); - MAP.put("one", "1"); - MAP.put("two", "2"); - MAP.put("three", "3"); - LINKEDMAP.put("one", "1"); - LINKEDMAP.put("two", "2"); - LINKEDMAP.put("three", "3"); - IDENTITYMAP.put("one", "1"); - IDENTITYMAP.put("two", "2"); - IDENTITYMAP.put("three", "3"); - LINKEDSET.add("one"); - LINKEDSET.add("two"); - LINKEDSET.add("three"); - TREE.put("one", "1"); - TREE.put("two", "2"); - TREE.put("three", "3"); - PERMCOL.add(PERM); - // To make sure they all use the same Calendar - CALENDAR.setTimeZone(new SimpleTimeZone(0, "GMT")); - CALENDAR.set(1999, Calendar.JUNE, 23, 15, 47, 13); - CALENDAR.set(Calendar.MILLISECOND, 553); - DATEFORM.setCalendar(CALENDAR); - java.text.DateFormatSymbols symbols = new java.text.DateFormatSymbols(); - symbols.setZoneStrings(new String[][] { { "a", "b", "c", "d" }, - { "e", "f", "g", "h" } }); - ((java.text.SimpleDateFormat) DATEFORM).setDateFormatSymbols(symbols); - DATEFORM.setNumberFormat(new java.text.DecimalFormat("#.#;'-'#.#")); - DATEFORM.setTimeZone(TimeZone.getTimeZone("EST")); - ((java.text.DecimalFormat) NUMBERFORM).applyPattern("#.#;'-'#.#"); - MESSAGE.setFormat(0, DATEFORM); - MESSAGE.setFormat(1, DATEFORM); - } catch (Exception e) { - INITIALIZE_EXCEPTION = e; - } + try { + TABLE.put("one", "1"); + TABLE.put("two", "2"); + TABLE.put("three", "3"); + MAP.put("one", "1"); + MAP.put("two", "2"); + MAP.put("three", "3"); + LINKEDMAP.put("one", "1"); + LINKEDMAP.put("two", "2"); + LINKEDMAP.put("three", "3"); + IDENTITYMAP.put("one", "1"); + IDENTITYMAP.put("two", "2"); + IDENTITYMAP.put("three", "3"); + LINKEDSET.add("one"); + LINKEDSET.add("two"); + LINKEDSET.add("three"); + TREE.put("one", "1"); + TREE.put("two", "2"); + TREE.put("three", "3"); + PERMCOL.add(PERM); + // To make sure they all use the same Calendar + CALENDAR.setTimeZone(new SimpleTimeZone(0, "GMT")); + CALENDAR.set(1999, Calendar.JUNE, 23, 15, 47, 13); + CALENDAR.set(Calendar.MILLISECOND, 553); + DATEFORM.setCalendar(CALENDAR); + java.text.DateFormatSymbols symbols = new java.text.DateFormatSymbols(); + symbols.setZoneStrings(new String[][] { { "a", "b", "c", "d" }, + { "e", "f", "g", "h" } }); + ((java.text.SimpleDateFormat) DATEFORM).setDateFormatSymbols(symbols); + DATEFORM.setNumberFormat(new java.text.DecimalFormat("#.#;'-'#.#")); + DATEFORM.setTimeZone(TimeZone.getTimeZone("EST")); + ((java.text.DecimalFormat) NUMBERFORM).applyPattern("#.#;'-'#.#"); + MESSAGE.setFormat(0, DATEFORM); + MESSAGE.setFormat(1, DATEFORM); + } catch (Exception e) { + INITIALIZE_EXCEPTION = e; + } } public SerializationStressTest() { @@ -263,9 +263,9 @@ public class SerializationStressTest extends junit.framework.TestCase implements * is called before a test is executed. */ protected void setUp() { - if (INITIALIZE_EXCEPTION != null) { - throw new ExceptionInInitializerError(INITIALIZE_EXCEPTION); - } + if (INITIALIZE_EXCEPTION != null) { + throw new ExceptionInInitializerError(INITIALIZE_EXCEPTION); + } try { if (xdump) { oos = new ObjectOutputStream(new FileOutputStream(xFileName diff --git a/luni/src/test/java/tests/api/java/lang/ref/ReferenceTest.java b/luni/src/test/java/tests/api/java/lang/ref/ReferenceTest.java index 68284ef..7b7e169 100644 --- a/luni/src/test/java/tests/api/java/lang/ref/ReferenceTest.java +++ b/luni/src/test/java/tests/api/java/lang/ref/ReferenceTest.java @@ -253,16 +253,16 @@ public class ReferenceTest extends junit.framework.TestCase { @TestTargetNew( level = TestLevel.PARTIAL_COMPLETE, notes = "Makes sure that overridden versions of clear() and enqueue() " + - "get called, and that clear/enqueue/finalize happen in the " + - "right order for WeakReferences.", + "get called, and that clear/enqueue/finalize happen in the " + + "right order for WeakReferences.", method = "clear", args = {} ), @TestTargetNew( level = TestLevel.PARTIAL_COMPLETE, notes = "Makes sure that overridden versions of clear() and enqueue() " + - "get called, and that clear/enqueue/finalize happen in the " + - "right order for WeakReferences.", + "get called, and that clear/enqueue/finalize happen in the " + + "right order for WeakReferences.", method = "enqueue", args = {} ) @@ -393,9 +393,9 @@ public class ReferenceTest extends junit.framework.TestCase { @TestTargetNew( level = TestLevel.PARTIAL_COMPLETE, notes = "Contrives a situation where the only reference to a string " + - "is a WeakReference from an object that is being finalized. " + - "Checks to make sure that the referent of the WeakReference " + - "is still pointing to a valid object.", + "is a WeakReference from an object that is being finalized. " + + "Checks to make sure that the referent of the WeakReference " + + "is still pointing to a valid object.", method = "get", args = {} ) |