summaryrefslogtreecommitdiffstats
path: root/core/tests
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-05-10 09:33:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-10 09:33:21 -0700
commit4311705501a7d426a07d2a6c5b8a0d1d262495ba (patch)
treed7839798fe8d648ef2ad1dd7604183895f58099a /core/tests
parent4da9ff8555e8728497655e02c9d5b46cf05e3843 (diff)
parentfe9e28cba7dabb452fdbadcf421f7f758a859447 (diff)
downloadframeworks_base-4311705501a7d426a07d2a6c5b8a0d1d262495ba.zip
frameworks_base-4311705501a7d426a07d2a6c5b8a0d1d262495ba.tar.gz
frameworks_base-4311705501a7d426a07d2a6c5b8a0d1d262495ba.tar.bz2
am fe9e28cb: am 6367b166: Merge "Recover from Throwable in FileRotator, dump." into jb-dev
* commit 'fe9e28cba7dabb452fdbadcf421f7f758a859447': Recover from Throwable in FileRotator, dump.
Diffstat (limited to 'core/tests')
-rw-r--r--core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java b/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java
index 94d1cb6..95f0e67 100644
--- a/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java
+++ b/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java
@@ -187,12 +187,12 @@ public class FileRotatorTest extends AndroidTestCase {
rotate.combineActive(reader, new Writer() {
public void write(OutputStream out) throws IOException {
new DataOutputStream(out).writeUTF("bar");
- throw new ProtocolException("yikes");
+ throw new NullPointerException("yikes");
}
}, currentTime);
fail("woah, somehow able to write exception");
- } catch (ProtocolException e) {
+ } catch (IOException e) {
// expected from above
}