/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 | 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 | 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 …]
|
/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()
|
/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/apache-commons-io/src/test/java/org/apache/commons/io/ |
D | FileUtilsCopyDirectoryToDirectoryTest.java | 42 final Class<? extends Exception> expectedExceptionType, final String expectedMessage) { in assertExceptionTypeAndMessage() argument 48 assertEquals(expectedMessage, msg); in assertExceptionTypeAndMessage() 69 …final String expectedMessage = String.format("Parameter 'destinationDir' is not a directory: '%s'", in copyDirectoryToDirectoryThrowsIllegalArgumentExceptionWithCorrectMessageWhenDstDirIsNotDirectory() local 71 … assertExceptionTypeAndMessage(srcDir, destDir, IllegalArgumentException.class, expectedMessage); in copyDirectoryToDirectoryThrowsIllegalArgumentExceptionWithCorrectMessageWhenDstDirIsNotDirectory() 80 …final String expectedMessage = String.format("Parameter 'sourceDir' is not a directory: '%s'", src… in copyDirectoryToDirectoryThrowsIllegalExceptionWithCorrectMessageWhenSrcDirIsNotDirectory() local 81 …ExceptionTypeAndMessage(srcDir.toFile(), destDir, IllegalArgumentException.class, expectedMessage); in copyDirectoryToDirectoryThrowsIllegalExceptionWithCorrectMessageWhenSrcDirIsNotDirectory() local
|
D | IOExceptionWithCauseTest.java | 53 … validate(final Throwable throwable, final Throwable expectedCause, final String expectedMessage) { in validate() argument 54 assertEquals(expectedMessage, throwable.getMessage()); in validate()
|
/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/android/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 408 BaseEncoding encoding, String cannotDecode, @CheckForNull String expectedMessage) { in assertFailsToDecode() argument 413 strategy.assertFailsToDecode(encoding, cannotDecode, expectedMessage); in assertFailsToDecode() 422 BaseEncoding encoding, String cannotDecode, @CheckForNull String expectedMessage) { in assertFailsToDecode() argument 443 BaseEncoding encoding, String cannotDecode, @CheckForNull String expectedMessage) { in assertFailsToDecode() argument 450 BaseEncoding encoding, String cannotDecode, @CheckForNull 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, @CheckForNull String expectedMessage) { in assertFailsToDecode() argument 469 if (expectedMessage != null) { in assertFailsToDecode() 470 assertThat(expected).hasMessageThat().isEqualTo(expectedMessage); in assertFailsToDecode() [all …]
|
/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/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 assertThat(empty.getSerializedSize()).isEqualTo(expectedMessage.getSerializedSize()); in preserveUnknownFields() 128 assertThat(empty.toByteString()).isEqualTo(expectedMessage.toByteString()); in preserveUnknownFields()
|
D | AbstractProto3LiteSchemaTest.java | 125 Proto3MessageLite expectedMessage = messageFactory().newMessage(); in retainUnknownFields() local 128 expectedMessage.toByteArray(), Proto3EmptyLite.class); in retainUnknownFields() 129 assertThat(empty.getSerializedSize()).isEqualTo(expectedMessage.getSerializedSize()); in retainUnknownFields()
|
D | AbstractProto2LiteSchemaTest.java | 125 Proto2MessageLite expectedMessage = messageFactory().newMessage(); in unknownFieldsUnrecognized() local 126 byte[] serializedBytes = expectedMessage.toByteArray(); in unknownFieldsUnrecognized() 135 assertThat(roundtripMessage).isEqualTo(expectedMessage); in unknownFieldsUnrecognized()
|
D | AbstractProto2SchemaTest.java | 119 Proto2Message expectedMessage = messageFactory().newMessage(); in unknownFieldsUnrecognized() local 120 byte[] serializedBytes = expectedMessage.toByteArray(); in unknownFieldsUnrecognized() 130 assertThat(roundtripMessage).isEqualTo(expectedMessage); in unknownFieldsUnrecognized()
|
/external/cronet/third_party/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 assertThat(empty.getSerializedSize()).isEqualTo(expectedMessage.getSerializedSize()); in preserveUnknownFields() 128 assertThat(empty.toByteString()).isEqualTo(expectedMessage.toByteString()); in preserveUnknownFields()
|
D | AbstractProto3LiteSchemaTest.java | 125 Proto3MessageLite expectedMessage = messageFactory().newMessage(); in retainUnknownFields() local 128 expectedMessage.toByteArray(), Proto3EmptyLite.class); in retainUnknownFields() 129 assertThat(empty.getSerializedSize()).isEqualTo(expectedMessage.getSerializedSize()); in retainUnknownFields()
|
D | AbstractProto2LiteSchemaTest.java | 125 Proto2MessageLite expectedMessage = messageFactory().newMessage(); in unknownFieldsUnrecognized() local 126 byte[] serializedBytes = expectedMessage.toByteArray(); in unknownFieldsUnrecognized() 135 assertThat(roundtripMessage).isEqualTo(expectedMessage); in unknownFieldsUnrecognized()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | ExtensionSetTest.cs | 106 …var expectedMessage = "The stored extension value has a type of 'Google.Protobuf.TestProtos.Proto2… in GetSingle() 108 Assert.AreEqual(expectedMessage, ex.Message); in GetSingle() 136 …var expectedMessage = "The stored extension value has a type of 'Google.Protobuf.TestProtos.Proto2… in GetRepeated() 138 Assert.AreEqual(expectedMessage, ex.Message); in GetRepeated()
|
/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/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/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()
|