summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorUrs Grob <>2009-04-09 19:14:05 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-09 19:14:05 -0700
commit9e8b27b0a64f4be77c79b251b63c9c392ce93ac1 (patch)
treeff9a078857d1dc3d80cc7f76717cc7633cb77c48 /luni
parentb08673a13909abeb3a97612a81dd56291de0feb8 (diff)
downloadlibcore-9e8b27b0a64f4be77c79b251b63c9c392ce93ac1.zip
libcore-9e8b27b0a64f4be77c79b251b63c9c392ce93ac1.tar.gz
libcore-9e8b27b0a64f4be77c79b251b63c9c392ce93ac1.tar.bz2
AI 145612: am: CL 145288 Removing tabs from tests.
Original author: ursg Merged from: //branches/cupcake/... Automated import of CL 145612
Diffstat (limited to 'luni')
-rw-r--r--luni/src/test/java/tests/api/java/io/SerializationStressTest.java80
-rw-r--r--luni/src/test/java/tests/api/java/lang/ref/ReferenceTest.java14
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 = {}
)