diff options
author | Elliott Hughes <enh@google.com> | 2011-01-26 15:26:16 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-01-26 15:26:16 -0800 |
commit | 38db242d16a5a31fd86c519b817ae94c5fc89417 (patch) | |
tree | 605a3e33ca5f37a2c8d531d18ee57c9985213185 /luni/src/test | |
parent | 8899157a607a6bfd4ca4f361c77db8726885e47b (diff) | |
download | libcore-38db242d16a5a31fd86c519b817ae94c5fc89417.zip libcore-38db242d16a5a31fd86c519b817ae94c5fc89417.tar.gz libcore-38db242d16a5a31fd86c519b817ae94c5fc89417.tar.bz2 |
Consistently use "expected" for expected exceptions in our tests.
Change-Id: I796624fb53dbba420d43858741c9a97b4fb8d017
Diffstat (limited to 'luni/src/test')
5 files changed, 6 insertions, 6 deletions
diff --git a/luni/src/test/java/libcore/java/lang/OldThreadTest.java b/luni/src/test/java/libcore/java/lang/OldThreadTest.java index 1094d33..b2b2a13 100644 --- a/luni/src/test/java/libcore/java/lang/OldThreadTest.java +++ b/luni/src/test/java/libcore/java/lang/OldThreadTest.java @@ -116,7 +116,7 @@ public class OldThreadTest extends junit.framework.TestCase { try { Thread.sleep(100); LockSupport.unpark(parker); - } catch (InterruptedException ignored) { + } catch (InterruptedException expected) { } } } diff --git a/luni/src/test/java/libcore/java/net/URLConnectionTest.java b/luni/src/test/java/libcore/java/net/URLConnectionTest.java index 81f23f0..5fd3b61 100644 --- a/luni/src/test/java/libcore/java/net/URLConnectionTest.java +++ b/luni/src/test/java/libcore/java/net/URLConnectionTest.java @@ -417,7 +417,7 @@ public class URLConnectionTest extends junit.framework.TestCase { if (responseCode != 401) { readAscii(conn.getInputStream(), Integer.MAX_VALUE); } - } catch (IOException ignored) { + } catch (IOException expected) { } Set<URI> expectedCachedUris = shouldPut diff --git a/luni/src/test/java/libcore/java/util/prefs/OldNodeChangeEventTest.java b/luni/src/test/java/libcore/java/util/prefs/OldNodeChangeEventTest.java index b3f57b8..f2d483e 100644 --- a/luni/src/test/java/libcore/java/util/prefs/OldNodeChangeEventTest.java +++ b/luni/src/test/java/libcore/java/util/prefs/OldNodeChangeEventTest.java @@ -130,7 +130,7 @@ public final class OldNodeChangeEventTest extends TestCase { public synchronized void waitForEvent() { try { wait(500); - } catch (InterruptedException ignored) { + } catch (InterruptedException expected) { } } diff --git a/luni/src/test/java/libcore/java/util/prefs/OldPreferenceChangeEventTest.java b/luni/src/test/java/libcore/java/util/prefs/OldPreferenceChangeEventTest.java index be559ed..acdbd69 100644 --- a/luni/src/test/java/libcore/java/util/prefs/OldPreferenceChangeEventTest.java +++ b/luni/src/test/java/libcore/java/util/prefs/OldPreferenceChangeEventTest.java @@ -112,7 +112,7 @@ public final class OldPreferenceChangeEventTest extends TestCase { public synchronized void waitForEvent() { try { wait(500); - } catch (InterruptedException ignored) { + } catch (InterruptedException expected) { } } diff --git a/luni/src/test/java/libcore/java/util/prefs/OldPreferencesTest.java b/luni/src/test/java/libcore/java/util/prefs/OldPreferencesTest.java index a12618e..17e3652 100644 --- a/luni/src/test/java/libcore/java/util/prefs/OldPreferencesTest.java +++ b/luni/src/test/java/libcore/java/util/prefs/OldPreferencesTest.java @@ -937,7 +937,7 @@ public final class OldPreferencesTest extends TestCase { public synchronized void waitForEvent() { try { wait(500); - } catch (InterruptedException ignored) { + } catch (InterruptedException expected) { } } @@ -976,7 +976,7 @@ public final class OldPreferencesTest extends TestCase { synchronized (this) { this.wait(500); } - } catch (InterruptedException ignored) { + } catch (InterruptedException expected) { } } } |