/external/antlr/tool/src/test/java/org/antlr/test/ |
D | TestSymbolDefinitions.java | 249 GrammarSemanticsMessage expectedMessage = in testParserStringLiterals() local 251 checkGrammarSemanticsError(equeue, expectedMessage); in testParserStringLiterals() 263 GrammarSemanticsMessage expectedMessage = in testParserCharLiterals() local 265 checkGrammarSemanticsError(equeue, expectedMessage); in testParserCharLiterals() 277 GrammarSemanticsMessage expectedMessage = in testEmptyNotChar() local 279 checkGrammarSemanticsError(equeue, expectedMessage); in testEmptyNotChar() 291 GrammarSemanticsMessage expectedMessage = in testEmptyNotToken() local 293 checkGrammarSemanticsError(equeue, expectedMessage); in testEmptyNotToken() 305 GrammarSemanticsMessage expectedMessage = in testEmptyNotSet() local 307 checkGrammarSemanticsError(equeue, expectedMessage); in testEmptyNotSet() [all …]
|
D | TestTemplates.java | 314 GrammarSemanticsMessage expectedMessage = in testCannotHaveSpaceBeforeDot() local 316 checkError(equeue, expectedMessage); in testCannotHaveSpaceBeforeDot() 342 GrammarSemanticsMessage expectedMessage = in testCannotHaveSpaceAfterDot() local 344 checkError(equeue, expectedMessage); in testCannotHaveSpaceAfterDot() 348 GrammarSemanticsMessage expectedMessage) in checkError() argument 359 if (m.msgID==expectedMessage.msgID ) { in checkError() 363 assertTrue("no error; "+expectedMessage.msgID+" expected", equeue.errors.size()>0); in checkError() 365 assertTrue("couldn't find expected error: "+expectedMessage.msgID, foundMsg!=null); in checkError() 368 assertEquals(expectedMessage.arg, foundMsg.arg); in checkError() 369 assertEquals(expectedMessage.arg2, foundMsg.arg2); in checkError()
|
D | TestAttributes.java | 440 GrammarSemanticsMessage expectedMessage = in testInvalidArguments() local 442 checkError(equeue, expectedMessage); in testInvalidArguments() 607 GrammarSemanticsMessage expectedMessage = in testInvalidReturnValues() local 609 checkError(equeue, expectedMessage); in testInvalidReturnValues() 756 GrammarSemanticsMessage expectedMessage = in testInvalidRuleLabelAccessesParameter() local 758 checkError(equeue, expectedMessage); in testInvalidRuleLabelAccessesParameter() 785 GrammarSemanticsMessage expectedMessage = in testInvalidRuleLabelAccessesScopeAttribute() local 787 checkError(equeue, expectedMessage); in testInvalidRuleLabelAccessesScopeAttribute() 813 GrammarSemanticsMessage expectedMessage = in testInvalidRuleAttribute() local 815 checkError(equeue, expectedMessage); in testInvalidRuleAttribute() [all …]
|
D | TestMessages.java | 74 GrammarSemanticsMessage expectedMessage = in testMessageStringificationIsConsistent() local 76 String expectedMessageString = expectedMessage.toString(); in testMessageStringificationIsConsistent() 77 assertEquals(expectedMessageString, expectedMessage.toString()); in testMessageStringificationIsConsistent()
|
D | TestRewriteAST.java | 1179 GrammarSemanticsMessage expectedMessage = in testUnknownRule() local 1182 checkError(equeue, expectedMessage); in testUnknownRule() 1208 GrammarSemanticsMessage expectedMessage = in testKnownRuleButNotInLHS() local 1211 checkError(equeue, expectedMessage); in testKnownRuleButNotInLHS() 1236 GrammarSemanticsMessage expectedMessage = in testUnknownToken() local 1239 checkError(equeue, expectedMessage); in testUnknownToken() 1264 GrammarSemanticsMessage expectedMessage = in testUnknownLabel() local 1267 checkError(equeue, expectedMessage); in testUnknownLabel() 1292 GrammarSemanticsMessage expectedMessage = in testUnknownCharLiteralToken() local 1295 checkError(equeue, expectedMessage); in testUnknownCharLiteralToken() [all …]
|
D | BaseTest.java | 524 GrammarSemanticsMessage expectedMessage) in checkGrammarSemanticsError() argument 536 if (m.msgID==expectedMessage.msgID ) { in checkGrammarSemanticsError() 540 assertNotNull("no error; "+expectedMessage.msgID+" expected", foundMsg); in checkGrammarSemanticsError() 543 assertEquals(expectedMessage.arg, foundMsg.arg); in checkGrammarSemanticsError() 550 GrammarSemanticsMessage expectedMessage) in checkGrammarSemanticsWarning() argument 556 if (m.msgID==expectedMessage.msgID ) { in checkGrammarSemanticsWarning() 560 assertNotNull("no error; "+expectedMessage.msgID+" expected", foundMsg); in checkGrammarSemanticsWarning() 563 assertEquals(expectedMessage.arg, foundMsg.arg); in checkGrammarSemanticsWarning() 567 Message expectedMessage) in checkError() argument 574 if (m.msgID==expectedMessage.msgID ) { in checkError() [all …]
|
D | TestCompositeGrammars.java | 304 GrammarSemanticsMessage expectedMessage = in testSameStringTwoNames() local 306 checkGrammarSemanticsError(equeue, expectedMessage); in testSameStringTwoNames() 357 GrammarSemanticsMessage expectedMessage = in testSameNameTwoStrings() local 359 checkGrammarSemanticsError(equeue, expectedMessage); in testSameNameTwoStrings() 394 GrammarSemanticsMessage expectedMessage = in testImportedTokenVocabIgnoredWithWarning() local 396 checkGrammarSemanticsWarning(equeue, expectedMessage); in testImportedTokenVocabIgnoredWithWarning()
|
D | TestTreeGrammarRewriteAST.java | 254 GrammarSyntaxMessage expectedMessage = in testNoWildcardAsRootError() local 257 checkError(equeue, expectedMessage); in testNoWildcardAsRootError()
|
/external/angle/src/tests/gl_tests/ |
D | ErrorMessages.cpp | 89 Message expectedMessage; in TEST_P() local 99 expectedMessage.source = source; in TEST_P() 100 expectedMessage.id = id1; in TEST_P() 101 expectedMessage.type = type; in TEST_P() 102 expectedMessage.severity = severity; in TEST_P() 103 expectedMessage.message = message1; in TEST_P() 106 ASSERT_TRUE(m == expectedMessage); in TEST_P()
|
D | DebugTest.cpp | 314 std::string expectedMessage(i + 1, messageRepeatChar); in TEST_P() local 318 EXPECT_EQ(static_cast<GLint>(expectedMessage.length()) + 1, messageLength); in TEST_P() 335 EXPECT_STREQ(expectedMessage.c_str(), messageBuf.data()); in TEST_P()
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/ |
D | MatcherAssertTest.java | 16 String expectedMessage = "identifier\nExpected: \"expected\"\n but: was \"actual\""; in includesDescriptionOfTestedValueInErrorMessage() local 22 assertTrue(e.getMessage().startsWith(expectedMessage)); in includesDescriptionOfTestedValueInErrorMessage() 34 String expectedMessage = "\nExpected: \"expected\"\n but: was \"actual\""; in descriptionCanBeElided() local 40 assertTrue(e.getMessage().startsWith(expectedMessage)); in descriptionCanBeElided() 81 String expectedMessage = "\nExpected: Something cool\n but: Not cool"; in includesMismatchDescription() local 88 assertEquals(expectedMessage, e.getMessage()); in includesMismatchDescription()
|
/external/mockito/src/test/java/org/mockitousage/verification/ |
D | DescriptiveMessagesOnVerificationInOrderErrorsTest.java | 126 String expectedMessage = in shouldPrintMethodThatWasNotInvoked() 133 assertThat(e).hasMessageContaining(expectedMessage); in shouldPrintMethodThatWasNotInvoked() 145 String expectedMessage = in shouldPrintTooManyInvocations() 154 assertThat(e).hasMessageContaining(expectedMessage); in shouldPrintTooManyInvocations() 177 String expectedMessage = in shouldPrintTooLittleInvocations() 186 assertThat(e).hasMessageContaining(expectedMessage); in shouldPrintTooLittleInvocations()
|
D | DescriptiveMessagesWhenVerificationFailsTest.java | 40 String expectedMessage = in should_print_method_name() 47 assertThat(e).hasMessageContaining(expectedMessage); in should_print_method_name() 170 String expectedMessage = in should_print_first_unexpected_invocation() 175 assertThat(e).hasMessageContaining(expectedMessage); in should_print_first_unexpected_invocation() 229 String expectedMessage = in should_print_method_when_matcher_used() 237 assertThat(e).hasMessageContaining(expectedMessage); in should_print_method_when_matcher_used()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 408 BaseEncoding encoding, String cannotDecode, @Nullable String expectedMessage) { in assertFailsToDecode() argument 413 strategy.assertFailsToDecode(encoding, cannotDecode, expectedMessage); in assertFailsToDecode() 422 BaseEncoding encoding, String cannotDecode, @Nullable String expectedMessage) { in assertFailsToDecode() argument 443 BaseEncoding encoding, String cannotDecode, @Nullable String expectedMessage) { in assertFailsToDecode() argument 450 BaseEncoding encoding, String cannotDecode, @Nullable String expectedMessage) { in assertFailsToDecode() argument 455 if (expectedMessage != null) { in assertFailsToDecode() 456 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode() 464 BaseEncoding encoding, String cannotDecode, @Nullable String expectedMessage) { in assertFailsToDecode() argument 469 if (expectedMessage != null) { in assertFailsToDecode() 470 assertThat(expected).hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 408 BaseEncoding encoding, String cannotDecode, @NullableDecl String expectedMessage) { in assertFailsToDecode() argument 413 strategy.assertFailsToDecode(encoding, cannotDecode, expectedMessage); in assertFailsToDecode() 422 BaseEncoding encoding, String cannotDecode, @NullableDecl String expectedMessage) { in assertFailsToDecode() argument 443 BaseEncoding encoding, String cannotDecode, @NullableDecl String expectedMessage) { in assertFailsToDecode() argument 450 BaseEncoding encoding, String cannotDecode, @NullableDecl String expectedMessage) { in assertFailsToDecode() argument 455 if (expectedMessage != null) { in assertFailsToDecode() 456 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode() 464 BaseEncoding encoding, String cannotDecode, @NullableDecl String expectedMessage) { in assertFailsToDecode() argument 469 if (expectedMessage != null) { in assertFailsToDecode() 470 assertThat(expected).hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | AbstractProto3SchemaTest.java | 123 Proto3Message expectedMessage = messageFactory().newMessage(); in preserveUnknownFields() local 126 expectedMessage.toByteArray(), Proto3Empty.class); in preserveUnknownFields() 127 assertEquals(expectedMessage.getSerializedSize(), empty.getSerializedSize()); in preserveUnknownFields() 128 assertEquals(expectedMessage.toByteString(), empty.toByteString()); in preserveUnknownFields()
|
D | AbstractProto3LiteSchemaTest.java | 125 Proto3MessageLite expectedMessage = messageFactory().newMessage(); in retainUnknownFields() local 128 expectedMessage.toByteArray(), Proto3EmptyLite.class); in retainUnknownFields() 129 assertEquals(expectedMessage.getSerializedSize(), empty.getSerializedSize()); in retainUnknownFields()
|
D | AbstractProto2LiteSchemaTest.java | 126 Proto2MessageLite expectedMessage = messageFactory().newMessage(); in unknownFieldsUnrecognized() local 127 byte[] serializedBytes = expectedMessage.toByteArray(); in unknownFieldsUnrecognized() 136 assertEquals(expectedMessage, roundtripMessage); in unknownFieldsUnrecognized()
|
D | AbstractProto2SchemaTest.java | 120 Proto2Message expectedMessage = messageFactory().newMessage(); in unknownFieldsUnrecognized() local 121 byte[] serializedBytes = expectedMessage.toByteArray(); in unknownFieldsUnrecognized() 131 assertEquals(expectedMessage, roundtripMessage); in unknownFieldsUnrecognized()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | SafeJUnitRule.java | 54 …ublic void expectFailure(final Class<? extends Throwable> expected, final String expectedMessage) { 57 assertThrowable(t, expected).hasMessage(expectedMessage);
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
D | EquivalenceTesterTest.java | 185 String expectedMessage = in testTest_hash() 188 if (!expected.getMessage().contains(expectedMessage)) { in testTest_hash() 189 fail("<" + expected.getMessage() + "> expected to contain <" + expectedMessage + ">"); in testTest_hash()
|
/external/guava/android/guava-testlib/test/com/google/common/testing/ |
D | EquivalenceTesterTest.java | 185 String expectedMessage = in testTest_hash() 188 if (!expected.getMessage().contains(expectedMessage)) { in testTest_hash() 189 fail("<" + expected.getMessage() + "> expected to contain <" + expectedMessage + ">"); in testTest_hash()
|
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/ |
D | CloudTraceFormatTest.java | 109 String headerValue, Class<? extends Throwable> expectedThrown, String expectedMessage) in parseFailure() argument 114 thrown.expectMessage(expectedMessage); in parseFailure()
|
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | GeneratedMessageTest.java | 388 TestAllTypes expectedMessage = TestAllTypes.newBuilder() in testSettingForeignMessageUsingBuilder() local 394 assertEquals(expectedMessage.toString(), message.toString()); in testSettingForeignMessageUsingBuilder() 402 TestAllTypes expectedMessage = TestAllTypes.newBuilder() in testSettingRepeatedForeignMessageUsingBuilder() local 407 assertEquals(expectedMessage.toString(), message.toString()); in testSettingRepeatedForeignMessageUsingBuilder()
|
/external/libtextclassifier/notification/tests/src/com/android/textclassifier/notification/ |
D | SmartSuggestionsHelperTest.java | 425 String expectedMessage, in assertMessage() argument 428 assertThat(subject.getText().toString()).isEqualTo(expectedMessage); in assertMessage()
|