/libcore/ojluni/src/test/java/io/Serializable/records/ |
D | BadValues.java | 77 Throwable t = expectThrows(CNFE, () -> deserialize(bytes)); in testNotFoundSer() 85 Throwable t = expectThrows(CNFE, () -> deserialize(bytes)); in testNotFoundSerWr() 93 Throwable t = expectThrows(CNFE, () -> deserialize(bytes)); in testNotFoundExt() 101 Throwable t = expectThrows(CNFE, () -> deserialize(bytes)); in testNotFoundExtWr()
|
D | ThrowingConstructorTest.java | 45 import static org.testng.Assert.expectThrows; 112 InvalidObjectException ioe = expectThrows(IOE, () -> deserialize(bytes)); in testExceptions() 171 Throwable t = expectThrows(expectedExType, () -> deserialize(bytes)); in testErrors()
|
D | StreamRefTest.java | 45 import static org.testng.Assert.expectThrows; 130 InvalidObjectException ioe = expectThrows(IOE, () -> deserializeOne(byteStream)); in basicRefWithInvalidA() 153 InvalidObjectException ioe = expectThrows(IOE, () -> deserializeOne(byteStream)); in reverseBasicRefWithInvalidA()
|
D | UnsharedTest.java | 42 import static org.testng.Assert.expectThrows; 69 var expected = expectThrows(IOE, () -> deserializeOne(byteStream)); in testReadUnshared()
|
D | BasicRecordSer.java | 51 import static org.testng.Assert.expectThrows; 218 NotSerializableException expected = expectThrows(NSE, () -> serialize(objToSerialize)); in testNotSerializable() 263 NotSerializableException expected = expectThrows(NSE, () -> serialize(objToSerialize)); in testCtrNotCalled()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | CollectAndSummaryStatisticsTest.java | 116 expectThrows(IllegalArgumentException.class, () -> new IntSummaryStatistics(-1, 0, 0, 0)); in testIntStatistics() 117 expectThrows(IllegalArgumentException.class, () -> new IntSummaryStatistics(1, 3, 2, 0)); in testIntStatistics() 150 expectThrows(IllegalArgumentException.class, () -> new LongSummaryStatistics(-1, 0, 0, 0)); in testLongStatistics() 151 expectThrows(IllegalArgumentException.class, () -> new LongSummaryStatistics(1, 3, 2, 0)); in testLongStatistics() 183 … expectThrows(IllegalArgumentException.class, () -> new DoubleSummaryStatistics(-1, 0, 0, 0)); in testDoubleStatistics() 184 expectThrows(IllegalArgumentException.class, () -> new DoubleSummaryStatistics(1, 3, 2, 0)); in testDoubleStatistics() 191 … expectThrows(IllegalArgumentException.class, () -> new DoubleSummaryStatistics(1, min, max, sum)); in testDoubleStatistics()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BulkPutBuffer.java | 337 private static void expectThrows(Class<?> exClass, Assert.ThrowingRunnable r) { in expectThrows() method in BulkPutBuffer 353 expectThrows(IndexOutOfBoundsException.class, in testExceptions() 355 expectThrows(IndexOutOfBoundsException.class, in testExceptions() 357 expectThrows(IndexOutOfBoundsException.class, in testExceptions() 359 expectThrows(IndexOutOfBoundsException.class, in testExceptions() 361 expectThrows(IndexOutOfBoundsException.class, in testExceptions() 363 expectThrows(IndexOutOfBoundsException.class, in testExceptions() 367 expectThrows(ReadOnlyBufferException.class, in testExceptions() 385 Assert.expectThrows(ReadOnlyBufferException.class, in testSelf() 441 Assert.expectThrows(ReadOnlyBufferException.class, in testPairs()
|
/libcore/ojluni/src/test/java/net/UnixDomainSocketAddress/ |
D | UnixDomainSocketAddressSerializationTest.java | 41 import static org.testng.Assert.expectThrows; 75 expectThrows(IOE, () -> deserialize(bytes, UnixDomainSocketAddress.class)); in testUnixDomainSocketAddressInStream() 84 expectThrows(NPE, () -> deserialize(bytes, UnixDomainSocketAddress.class)); in testSerialProxyNoStreamValues()
|
/libcore/ojluni/src/test/java/util/HexFormat/ |
D | HexFormatTest.java | 42 import static org.testng.Assert.expectThrows; 194 expectThrows(NumberFormatException.class, in testFromHexInvalid() 248 Throwable ex = expectThrows(NumberFormatException.class, in testFromHexPairInvalid() 257 Throwable ex = expectThrows(IllegalArgumentException.class, in testToBytesThrowing() 644 Throwable ex = expectThrows(OutOfMemoryError.class, in testOOME()
|
/libcore/ojluni/src/test/java/util/regex/ |
D | RegExTest.java | 94 import static org.testng.Assert.expectThrows; 2746 expectThrows(IllegalArgumentException.class, in stringBufferCheckAppendException() 4420 var e = expectThrows(PatternSyntaxException.class, () -> Pattern.compile(pat)); in invalidGroupName() 4432 var e = expectThrows(PatternSyntaxException.class, () -> in invalidGroupName() 4453 var e = expectThrows(PatternSyntaxException.class, () -> in illegalRepetitionRange() 4693 var e = expectThrows(PatternSyntaxException.class, () -> in errorMessageCaretIndentation()
|