Home
last modified time | relevance | path

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

/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/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/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/guava-testlib/test/com/google/common/testing/
DEquivalenceTesterTest.java180 String expectedMessage = in testTest_hash()
183 if (!expected.getMessage().contains(expectedMessage)) { in testTest_hash()
184 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/core/src/test/java/com/google/protobuf/
DGeneratedMessageTest.java448 TestAllTypes expectedMessage = TestAllTypes.newBuilder() in testSettingForeignMessageUsingBuilder() local
454 assertEquals(expectedMessage.toString(), message.toString()); in testSettingForeignMessageUsingBuilder()
462 TestAllTypes expectedMessage = TestAllTypes.newBuilder() in testSettingRepeatedForeignMessageUsingBuilder() local
467 assertEquals(expectedMessage.toString(), message.toString()); in testSettingRepeatedForeignMessageUsingBuilder()
/external/bcc/tests/cc/
Dcatch.hpp1255 void captureExpectedException( std::string const& expectedMessage );
8207 void ResultBuilder::captureExpectedException( std::string const& expectedMessage ) { in captureExpectedException() argument
8208 if( expectedMessage.empty() ) in captureExpectedException()
8211 captureExpectedException( Matchers::Equals( expectedMessage ) ); in captureExpectedException()