Home
last modified time | relevance | path

Searched refs:classUnderTest (Results 1 – 6 of 6) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLiteralByteStringTest.java59 protected String classUnderTest; field in LiteralByteStringTest
66 classUnderTest = "LiteralByteString"; in setUp()
74 assertEquals(classUnderTest + " should match type exactly", classUnderTest, actualClassName); in testExpectedType()
86 assertTrue(classUnderTest + " must capture the right bytes", stillEqual); in testByteAt()
95 assertTrue(classUnderTest + " must capture the right bytes", stillEqual); in testByteIterator()
96 assertFalse(classUnderTest + " must have exhausted the itertor", iter.hasNext()); in testByteIterator()
113 assertTrue(classUnderTest + " must capture the right bytes as Bytes", stillEqual); in testByteIterable()
114 assertEquals(classUnderTest + " iterable character count", referenceBytes.length, j); in testByteIterable()
118 assertEquals(classUnderTest + " must have the expected size", referenceBytes.length, in testSize()
123 assertEquals(classUnderTest + " must have depth 0", 0, stringUnderTest.getTreeDepth()); in testGetTreeDepth()
[all …]
DRopeByteStringTest.java55 classUnderTest = "RopeByteString"; in setUp()
67 assertEquals(classUnderTest + " must have the expected tree depth", in testGetTreeDepth()
82 assertEquals(classUnderTest + " from string must have the expected type", in testBalance()
83 classUnderTest, getActualClassName(concatenated)); in testBalance()
84 assertTrue(classUnderTest + " underlying bytes must match after balancing", in testBalance()
87 assertTrue(classUnderTest + " balanced string must equal flat string", in testBalance()
89 assertTrue(classUnderTest + " flat string must equal balanced string", in testBalance()
91 assertEquals(classUnderTest + " balanced string must have same hash code as flat string", in testBalance()
110 assertEquals(classUnderTest + " from string must have the expected type", in testToString()
111 classUnderTest, getActualClassName(unicode)); in testToString()
[all …]
DRopeByteStringSubstringTest.java46 classUnderTest = "RopeByteString"; in setUp()
64 assertEquals(classUnderTest + " must have the expected tree depth", in testGetTreeDepth()
87 assertEquals(classUnderTest + " from string must have the expected type", in testToString()
88 classUnderTest, getActualClassName(unicode)); in testToString()
90 assertEquals(classUnderTest + " unicode bytes must match", in testToString()
93 assertEquals(classUnderTest + " string must equal the flat string", flatString, unicode); in testToString()
94 assertEquals(classUnderTest + " string must must have same hashCode as the flat string", in testToString()
117 assertEquals(classUnderTest + " from string must have the expected type", in testCharsetToString()
118 classUnderTest, getActualClassName(unicode)); in testCharsetToString()
120 assertEquals(classUnderTest + " unicode bytes must match", in testCharsetToString()
[all …]
DBoundedByteStringTest.java51 classUnderTest = "BoundedByteString"; in setUp()
66 assertEquals(classUnderTest + ".substring() must have the expected type", in testToString()
67 classUnderTest, getActualClassName(chopped)); in testToString()
70 assertEquals(classUnderTest + " unicode bytes must match", in testToString()
79 assertEquals(classUnderTest + ".substring() must have the expected type", in testCharsetToString()
80 classUnderTest, getActualClassName(chopped)); in testCharsetToString()
83 assertEquals(classUnderTest + " unicode bytes must match", in testCharsetToString()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/
DCommentParsingSteps.java252 TypeDeclaration<?> classUnderTest = compilationUnit.getType(position - 1); in thenClassIsNotCommented() local
253 assertEquals(false, classUnderTest.getComment().isPresent()); in thenClassIsNotCommented()
258 TypeDeclaration<?> classUnderTest = compilationUnit.getType(position - 1); in thenClassIsCommented() local
259 assertThat(classUnderTest.getComment().get().getContent(), is(expectedContent)); in thenClassIsCommented()
264 TypeDeclaration<?> classUnderTest = compilationUnit.getType(position - 1); in thenClassHasTotalContainedComments() local
265 assertThat(classUnderTest.getAllContainedComments().size(), is(expectedCount)); in thenClassHasTotalContainedComments()
271 TypeDeclaration<?> classUnderTest = compilationUnit.getType(position - 1); in thenClassHasOrphanComments() local
272 assertThat(classUnderTest.getOrphanComments().size(), is(expectedCount)); in thenClassHasOrphanComments()
277 TypeDeclaration<?> classUnderTest = compilationUnit.getType(classPosition - 1); in thenClassOrphanCommentIs() local
278 Comment commentUnderTest = classUnderTest.getOrphanComments().get(commentPosition - 1); in thenClassOrphanCommentIs()
[all …]
DParsingSteps.java130 TypeDeclaration<?> classUnderTest = compilationUnit.getType(classPosition - 1); in thenFieldInClassContainsAnnotationValueIs() local
131 … FieldDeclaration fieldUnderTest = getMemberByTypeAndPosition(classUnderTest, fieldPosition - 1, in thenFieldInClassContainsAnnotationValueIs()