Home
last modified time | relevance | path

Searched refs:throwIf (Results 1 – 4 of 4) sorted by relevance

/external/guava/android/guava-tests/test/com/google/common/io/
DTestInputStream.java44 throwIf(OPEN_THROWS); in TestInputStream()
53 throwIf(closed); in read()
54 throwIf(READ_THROWS); in read()
60 throwIf(closed); in read()
61 throwIf(READ_THROWS); in read()
67 throwIf(closed); in skip()
68 throwIf(SKIP_THROWS); in skip()
74 throwIf(closed); in available()
81 throwIf(CLOSE_THROWS); in close()
85 private void throwIf(TestOption option) throws IOException { in throwIf() method in TestInputStream
[all …]
DTestOutputStream.java43 throwIf(OPEN_THROWS); in TestOutputStream()
52 throwIf(closed); in write()
53 throwIf(WRITE_THROWS); in write()
59 throwIf(closed); in write()
60 throwIf(WRITE_THROWS); in write()
68 throwIf(CLOSE_THROWS); in close()
71 private void throwIf(TestOption option) throws IOException { in throwIf() method in TestOutputStream
72 throwIf(options.contains(option)); in throwIf()
75 private static void throwIf(boolean condition) throws IOException { in throwIf() method in TestOutputStream
/external/guava/guava-tests/test/com/google/common/io/
DTestInputStream.java44 throwIf(OPEN_THROWS); in TestInputStream()
53 throwIf(closed); in read()
54 throwIf(READ_THROWS); in read()
60 throwIf(closed); in read()
61 throwIf(READ_THROWS); in read()
67 throwIf(closed); in skip()
68 throwIf(SKIP_THROWS); in skip()
74 throwIf(closed); in available()
81 throwIf(CLOSE_THROWS); in close()
85 private void throwIf(TestOption option) throws IOException { in throwIf() method in TestInputStream
[all …]
DTestOutputStream.java43 throwIf(OPEN_THROWS); in TestOutputStream()
52 throwIf(closed); in write()
53 throwIf(WRITE_THROWS); in write()
59 throwIf(closed); in write()
60 throwIf(WRITE_THROWS); in write()
68 throwIf(CLOSE_THROWS); in close()
71 private void throwIf(TestOption option) throws IOException { in throwIf() method in TestOutputStream
72 throwIf(options.contains(option)); in throwIf()
75 private static void throwIf(boolean condition) throws IOException { in throwIf() method in TestOutputStream