Home
last modified time | relevance | path

Searched refs:assertThrows (Results 1 – 25 of 1874) sorted by relevance

12345678910>>...75

/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/
DValidateTest.java25 import static org.junit.jupiter.api.Assertions.assertThrows;
57 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithDefaultMessageForFalseExpression()
73 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithGivenMessageForFalseExpression()
79 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithGivenMessageContainingSpecialCharacterForFalseExpression()
94 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithLongInsertedIntoTemplateMessageForFalseExpression()
109 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithDoubleInsertedIntoTemplateMessageForFalseExpression()
124 final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, in shouldThrowExceptionWithDoubleInsertedIntoTemplateMessageForFalseExpression()
149 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notNull(nu… in shouldThrowExceptionWithDefaultMessageForNullReference()
169 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notNull(nu… in shouldThrowExceptionWithGivenMessageForNullReference()
197 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithDefaultMessageForNullArray()
[all …]
/external/tink/java_src/src/test/java/com/google/crypto/tink/jwt/
DRawJwtTest.java20 import static org.junit.Assert.assertThrows;
41 assertThrows(JwtInvalidException.class, token::getIssuer); in emptyToken_getRegisteredClaimShouldThrow()
42 assertThrows(JwtInvalidException.class, token::getAudiences); in emptyToken_getRegisteredClaimShouldThrow()
43 assertThrows(JwtInvalidException.class, token::getSubject); in emptyToken_getRegisteredClaimShouldThrow()
44 assertThrows(JwtInvalidException.class, token::getJwtId); in emptyToken_getRegisteredClaimShouldThrow()
45 assertThrows(JwtInvalidException.class, token::getExpiration); in emptyToken_getRegisteredClaimShouldThrow()
46 assertThrows(JwtInvalidException.class, token::getNotBefore); in emptyToken_getRegisteredClaimShouldThrow()
47 assertThrows(JwtInvalidException.class, token::getIssuedAt); in emptyToken_getRegisteredClaimShouldThrow()
101 assertThrows( in callStringAndListAudienceMethodsTogether_fail()
104 assertThrows( in callStringAndListAudienceMethodsTogether_fail()
[all …]
/external/tink-java/src/test/java/com/google/crypto/tink/jwt/
DRawJwtTest.java20 import static org.junit.Assert.assertThrows;
41 assertThrows(JwtInvalidException.class, token::getIssuer); in emptyToken_getRegisteredClaimShouldThrow()
42 assertThrows(JwtInvalidException.class, token::getAudiences); in emptyToken_getRegisteredClaimShouldThrow()
43 assertThrows(JwtInvalidException.class, token::getSubject); in emptyToken_getRegisteredClaimShouldThrow()
44 assertThrows(JwtInvalidException.class, token::getJwtId); in emptyToken_getRegisteredClaimShouldThrow()
45 assertThrows(JwtInvalidException.class, token::getExpiration); in emptyToken_getRegisteredClaimShouldThrow()
46 assertThrows(JwtInvalidException.class, token::getNotBefore); in emptyToken_getRegisteredClaimShouldThrow()
47 assertThrows(JwtInvalidException.class, token::getIssuedAt); in emptyToken_getRegisteredClaimShouldThrow()
101 assertThrows( in callStringAndListAudienceMethodsTogether_fail()
104 assertThrows( in callStringAndListAudienceMethodsTogether_fail()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/reflect/
DFieldUtilsTest.java24 import static org.junit.jupiter.api.Assertions.assertThrows;
111 assertThrows(NullPointerException.class, () -> FieldUtils.getField(null, "none")); in testGetFieldIllegalArgumentException1()
116assertThrows(IllegalArgumentException.class, () -> FieldUtils.getField(PublicChild.class, null)); in testGetFieldIllegalArgumentException2()
121assertThrows(IllegalArgumentException.class, () -> FieldUtils.getField(PublicChild.class, "")); in testGetFieldIllegalArgumentException3()
126assertThrows(IllegalArgumentException.class, () -> FieldUtils.getField(PublicChild.class, " ")); in testGetFieldIllegalArgumentException4()
150 assertThrows(NullPointerException.class, () -> FieldUtils.getField(null, "none", true)); in testGetFieldForceAccessIllegalArgumentException1()
155assertThrows(IllegalArgumentException.class, () -> FieldUtils.getField(PublicChild.class, null, tr… in testGetFieldForceAccessIllegalArgumentException2()
160assertThrows(IllegalArgumentException.class, () -> FieldUtils.getField(PublicChild.class, "", true… in testGetFieldForceAccessIllegalArgumentException3()
165assertThrows(IllegalArgumentException.class, () -> FieldUtils.getField(PublicChild.class, " ", tru… in testGetFieldForceAccessIllegalArgumentException4()
224assertThrows(NullPointerException.class, () -> FieldUtils.getFieldsWithAnnotation(FieldUtilsTest.c… in testGetFieldsWithAnnotationIllegalArgumentException1()
[all …]
/external/tink/java_src/src/test/java/com/google/crypto/tink/mac/
DAesCmacParametersTest.java20 import static org.junit.Assert.assertThrows;
57 assertThrows(GeneralSecurityException.class, () -> AesCmacParameters.builder().build()); in testAesCmacParameters_incompleteBuildsFail()
58 assertThrows( in testAesCmacParameters_incompleteBuildsFail()
61 assertThrows( in testAesCmacParameters_incompleteBuildsFail()
68 assertThrows( in testAesCmacParameters_buildWithVariantSetToNull_fails()
109 assertThrows(GeneralSecurityException.class, () -> create(-2, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
110 assertThrows(GeneralSecurityException.class, () -> create(5, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
111 assertThrows(GeneralSecurityException.class, () -> create(13, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
112 assertThrows(GeneralSecurityException.class, () -> create(20, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
113 assertThrows(GeneralSecurityException.class, () -> create(24, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
[all …]
/external/tink-java/src/test/java/com/google/crypto/tink/mac/
DAesCmacParametersTest.java20 import static org.junit.Assert.assertThrows;
57 assertThrows(GeneralSecurityException.class, () -> AesCmacParameters.builder().build()); in testAesCmacParameters_incompleteBuildsFail()
58 assertThrows( in testAesCmacParameters_incompleteBuildsFail()
61 assertThrows( in testAesCmacParameters_incompleteBuildsFail()
68 assertThrows( in testAesCmacParameters_buildWithVariantSetToNull_fails()
109 assertThrows(GeneralSecurityException.class, () -> create(-2, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
110 assertThrows(GeneralSecurityException.class, () -> create(5, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
111 assertThrows(GeneralSecurityException.class, () -> create(13, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
112 assertThrows(GeneralSecurityException.class, () -> create(20, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
113 assertThrows(GeneralSecurityException.class, () -> create(24, 13)); in testAesCmacParameters_createWithDifferentKeySizes()
[all …]
/external/tink-java/src/test/java/com/google/crypto/tink/subtle/
DBytesTest.java21 import static org.junit.Assert.assertThrows;
49 assertThrows(IllegalArgumentException.class, () -> Bytes.xor(THREE_ZEROES, TWO_ONES)); in xorTwoArgsSizeMismatchA()
54 assertThrows(IllegalArgumentException.class, () -> Bytes.xor(TWO_ONES, THREE_ZEROES)); in xorTwoArgsSizeMismatchB()
74 assertThrows(IllegalArgumentException.class, () -> Bytes.xor(THREE_ZEROES, 0, TWO_ONES, 0, 3)); in xorThreeArgsTooLong()
79 assertThrows(IllegalArgumentException.class, () -> Bytes.xor(THREE_ZEROES, 3, TWO_ONES, 1, 1)); in xorThreeArgsTooLongOffsets()
84 assertThrows(IllegalArgumentException.class, () -> Bytes.xor(TWO_ONES, THREE_ZEROES)); in xorThreeArgsSizeMismatchB()
98 assertThrows(IllegalArgumentException.class, () -> Bytes.xorEnd(TWO_ONES, THREE_ZEROES)); in xorEndSizeMismatch()
106 assertThrows(IllegalArgumentException.class, () -> Bytes.xor(output, x, y, -1)); in xorByteBufferNegativeLength()
114 assertThrows(IllegalArgumentException.class, () -> Bytes.xor(output, x, y, 10)); in xorByteBufferLengthLargerThanOutput()
122 assertThrows(IllegalArgumentException.class, () -> Bytes.xor(output, x, y, 10)); in xorByteBufferLengthLargerThanFirstInput()
[all …]
/external/turbine/javatests/com/google/turbine/parse/
DParseErrorTest.java20 import static org.junit.Assert.assertThrows;
39 TurbineError e = assertThrows(TurbineError.class, () -> parser.expression()); in intBound()
49 TurbineError e = assertThrows(TurbineError.class, () -> parser.expression()); in hexIntBound()
56 TurbineError e = assertThrows(TurbineError.class, () -> Parser.parse(input)); in unexpectedTopLevel()
69 TurbineError e = assertThrows(TurbineError.class, () -> Parser.parse(input)); in unexpectedIdentifier()
82 TurbineError e = assertThrows(TurbineError.class, () -> Parser.parse(input)); in missingTrailingCloseBrace()
95 TurbineError e = assertThrows(TurbineError.class, () -> Parser.parse(input)); in annotationArgument()
108 TurbineError e = assertThrows(TurbineError.class, () -> Parser.parse(input)); in dropParens()
121 TurbineError e = assertThrows(TurbineError.class, () -> Parser.parse(input)); in dropBlocks()
134 TurbineError e = assertThrows(TurbineError.class, () -> Parser.parse(input)); in unterminatedString()
[all …]
/external/apache-commons-io/src/test/java/org/apache/commons/io/
DFileSystemUtilsTest.java21 import static org.junit.jupiter.api.Assertions.assertThrows;
148assertThrows(IllegalStateException.class, () -> fsu.freeSpaceOS("", -1, false, NEG_1_TIMEOUT));
149assertThrows(IllegalStateException.class, () -> fsu.freeSpaceOS("", -1, true, NEG_1_TIMEOUT));
155assertThrows(NullPointerException.class, () -> fsu.freeSpaceOS(null, 1, false, NEG_1_TIMEOUT));
156assertThrows(NullPointerException.class, () -> fsu.freeSpaceOS(null, 1, true, NEG_1_TIMEOUT));
162assertThrows(IllegalStateException.class, () -> fsu.freeSpaceOS("", 0, false, NEG_1_TIMEOUT));
163assertThrows(NullPointerException.class, () -> fsu.freeSpaceOS(null, 1, true, NEG_1_TIMEOUT));
164assertThrows(IllegalStateException.class, () -> fsu.freeSpaceOS("", 0, true, NEG_1_TIMEOUT));
197assertThrows(IllegalArgumentException.class, () -> fsu.freeSpaceUnix("", false, false, NEG_1_TIMEO…
198assertThrows(IllegalArgumentException.class, () -> fsu.freeSpaceUnix("", true, false, NEG_1_TIMEOU…
[all …]
/external/ow2-asm/asm-util/src/test/java/org/objectweb/asm/util/
DCheckMethodAdapterTest.java32 import static org.junit.jupiter.api.Assertions.assertThrows;
59 assertThrows(IllegalStateException.class, () -> new CheckMethodAdapter(null) {}); in testConstructor()
60 assertThrows( in testConstructor()
69 Exception exception = assertThrows(IllegalArgumentException.class, visitTypeAnnotation); in testVisitTypeAnnotation_illegalTypeRef()
80 Exception exception = assertThrows(IllegalArgumentException.class, visitParameterAnnotation); in testVisitParameterAnnotation_invisibleAnnotation_illegalParameterIndex()
91 Exception exception = assertThrows(IllegalArgumentException.class, visitParameterAnnotation); in testVisitParameterAnnotation_visibleAnnotation_illegalParameterIndex()
100 Exception exception = assertThrows(IllegalArgumentException.class, visitParameterAnnotation); in testVisitParameterAnnotation_illegalDescriptor()
110 Exception exception = assertThrows(IllegalStateException.class, visitAttribute); in testVisitAttribute_afterEnd()
118 Exception exception = assertThrows(IllegalArgumentException.class, visitAttribute); in testVisitAttribute_nullAttribute()
129 Exception exception = assertThrows(UnsupportedOperationException.class, visitCode); in testVisitCode_abstractMethod()
[all …]
DCheckSignatureAdapterTest.java32 import static org.junit.jupiter.api.Assertions.assertThrows;
58 assertThrows(IllegalStateException.class, visitFormalTypeParameter); in testVisitFormalTypeParameter_classSignature_illegalState()
68 assertThrows(IllegalStateException.class, visitFormalTypeParameter); in testVisitFormalTypeParameter_typeSignature_illegalState()
78 assertThrows(IllegalStateException.class, visitClassBound); in testVisitClassBound_classSignature_illegalState()
88 assertThrows(IllegalStateException.class, visitClassBound); in testVisitClassBound_typeSignature_illegalState()
98 assertThrows(IllegalStateException.class, visitInterfaceBound); in testVisitInterfaceBound_classSignature_illegalState()
108 assertThrows(IllegalStateException.class, visitInterfaceBound); in testVisitInterfaceBound_typeSignature_illegalState()
119 assertThrows(IllegalStateException.class, visitSuperClass); in testVisitSuperClass_classSignature_illegalState()
129 assertThrows(IllegalStateException.class, visitSuperClass); in testVisitSuperClass_methodSignature_illegalState()
139 assertThrows(IllegalStateException.class, visitInterface); in testVisitInterface_classSignature_illegalState()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/builder/
DJsonToStringStyleTest.java20 import static org.junit.jupiter.api.Assertions.assertThrows;
98assertThrows(UnsupportedOperationException.class, () -> new ToStringBuilder(base).append('A').toSt… in testChar()
111assertThrows(UnsupportedOperationException.class, () -> new ToStringBuilder(base).append(now).toSt… in testDate()
125 assertThrows( in testObject()
128assertThrows(UnsupportedOperationException.class, () -> new ToStringBuilder(base).append(i3).toStr… in testObject()
138 assertThrows( in testObject()
141 assertThrows( in testObject()
150 assertThrows( in testObject()
159 assertThrows( in testObject()
168 assertThrows( in testObject()
[all …]
/external/guava/android/guava-tests/test/com/google/common/base/
DPreconditionsTest.java25 import static com.google.common.base.ReflectionFreeAssertThrows.assertThrows;
59 assertThrows(IllegalArgumentException.class, () -> checkArgument(false)); in testCheckArgument_simple_failure()
68 assertThrows(IllegalArgumentException.class, () -> checkArgument(false, new Message())); in testCheckArgument_simpleMessage_failure()
74 assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null)); in testCheckArgument_nullMessage_failure()
80 assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null, "b", "d")); in testCheckArgument_nullMessageWithArgs_failure()
86 assertThrows( in testCheckArgument_nullArgs_failure()
93 assertThrows( in testCheckArgument_notEnoughArgs_failure()
100 assertThrows( in testCheckArgument_tooManyArgs_failure()
108 assertThrows( in testCheckArgument_singleNullArg_failure()
116 assertThrows( in testCheckArgument_singleNullArray_failure()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DPreconditionsTest.java25 import static com.google.common.base.ReflectionFreeAssertThrows.assertThrows;
59 assertThrows(IllegalArgumentException.class, () -> checkArgument(false)); in testCheckArgument_simple_failure()
68 assertThrows(IllegalArgumentException.class, () -> checkArgument(false, new Message())); in testCheckArgument_simpleMessage_failure()
74 assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null)); in testCheckArgument_nullMessage_failure()
80 assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null, "b", "d")); in testCheckArgument_nullMessageWithArgs_failure()
86 assertThrows( in testCheckArgument_nullArgs_failure()
93 assertThrows( in testCheckArgument_notEnoughArgs_failure()
100 assertThrows( in testCheckArgument_tooManyArgs_failure()
108 assertThrows( in testCheckArgument_singleNullArg_failure()
116 assertThrows( in testCheckArgument_singleNullArray_failure()
[all …]
/external/tink-java/src/test/java/com/google/crypto/tink/hybrid/internal/
DHpkeUtilTest.java19 import static org.junit.Assert.assertThrows;
51 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(5, 0)); in intToByteArray_failsWithInvalidCapacity()
52 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(-1, 0)); in intToByteArray_failsWithInvalidCapacity()
57 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(0, 1)); in intToByteArray_valueTooLong_fails()
58 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(0, -1)); in intToByteArray_valueTooLong_fails()
59 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(1, 256)); in intToByteArray_valueTooLong_fails()
60 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(1, -1)); in intToByteArray_valueTooLong_fails()
61 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(2, 256 * 256)); in intToByteArray_valueTooLong_fails()
62 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(2, -1)); in intToByteArray_valueTooLong_fails()
63 assertThrows(IllegalArgumentException.class, () -> HpkeUtil.intToByteArray(3, 256 * 256 * 256)); in intToByteArray_valueTooLong_fails()
[all …]
/external/apache-commons-io/src/test/java/org/apache/commons/io/output/
DBrokenWriterTest.java20 import static org.junit.jupiter.api.Assertions.assertThrows;
46 assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.append('1'))); in testAppendChar()
51 assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.append("01"))); in testAppendCharSequence()
56 … assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.append("01", 0, 1))); in testAppendCharSequenceIndexed()
61 assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.close())); in testClose()
67 assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.equals(null))); in testEquals()
72 assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.flush())); in testFlush()
78 assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.hashCode())); in testHashCode()
84 assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.toString())); in testToString()
89 final IOException thrown = assertThrows(IOException.class, () -> { in testTryWithResources()
[all …]
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/common/testing/
DFakeFileBackendTest.java18 import static org.junit.Assert.assertThrows;
69 assertThrows(FakeIOException.class, () -> backend.openForRead(uri)); in throwsExceptions_forRead()
70 assertThrows(FakeIOException.class, () -> backend.openForNativeRead(uri)); in throwsExceptions_forRead()
82 assertThrows(FakeIOException.class, () -> backend.openForWrite(uri)); in throwsExceptions_forWrite()
83 assertThrows(FakeIOException.class, () -> backend.openForAppend(uri)); in throwsExceptions_forWrite()
96 assertThrows(FakeIOException.class, () -> backend.exists(uri)); in throwsExceptions_forQuery()
97 assertThrows(FakeIOException.class, () -> backend.isDirectory(uri)); in throwsExceptions_forQuery()
98 assertThrows(FakeIOException.class, () -> backend.fileSize(uri)); in throwsExceptions_forQuery()
99 assertThrows(FakeIOException.class, () -> backend.children(dir)); in throwsExceptions_forQuery()
100 assertThrows(FakeIOException.class, () -> backend.getGcParam(uri)); in throwsExceptions_forQuery()
[all …]
/external/tink-java/src/test/java/com/google/crypto/tink/
DNoSecretKeysetHandleTest.java20 import static org.junit.Assert.assertThrows;
80 assertThrows( in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
82 assertThrows( in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
86 assertThrows( in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
88 assertThrows( in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
99 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
101 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
104 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
108 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
110 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
[all …]
/external/tink/java_src/src/test/java/com/google/crypto/tink/
DNoSecretKeysetHandleTest.java20 import static org.junit.Assert.assertThrows;
80 assertThrows( in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
82 assertThrows( in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
86 assertThrows( in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
88 assertThrows( in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
99 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
101 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
104 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
108 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
110 assertThrows( in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret()
[all …]
/external/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/
DAssignmentOperationExprTest.java17 import static org.junit.Assert.assertThrows;
118 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_numericWithBooleanBoxedType()
128 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_numericWithBooleanType()
138 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_numericWithReferenceType()
148 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_NumericWithNewObject()
159 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_booleanWithNumericType()
169 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_booleanBoxedWithNumericType()
226 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_integerBoxedWithFloatType()
236 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_integerBoxedWithFloatBoxedType()
246 assertThrows( in invalidMultiplyAndAssignmentOperationExpr_integerBoxedWithDoubleType()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/
DHkdfTest.java22 import static org.junit.Assert.assertThrows;
42 assertThrows(NullPointerException.class, () -> new Hkdf(null)); in constructor()
43 assertThrows(NoSuchAlgorithmException.class, () -> new Hkdf("No such MAC")); in constructor()
52 assertThrows(NullPointerException.class, () -> hkdf.extract(null, new byte[0])); in extract()
53 assertThrows(NullPointerException.class, () -> hkdf.extract(new byte[0], null)); in extract()
54 assertThrows(NullPointerException.class, () -> hkdf.extract(null, null)); in extract()
55 assertThrows(IllegalArgumentException.class, () -> hkdf.extract(new byte[0], new byte[0])); in extract()
62 assertThrows(NullPointerException.class, () -> hkdf.expand(null, new byte[0], 1)); in expand()
63 assertThrows(NullPointerException.class, () -> hkdf.expand(new byte[macLen], null, 1)); in expand()
64 assertThrows(NullPointerException.class, () -> hkdf.expand(null, null, 1)); in expand()
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/
DHkdfTest.java21 import static org.junit.Assert.assertThrows;
38 assertThrows(NullPointerException.class, () -> new Hkdf(null)); in constructor()
39 assertThrows(NoSuchAlgorithmException.class, () -> new Hkdf("No such MAC")); in constructor()
48 assertThrows(NullPointerException.class, () -> hkdf.extract(null, new byte[0])); in extract()
49 assertThrows(NullPointerException.class, () -> hkdf.extract(new byte[0], null)); in extract()
50 assertThrows(NullPointerException.class, () -> hkdf.extract(null, null)); in extract()
51 assertThrows(IllegalArgumentException.class, () -> hkdf.extract(new byte[0], new byte[0])); in extract()
58 assertThrows(NullPointerException.class, () -> hkdf.expand(null, new byte[0], 1)); in expand()
59 assertThrows(NullPointerException.class, () -> hkdf.expand(new byte[macLen], null, 1)); in expand()
60 assertThrows(NullPointerException.class, () -> hkdf.expand(null, null, 1)); in expand()
[all …]
DHpkeContextSenderTest.java29 import static org.junit.Assert.assertThrows;
47 assertThrows(NoSuchAlgorithmException.class, in testGetInstance()
49 assertThrows(NoSuchAlgorithmException.class, in testGetInstance()
51 assertThrows(IllegalArgumentException.class, in testGetInstance()
53 assertThrows(IllegalArgumentException.class, in testGetInstance()
55 assertThrows(NoSuchProviderException.class, in testGetInstance()
66 assertThrows(InvalidKeyException.class, in testInitBase()
68 assertThrows(InvalidKeyException.class, in testInitBase()
72 assertThrows(InvalidKeyException.class, in testInitBase()
75 assertThrows(IllegalArgumentException.class, in testInitBase()
[all …]
/external/apache-commons-io/src/test/java/org/apache/commons/io/build/
DOutputStreamOriginTest.java19 import static org.junit.jupiter.api.Assertions.assertThrows;
46 assertThrows(UnsupportedOperationException.class, super::testGetByteArray); in testGetByteArray()
53 assertThrows(UnsupportedOperationException.class, super::testGetByteArrayAt_0_0); in testGetByteArrayAt_0_0()
60 assertThrows(UnsupportedOperationException.class, super::testGetByteArrayAt_0_1); in testGetByteArrayAt_0_1()
67 assertThrows(UnsupportedOperationException.class, super::testGetByteArrayAt_1_1); in testGetByteArrayAt_1_1()
74 assertThrows(UnsupportedOperationException.class, super::testGetCharSequence); in testGetCharSequence()
81 assertThrows(UnsupportedOperationException.class, super::testGetFile); in testGetFile()
88 assertThrows(UnsupportedOperationException.class, super::testGetInputStream); in testGetInputStream()
95 assertThrows(UnsupportedOperationException.class, super::testGetPath); in testGetPath()
102 assertThrows(UnsupportedOperationException.class, super::testGetReader); in testGetReader()
[all …]
DWriterStreamOriginTest.java19 import static org.junit.jupiter.api.Assertions.assertThrows;
45 assertThrows(UnsupportedOperationException.class, super::testGetByteArray); in testGetByteArray()
52 assertThrows(UnsupportedOperationException.class, super::testGetByteArrayAt_0_0); in testGetByteArrayAt_0_0()
59 assertThrows(UnsupportedOperationException.class, super::testGetByteArrayAt_0_1); in testGetByteArrayAt_0_1()
66 assertThrows(UnsupportedOperationException.class, super::testGetByteArrayAt_1_1); in testGetByteArrayAt_1_1()
73 assertThrows(UnsupportedOperationException.class, super::testGetCharSequence); in testGetCharSequence()
80 assertThrows(UnsupportedOperationException.class, super::testGetFile); in testGetFile()
87 assertThrows(UnsupportedOperationException.class, super::testGetInputStream); in testGetInputStream()
94 assertThrows(UnsupportedOperationException.class, super::testGetPath); in testGetPath()
101 assertThrows(UnsupportedOperationException.class, super::testGetReader); in testGetReader()
[all …]

12345678910>>...75