Home
last modified time | relevance | path

Searched refs:expectThrows (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/test/java/io/Serializable/records/
DBadValues.java77 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()
DThrowingConstructorTest.java45 import static org.testng.Assert.expectThrows;
112 InvalidObjectException ioe = expectThrows(IOE, () -> deserialize(bytes)); in testExceptions()
171 Throwable t = expectThrows(expectedExType, () -> deserialize(bytes)); in testErrors()
DStreamRefTest.java45 import static org.testng.Assert.expectThrows;
130 InvalidObjectException ioe = expectThrows(IOE, () -> deserializeOne(byteStream)); in basicRefWithInvalidA()
153 InvalidObjectException ioe = expectThrows(IOE, () -> deserializeOne(byteStream)); in reverseBasicRefWithInvalidA()
DUnsharedTest.java42 import static org.testng.Assert.expectThrows;
69 var expected = expectThrows(IOE, () -> deserializeOne(byteStream)); in testReadUnshared()
DBasicRecordSer.java51 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/
DCollectAndSummaryStatisticsTest.java116 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()
183expectThrows(IllegalArgumentException.class, () -> new DoubleSummaryStatistics(-1, 0, 0, 0)); in testDoubleStatistics()
184 expectThrows(IllegalArgumentException.class, () -> new DoubleSummaryStatistics(1, 3, 2, 0)); in testDoubleStatistics()
191expectThrows(IllegalArgumentException.class, () -> new DoubleSummaryStatistics(1, min, max, sum)); in testDoubleStatistics()
/libcore/ojluni/src/test/java/nio/Buffer/
DBulkPutBuffer.java337 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/
DUnixDomainSocketAddressSerializationTest.java41 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/
DHexFormatTest.java42 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/
DRegExTest.java94 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()