Home
last modified time | relevance | path

Searched refs:expectedMessage (Results 1 – 25 of 27) sorted by relevance

12

/external/antlr/tool/src/test/java/org/antlr/test/
DTestSymbolDefinitions.java249 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 …]
DTestTemplates.java314 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()
DTestAttributes.java440 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 …]
DTestMessages.java74 GrammarSemanticsMessage expectedMessage = in testMessageStringificationIsConsistent() local
76 String expectedMessageString = expectedMessage.toString(); in testMessageStringificationIsConsistent()
77 assertEquals(expectedMessageString, expectedMessage.toString()); in testMessageStringificationIsConsistent()
DBaseTest.java524 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 …]
DTestRewriteAST.java1179 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 …]
DTestCompositeGrammars.java304 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()
DTestTreeGrammarRewriteAST.java254 GrammarSyntaxMessage expectedMessage = in testNoWildcardAsRootError() local
257 checkError(equeue, expectedMessage); in testNoWildcardAsRootError()
/external/angle/src/tests/gl_tests/
DErrorMessages.cpp89 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()
DDebugTest.cpp164 std::string expectedMessage(i + 1, messageRepeatChar); in TEST_P() local
168 EXPECT_EQ(static_cast<GLint>(expectedMessage.length()), messageLength); in TEST_P()
185 EXPECT_STREQ(expectedMessage.c_str(), messageBuf.data()); in TEST_P()
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/
DMatcherAssertTest.java16 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/
DDescriptiveMessagesOnVerificationInOrderErrorsTest.java126 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()
DDescriptiveMessagesWhenVerificationFailsTest.java40 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/protobuf/java/core/src/test/java/com/google/protobuf/
DAbstractProto3SchemaTest.java123 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()
DAbstractProto3LiteSchemaTest.java125 Proto3MessageLite expectedMessage = messageFactory().newMessage(); in retainUnknownFields() local
128 expectedMessage.toByteArray(), Proto3EmptyLite.class); in retainUnknownFields()
129 assertEquals(expectedMessage.getSerializedSize(), empty.getSerializedSize()); in retainUnknownFields()
DAbstractProto2LiteSchemaTest.java126 Proto2MessageLite expectedMessage = messageFactory().newMessage(); in unknownFieldsUnrecognized() local
127 byte[] serializedBytes = expectedMessage.toByteArray(); in unknownFieldsUnrecognized()
136 assertEquals(expectedMessage, roundtripMessage); in unknownFieldsUnrecognized()
DAbstractProto2SchemaTest.java120 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/
DSafeJUnitRule.java54 …ublic void expectFailure(final Class<? extends Throwable> expected, final String expectedMessage) {
57 assertThrowable(t, expected).hasMessage(expectedMessage);
/external/guava/android/guava-tests/test/com/google/common/io/
DBaseEncodingTest.java391 BaseEncoding encoding, String cannotDecode, @NullableDecl String expectedMessage) { in assertFailsToDecode() argument
397 if (expectedMessage != null) { in assertFailsToDecode()
398 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode()
405 if (expectedMessage != null) { in assertFailsToDecode()
406 assertThat(expected).hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode()
/external/guava/guava-tests/test/com/google/common/io/
DBaseEncodingTest.java391 BaseEncoding encoding, String cannotDecode, @Nullable String expectedMessage) { in assertFailsToDecode() argument
397 if (expectedMessage != null) { in assertFailsToDecode()
398 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode()
405 if (expectedMessage != null) { in assertFailsToDecode()
406 assertThat(expected).hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode()
/external/guava/guava-testlib/test/com/google/common/testing/
DEquivalenceTesterTest.java185 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/
DEquivalenceTesterTest.java185 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/
DCloudTraceFormatTest.java109 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/
DGeneratedMessageTest.java388 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/
DSmartSuggestionsHelperTest.java424 String expectedMessage, in assertMessage() argument
427 assertThat(subject.getText().toString()).isEqualTo(expectedMessage); in assertMessage()

12