/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestSymbolDefinitions.java | 247 GrammarSemanticsMessage expectedMessage = in testParserStringLiterals() local 249 checkGrammarSemanticsError(equeue, expectedMessage); in testParserStringLiterals() 261 GrammarSemanticsMessage expectedMessage = in testParserCharLiterals() local 263 checkGrammarSemanticsError(equeue, expectedMessage); in testParserCharLiterals() 275 GrammarSemanticsMessage expectedMessage = in testEmptyNotChar() local 277 checkGrammarSemanticsError(equeue, expectedMessage); in testEmptyNotChar() 289 GrammarSemanticsMessage expectedMessage = in testEmptyNotToken() local 291 checkGrammarSemanticsError(equeue, expectedMessage); in testEmptyNotToken() 303 GrammarSemanticsMessage expectedMessage = in testEmptyNotSet() local 305 checkGrammarSemanticsError(equeue, expectedMessage); in testEmptyNotSet() [all …]
|
D | TestTemplates.java | 312 GrammarSemanticsMessage expectedMessage = in testCannotHaveSpaceBeforeDot() local 314 checkError(equeue, expectedMessage); in testCannotHaveSpaceBeforeDot() 340 GrammarSemanticsMessage expectedMessage = in testCannotHaveSpaceAfterDot() local 342 checkError(equeue, expectedMessage); in testCannotHaveSpaceAfterDot() 346 GrammarSemanticsMessage expectedMessage) in checkError() argument 357 if (m.msgID==expectedMessage.msgID ) { in checkError() 361 assertTrue("no error; "+expectedMessage.msgID+" expected", equeue.errors.size()>0); in checkError() 363 assertTrue("couldn't find expected error: "+expectedMessage.msgID, foundMsg!=null); in checkError() 366 assertEquals(expectedMessage.arg, foundMsg.arg); in checkError() 367 assertEquals(expectedMessage.arg2, foundMsg.arg2); in checkError()
|
D | TestAttributes.java | 438 GrammarSemanticsMessage expectedMessage = in testInvalidArguments() local 440 checkError(equeue, expectedMessage); in testInvalidArguments() 605 GrammarSemanticsMessage expectedMessage = in testInvalidReturnValues() local 607 checkError(equeue, expectedMessage); in testInvalidReturnValues() 754 GrammarSemanticsMessage expectedMessage = in testInvalidRuleLabelAccessesParameter() local 756 checkError(equeue, expectedMessage); in testInvalidRuleLabelAccessesParameter() 783 GrammarSemanticsMessage expectedMessage = in testInvalidRuleLabelAccessesScopeAttribute() local 785 checkError(equeue, expectedMessage); in testInvalidRuleLabelAccessesScopeAttribute() 811 GrammarSemanticsMessage expectedMessage = in testInvalidRuleAttribute() local 813 checkError(equeue, expectedMessage); in testInvalidRuleAttribute() [all …]
|
D | TestMessages.java | 72 GrammarSemanticsMessage expectedMessage = in testMessageStringificationIsConsistent() local 74 String expectedMessageString = expectedMessage.toString(); in testMessageStringificationIsConsistent() 75 assertEquals(expectedMessageString, expectedMessage.toString()); in testMessageStringificationIsConsistent()
|
D | BaseTest.java | 432 GrammarSemanticsMessage expectedMessage) in checkGrammarSemanticsError() argument 444 if (m.msgID==expectedMessage.msgID ) { in checkGrammarSemanticsError() 448 assertNotNull("no error; "+expectedMessage.msgID+" expected", foundMsg); in checkGrammarSemanticsError() 451 assertEquals(expectedMessage.arg, foundMsg.arg); in checkGrammarSemanticsError() 458 GrammarSemanticsMessage expectedMessage) in checkGrammarSemanticsWarning() argument 464 if (m.msgID==expectedMessage.msgID ) { in checkGrammarSemanticsWarning() 468 assertNotNull("no error; "+expectedMessage.msgID+" expected", foundMsg); in checkGrammarSemanticsWarning() 471 assertEquals(expectedMessage.arg, foundMsg.arg); in checkGrammarSemanticsWarning() 475 Message expectedMessage) in checkError() argument 482 if (m.msgID==expectedMessage.msgID ) { in checkError() [all …]
|
D | TestRewriteAST.java | 1180 GrammarSemanticsMessage expectedMessage = in testUnknownRule() local 1183 checkError(equeue, expectedMessage); in testUnknownRule() 1209 GrammarSemanticsMessage expectedMessage = in testKnownRuleButNotInLHS() local 1212 checkError(equeue, expectedMessage); in testKnownRuleButNotInLHS() 1237 GrammarSemanticsMessage expectedMessage = in testUnknownToken() local 1240 checkError(equeue, expectedMessage); in testUnknownToken() 1265 GrammarSemanticsMessage expectedMessage = in testUnknownLabel() local 1268 checkError(equeue, expectedMessage); in testUnknownLabel() 1293 GrammarSemanticsMessage expectedMessage = in testUnknownCharLiteralToken() local 1296 checkError(equeue, expectedMessage); in testUnknownCharLiteralToken() [all …]
|
D | TestCompositeGrammars.java | 302 GrammarSemanticsMessage expectedMessage = in testSameStringTwoNames() local 304 checkGrammarSemanticsError(equeue, expectedMessage); in testSameStringTwoNames() 355 GrammarSemanticsMessage expectedMessage = in testSameNameTwoStrings() local 357 checkGrammarSemanticsError(equeue, expectedMessage); in testSameNameTwoStrings() 392 GrammarSemanticsMessage expectedMessage = in testImportedTokenVocabIgnoredWithWarning() local 394 checkGrammarSemanticsWarning(equeue, expectedMessage); in testImportedTokenVocabIgnoredWithWarning()
|
D | TestTreeGrammarRewriteAST.java | 253 GrammarSyntaxMessage expectedMessage = in testNoWildcardAsRootError() local 256 checkError(equeue, expectedMessage); in testNoWildcardAsRootError()
|
/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/mockito/src/test/java/org/mockitoutil/ |
D | SafeJUnitRule.java | 50 …ublic void expectFailure(final Class<? extends Throwable> expected, final String expectedMessage) { 53 assertThrowable(t, expected).hasMessage(expectedMessage);
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
D | EquivalenceTesterTest.java | 180 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/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | ProgressDialogTest.java | 125 …private void assertLatestDialogsSet(CharSequence expectedTitle, CharSequence expectedMessage, bool… in assertLatestDialogsSet() argument 138 assertEquals(expectedMessage, shadowOf(dialog).getMessage()); in assertLatestDialogsSet()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | ConscryptEngineTest.java | 191 byte[] expectedMessage = toArray(clientCleartextBuffer); in exchangeMessages() 203 assertArrayEquals(expectedMessage, actualMessage); in exchangeMessages()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | GeneratedMessageTest.java | 448 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()
|