/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | LiteralStringValueExprTest.java | 35 assertThat(new CharLiteralExpr('\t').getValue()).isEqualTo("\\t"); in trivialLiteralsAreConverted() 36 assertThat(new CharLiteralExpr('\b').getValue()).isEqualTo("\\b"); in trivialLiteralsAreConverted() 37 assertThat(new CharLiteralExpr('\f').getValue()).isEqualTo("\\f"); in trivialLiteralsAreConverted() 38 assertThat(new CharLiteralExpr('\r').getValue()).isEqualTo("\\r"); in trivialLiteralsAreConverted() 39 assertThat(new CharLiteralExpr('\n').getValue()).isEqualTo("\\n"); in trivialLiteralsAreConverted() 40 assertThat(new CharLiteralExpr('\\').getValue()).isEqualTo("\\\\"); in trivialLiteralsAreConverted() 41 assertThat(new CharLiteralExpr('\"').getValue()).isEqualTo("\\\""); in trivialLiteralsAreConverted() 43 assertThat(new IntegerLiteralExpr("0B0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted() 44 assertThat(new IntegerLiteralExpr("0b0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted() 45 assertThat(new IntegerLiteralExpr("0X0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowStatFsTest.java | 20 assertThat(statsFs.getBlockCount()).isEqualTo(100); in shouldRegisterStats() 21 assertThat(statsFs.getFreeBlocks()).isEqualTo(20); in shouldRegisterStats() 22 assertThat(statsFs.getAvailableBlocks()).isEqualTo(10); in shouldRegisterStats() 23 assertThat(statsFs.getBlockSize()).isEqualTo(ShadowStatFs.BLOCK_SIZE); in shouldRegisterStats() 31 assertThat(statsFs.getBlockCount()).isEqualTo(100); in shouldRegisterStatsWithFile() 32 assertThat(statsFs.getFreeBlocks()).isEqualTo(20); in shouldRegisterStatsWithFile() 33 assertThat(statsFs.getAvailableBlocks()).isEqualTo(10); in shouldRegisterStatsWithFile() 34 assertThat(statsFs.getBlockSize()).isEqualTo(ShadowStatFs.BLOCK_SIZE); in shouldRegisterStatsWithFile() 46 assertThat(statsFsForTmp.getBlockCount()).isEqualTo(101); in shouldUseBestMatch() 47 assertThat(statsFsForTmp.getFreeBlocks()).isEqualTo(21); in shouldUseBestMatch() [all …]
|
D | ShadowLocaleDataTest.java | 25 assertThat(localeData.amPm).isEqualTo(new String[]{"AM", "PM"}); in shouldSupportLocaleEn_US() 26 assertThat(localeData.eras).isEqualTo(new String[]{"BC", "AD"}); in shouldSupportLocaleEn_US() 28 assertThat(localeData.firstDayOfWeek).isEqualTo(1); in shouldSupportLocaleEn_US() 29 assertThat(localeData.minimalDaysInFirstWeek).isEqualTo(1); in shouldSupportLocaleEn_US() 31 …assertThat(localeData.longMonthNames).isEqualTo(new String[]{"January", "February", "March", "Apri… in shouldSupportLocaleEn_US() 32 …assertThat(localeData.shortMonthNames).isEqualTo(new String[]{"Jan", "Feb", "Mar", "Apr", "May", "… in shouldSupportLocaleEn_US() 34 assertThat(localeData.longStandAloneMonthNames).isEqualTo(localeData.longMonthNames); in shouldSupportLocaleEn_US() 35 assertThat(localeData.shortStandAloneMonthNames).isEqualTo(localeData.shortMonthNames); in shouldSupportLocaleEn_US() 37 …assertThat(localeData.longWeekdayNames).isEqualTo(new String[]{"", "Sunday", "Monday", "Tuesday", … in shouldSupportLocaleEn_US() 38 …assertThat(localeData.shortWeekdayNames).isEqualTo(new String[]{"", "Sun", "Mon", "Tue", "Wed", "T… in shouldSupportLocaleEn_US() [all …]
|
D | ShadowMatrixCursorTest.java | 32 assertThat(cursor.getCount()).isEqualTo(2); in shouldAddObjectArraysAsRows() 36 assertThat(cursor.getString(0)).isEqualTo("foo"); in shouldAddObjectArraysAsRows() 37 assertThat(cursor.getLong(1)).isEqualTo(10L); in shouldAddObjectArraysAsRows() 38 assertThat(cursor.getFloat(2)).isEqualTo(0.1f); in shouldAddObjectArraysAsRows() 42 assertThat(cursor.getString(0)).isEqualTo("baz"); in shouldAddObjectArraysAsRows() 43 assertThat(cursor.getLong(1)).isEqualTo(20L); in shouldAddObjectArraysAsRows() 54 assertThat(cursor.getCount()).isEqualTo(2); in shouldAddIterablesAsRows() 58 assertThat(cursor.getString(0)).isEqualTo("foo"); in shouldAddIterablesAsRows() 59 assertThat(cursor.getLong(1)).isEqualTo(10L); in shouldAddIterablesAsRows() 60 assertThat(cursor.getFloat(2)).isEqualTo(0.1f); in shouldAddIterablesAsRows() [all …]
|
D | SQLiteCursorTest.java | 63 assertThat(cursor.getColumnIndex("id")).isEqualTo(0); in testGetColumnIndex() 64 assertThat(cursor.getColumnIndex("name")).isEqualTo(1); in testGetColumnIndex() 69 assertThat(cursor.getColumnIndex("Fred")).isEqualTo(-1); in testGetColumnIndexNotFound() 76 assertThat(cursor.getColumnIndex("id")).isEqualTo(0); in testGetColumnIndexEmpty() 77 assertThat(cursor.getColumnIndex("name")).isEqualTo(1); in testGetColumnIndexEmpty() 82 assertThat(cursor.getColumnIndexOrThrow("id")).isEqualTo(0); in testGetColumnIndexOrThrow() 83 assertThat(cursor.getColumnIndexOrThrow("name")).isEqualTo(1); in testGetColumnIndexOrThrow() 95 assertThat(cursor.getColumnIndexOrThrow("name")).isEqualTo(1); in testGetColumnIndexOrThrowEmpty() 108 assertThat(cursor.getInt(0)).isEqualTo(1234); in testMoveToFirst() 109 assertThat(cursor.getString(1)).isEqualTo("Chuck"); in testMoveToFirst() [all …]
|
D | ShadowCameraParametersTest.java | 32 assertThat(pictureSize.width).isEqualTo(800); in testPictureSize() 33 assertThat(pictureSize.height).isEqualTo(600); in testPictureSize() 34 assertThat(Shadows.shadowOf(parameters).getPictureHeight()).isEqualTo(600); in testPictureSize() 35 assertThat(Shadows.shadowOf(parameters).getPictureWidth()).isEqualTo(800); in testPictureSize() 46 assertThat(fpsRange[1]).isEqualTo(25); in testPreviewFpsRange() 47 assertThat(fpsRange[0]).isEqualTo(15); in testPreviewFpsRange() 54 assertThat(parameters.getPreviewFrameRate()).isEqualTo(15); in testPreviewFrameRate() 63 assertThat(size.width).isEqualTo(320); in testPreviewSize() 64 assertThat(size.height).isEqualTo(240); in testPreviewSize() 65 assertThat(Shadows.shadowOf(parameters).getPreviewWidth()).isEqualTo(320); in testPreviewSize() [all …]
|
D | ShadowMergeCursorTest.java | 79 assertThat(cursor.getCount()).isEqualTo(0); in testEmptyCursors() 88 assertThat(cursor.getCount()).isEqualTo(TABLE_1_INSERTS.length); in testEmptyCursors() 100 assertThat(cursor.getCount()).isEqualTo(0); in testMoveToPositionEmptyCursor() 128 assertThat(cursor.getCount()).isEqualTo(expectedLength); in assertBounds() 164 assertThat(cursor.getInt(0)).isEqualTo(1234); in assertDataCursor1() 165 assertThat(cursor.getString(1)).isEqualTo("Chuck"); in assertDataCursor1() 166 assertThat(cursor.getInt(2)).isEqualTo(3463); in assertDataCursor1() 167 assertThat(cursor.getFloat(3)).isEqualTo(1.5f); in assertDataCursor1() 168 assertThat(cursor.getDouble(4)).isEqualTo(3.14159); in assertDataCursor1() 171 assertThat(cursor.getInt(0)).isEqualTo(1235); in assertDataCursor1() [all …]
|
D | ShadowOverScrollerTest.java | 27 assertThat(overScroller.getStartX()).isEqualTo(0); in shouldScrollOverTime() 28 assertThat(overScroller.getStartY()).isEqualTo(0); in shouldScrollOverTime() 29 assertThat(overScroller.getFinalX()).isEqualTo(100); in shouldScrollOverTime() 30 assertThat(overScroller.getFinalY()).isEqualTo(200); in shouldScrollOverTime() 34 assertThat(overScroller.getCurrX()).isEqualTo(0); in shouldScrollOverTime() 35 assertThat(overScroller.getCurrY()).isEqualTo(0); in shouldScrollOverTime() 36 assertThat(overScroller.timePassed()).isEqualTo(0); in shouldScrollOverTime() 40 assertThat(overScroller.getCurrX()).isEqualTo(10); in shouldScrollOverTime() 41 assertThat(overScroller.getCurrY()).isEqualTo(20); in shouldScrollOverTime() 42 assertThat(overScroller.timePassed()).isEqualTo(100); in shouldScrollOverTime() [all …]
|
D | ShadowEventLogTest.java | 40 assertThat(events.get(0).getTag()).isEqualTo(TEST_TAG); in testAddEvent_testStringLog() 41 assertThat(events.get(0).getProcessId()).isEqualTo(TEST_PROCESS_ID); in testAddEvent_testStringLog() 42 assertThat(events.get(0).getTimeNanos()).isEqualTo(TEST_TIME_NANOS); in testAddEvent_testStringLog() 43 assertThat((String) events.get(0).getData()).isEqualTo(TEST_STRING1); in testAddEvent_testStringLog() 58 assertThat(events.get(0).getTag()).isEqualTo(TEST_TAG); in testAddEvent_testIntLog() 59 assertThat(events.get(0).getProcessId()).isEqualTo(TEST_PROCESS_ID); in testAddEvent_testIntLog() 60 assertThat(events.get(0).getTimeNanos()).isEqualTo(TEST_TIME_NANOS); in testAddEvent_testIntLog() 61 assertThat((int) events.get(0).getData()).isEqualTo(TEST_INT); in testAddEvent_testIntLog() 76 assertThat(events.get(0).getTag()).isEqualTo(TEST_TAG); in testAddEvent_testLongLog() 77 assertThat(events.get(0).getProcessId()).isEqualTo(TEST_PROCESS_ID); in testAddEvent_testLongLog() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/manifest/ |
D | AndroidManifestTest.java | 36 .isEqualTo("org.robolectric.tester.FullyQualifiedClassName"); in parseManifest_shouldReadContentProviders() 37 …assertThat(config.getContentProviders().get(0).getAuthorities()).isEqualTo("org.robolectric.author… in parseManifest_shouldReadContentProviders() 41 .isEqualTo("org.robolectric.tester.PartiallyQualifiedClassName"); in parseManifest_shouldReadContentProviders() 42 …assertThat(config.getContentProviders().get(1).getAuthorities()).isEqualTo("org.robolectric.author… in parseManifest_shouldReadContentProviders() 56 assertThat(permissionItemData.getName()).isEqualTo("some_permission"); in parseManifest_shouldReadPermissions() 57 assertThat(permissionItemData.getPermissionGroup()).isEqualTo("my_permission_group"); in parseManifest_shouldReadPermissions() 58 … assertThat(permissionItemData.getDescription()).isEqualTo("@string/test_permission_description"); in parseManifest_shouldReadPermissions() 59 assertThat(permissionItemData.getProtectionLevel()).isEqualTo("dangerous"); in parseManifest_shouldReadPermissions() 69 assertThat(permissionGroupItemData.getName()).isEqualTo("permission_group"); in parseManifest_shouldReadPermissionGroups() 70 …assertThat(permissionGroupItemData.getDescription()).isEqualTo("@string/test_permission_descriptio… in parseManifest_shouldReadPermissionGroups() [all …]
|
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/ |
D | QualifiersTest.java | 15 assertThat(configFrom("values-land-finger")).isEqualTo("land-finger"); in testQualifiers() 40 assertThat(Qualifiers.addPlatformVersion("", 21)).isEqualTo("v21"); in addPlatformVersion() 41 assertThat(Qualifiers.addPlatformVersion("v23", 21)).isEqualTo("v23"); in addPlatformVersion() 42 assertThat(Qualifiers.addPlatformVersion("foo-v14", 21)).isEqualTo("foo-v14"); in addPlatformVersion() 46 assertThat(Qualifiers.addSmallestScreenWidth("", 320)).isEqualTo("sw320dp"); in addSmallestScreenWidth() 47 assertThat(Qualifiers.addSmallestScreenWidth("sw160dp", 320)).isEqualTo("sw160dp"); in addSmallestScreenWidth() 48 assertThat(Qualifiers.addSmallestScreenWidth("sw480dp", 320)).isEqualTo("sw480dp"); in addSmallestScreenWidth() 49 …assertThat(Qualifiers.addSmallestScreenWidth("en-v23", 320)).isEqualTo("en-v23-sw320dp"); // todo:… in addSmallestScreenWidth() 50 … assertThat(Qualifiers.addSmallestScreenWidth("en-sw160dp-v23", 320)).isEqualTo("en-sw160dp-v23"); in addSmallestScreenWidth() 51 … assertThat(Qualifiers.addSmallestScreenWidth("en-sw480dp-v23", 320)).isEqualTo("en-sw480dp-v23"); in addSmallestScreenWidth() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | BootstrapTest.java | 87 assertThat(displayInfo.name).isEqualTo("Built-in screen"); in shouldSetUpRealisticDisplay() 88 assertThat(displayInfo.appWidth).isEqualTo(480); in shouldSetUpRealisticDisplay() 89 assertThat(displayInfo.appHeight).isEqualTo(640); in shouldSetUpRealisticDisplay() 90 assertThat(displayInfo.smallestNominalAppWidth).isEqualTo(480); in shouldSetUpRealisticDisplay() 91 assertThat(displayInfo.smallestNominalAppHeight).isEqualTo(480); in shouldSetUpRealisticDisplay() 92 assertThat(displayInfo.largestNominalAppWidth).isEqualTo(640); in shouldSetUpRealisticDisplay() 93 assertThat(displayInfo.largestNominalAppHeight).isEqualTo(640); in shouldSetUpRealisticDisplay() 94 assertThat(displayInfo.logicalWidth).isEqualTo(480); in shouldSetUpRealisticDisplay() 95 assertThat(displayInfo.logicalHeight).isEqualTo(640); in shouldSetUpRealisticDisplay() 96 assertThat(displayInfo.rotation).isEqualTo(ROTATION_0); in shouldSetUpRealisticDisplay() [all …]
|
D | XmlResourceParserImplTest.java | 93 assertThat(evt).isEqualTo(XmlResourceParser.START_DOCUMENT); in testGetXmlInt() 235 assertThat(parser.getColumnNumber()).isEqualTo(-1); in testGetColumnNumber() 253 assertThat(actualDepths).isEqualTo(expectedDepths); in testGetDepth() 259 assertThat(parser.getText()).isEqualTo(""); in testGetText() 262 assertThat(parser.getText()).isEqualTo("bar"); in testGetText() 269 assertThat(parser.getEventType()).isEqualTo(evt); in testGetEventType() 295 assertThat(parser.getNamespace()).isEqualTo("http://www.w3.org/1999/xhtml"); in testGetNamespace() 300 assertThat(parser.getName()).isEqualTo(null); in testGetName_atStart() 302 assertThat(parser.getName()).isEqualTo(null); in testGetName_atStart() 304 assertThat(parser.getName()).isEqualTo("PreferenceScreen"); in testGetName_atStart() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | TimestampTest.java | 34 assertThat(Timestamp.create(24, 42).getSeconds()).isEqualTo(24); in timestampCreate() 35 assertThat(Timestamp.create(24, 42).getNanos()).isEqualTo(42); in timestampCreate() 36 assertThat(Timestamp.create(-24, 42).getSeconds()).isEqualTo(-24); in timestampCreate() 37 assertThat(Timestamp.create(-24, 42).getNanos()).isEqualTo(42); in timestampCreate() 38 assertThat(Timestamp.create(315576000000L, 999999999).getSeconds()).isEqualTo(315576000000L); in timestampCreate() 39 assertThat(Timestamp.create(315576000000L, 999999999).getNanos()).isEqualTo(999999999); in timestampCreate() 40 assertThat(Timestamp.create(-315576000000L, 999999999).getSeconds()).isEqualTo(-315576000000L); in timestampCreate() 41 assertThat(Timestamp.create(-315576000000L, 999999999).getNanos()).isEqualTo(999999999); in timestampCreate() 88 assertThat(Timestamp.fromMillis(0)).isEqualTo(Timestamp.create(0, 0)); in timestampFromMillis() 89 assertThat(Timestamp.fromMillis(987)).isEqualTo(Timestamp.create(0, 987000000)); in timestampFromMillis() [all …]
|
D | DurationTest.java | 34 assertThat(Duration.create(24, 42).getSeconds()).isEqualTo(24); in testDurationCreate() 35 assertThat(Duration.create(24, 42).getNanos()).isEqualTo(42); in testDurationCreate() 36 assertThat(Duration.create(-24, -42).getSeconds()).isEqualTo(-24); in testDurationCreate() 37 assertThat(Duration.create(-24, -42).getNanos()).isEqualTo(-42); in testDurationCreate() 38 assertThat(Duration.create(315576000000L, 999999999).getSeconds()).isEqualTo(315576000000L); in testDurationCreate() 39 assertThat(Duration.create(315576000000L, 999999999).getNanos()).isEqualTo(999999999); in testDurationCreate() 40 assertThat(Duration.create(-315576000000L, -999999999).getSeconds()).isEqualTo(-315576000000L); in testDurationCreate() 41 assertThat(Duration.create(-315576000000L, -999999999).getNanos()).isEqualTo(-999999999); in testDurationCreate() 88 assertThat(Duration.fromMillis(0)).isEqualTo(Duration.create(0, 0)); in testDurationFromMillis() 89 assertThat(Duration.fromMillis(987)).isEqualTo(Duration.create(0, 987000000)); in testDurationFromMillis() [all …]
|
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/builder/ |
D | BuilderTest.java | 45 assertThat(component.s()).isEqualTo("sam"); in interfaceBuilder() 46 assertThat(component.i()).isEqualTo(1); in interfaceBuilder() 48 assertThat(component.f()).isEqualTo(5.5f); in interfaceBuilder() 49 assertThat(component.l()).isEqualTo(6L); in interfaceBuilder() 69 assertThat(component.s()).isEqualTo("sam"); in abstractClassBuilder() 70 assertThat(component.i()).isEqualTo(1); in abstractClassBuilder() 72 assertThat(component.f()).isEqualTo(5.5f); in abstractClassBuilder() 73 assertThat(component.l()).isEqualTo(6L); in abstractClassBuilder() 93 assertThat(component.s()).isEqualTo("sam"); in interfaceGenericBuilder() 94 assertThat(component.i()).isEqualTo(1); in interfaceGenericBuilder() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/ |
D | ResNameTest.java | 12 …assertThat(ResName.qualifyResourceName("some.package:type/name", null, null)).isEqualTo("some.pack… in shouldQualify() 13 …fyResourceName("some.package:type/name", "default.package", "deftype")).isEqualTo("some.package:ty… in shouldQualify() 14 …ualifyResourceName("*android:type/name", "default.package", "deftype")).isEqualTo("android:type/na… in shouldQualify() 15 …qualifyResourceName("some.package:name", "default.package", "deftype")).isEqualTo("some.package:de… in shouldQualify() 16 …assertThat(ResName.qualifyResourceName("type/name", "default.package", "deftype")).isEqualTo("defa… in shouldQualify() 17 …assertThat(ResName.qualifyResourceName("name", "default.package", "deftype")).isEqualTo("default.p… in shouldQualify() 23 .isEqualTo(new ResName("some.package", "type", "name")); in shouldQualifyResNameFromString() 25 .isEqualTo(new ResName("some.package", "default_type", "name")); in shouldQualifyResNameFromString() 27 .isEqualTo(new ResName("default_package", "type", "name")); in shouldQualifyResNameFromString() 29 .isEqualTo(new ResName("default_package", "default_type", "name")); in shouldQualifyResNameFromString() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/ |
D | RoboCursorTest.java | 52 assertThat(cursor.uri).isEqualTo(uri); in query_shouldMakeQueryParamsAvailable() 53 assertThat(cursor.projection[0]).isEqualTo("projection"); in query_shouldMakeQueryParamsAvailable() 54 assertThat(cursor.selection).isEqualTo("selection"); in query_shouldMakeQueryParamsAvailable() 55 assertThat(cursor.selectionArgs[0]).isEqualTo("selection"); in query_shouldMakeQueryParamsAvailable() 56 assertThat(cursor.sortOrder).isEqualTo("sortOrder"); in query_shouldMakeQueryParamsAvailable() 66 assertThat(cursor.getColumnCount()).isEqualTo(3); in getColumnCount_whenSetColumnNamesHasntBeenCalled_shouldReturnCountFromData() 69 assertThat(cursor.getColumnCount()).isEqualTo(4); in getColumnCount_whenSetColumnNamesHasntBeenCalled_shouldReturnCountFromData() 74 assertThat(cursor.getColumnCount()).isEqualTo(8); in getColumnName_shouldReturnColumnName() 75 assertThat(cursor.getColumnName(0)).isEqualTo(STRING_COLUMN); in getColumnName_shouldReturnColumnName() 76 assertThat(cursor.getColumnName(1)).isEqualTo(LONG_COLUMN); in getColumnName_shouldReturnColumnName() [all …]
|
/external/opencensus-java/contrib/dropwizard/src/test/java/io/opencensus/contrib/dropwizard/ |
D | DropWizardMetricsTest.java | 125 assertThat(metrics.size()).isEqualTo(9); in collect() 128 .isEqualTo( in collect() 136 assertThat(metrics.get(0).getTimeSeriesList().size()).isEqualTo(1); in collect() 137 assertThat(metrics.get(0).getTimeSeriesList().get(0).getLabelValues().size()).isEqualTo(0); in collect() 138 assertThat(metrics.get(0).getTimeSeriesList().get(0).getPoints().size()).isEqualTo(1); in collect() 140 .isEqualTo(Value.longValue(1)); in collect() 141 assertThat(metrics.get(0).getTimeSeriesList().get(0).getStartTimestamp()).isEqualTo(null); in collect() 144 .isEqualTo( in collect() 152 assertThat(metrics.get(1).getTimeSeriesList().size()).isEqualTo(1); in collect() 153 assertThat(metrics.get(1).getTimeSeriesList().get(0).getLabelValues().size()).isEqualTo(0); in collect() [all …]
|
/external/turbine/javatests/com/google/turbine/bytecode/ |
D | ClassReaderTest.java | 73 .isEqualTo(TurbineFlag.ACC_PUBLIC | TurbineFlag.ACC_FINAL | TurbineFlag.ACC_SUPER); in methods() 74 assertThat(classFile.name()).isEqualTo("test/Hello"); in methods() 76 assertThat(classFile.superName()).isEqualTo("java/lang/Object"); in methods() 82 assertThat(f.access()).isEqualTo(TurbineFlag.ACC_PUBLIC); in methods() 83 assertThat(f.name()).isEqualTo("f"); in methods() 84 assertThat(f.descriptor()).isEqualTo("(Ljava/lang/String;)Ljava/lang/String;"); in methods() 85 assertThat(f.signature()).isEqualTo("<T:Ljava/lang/String;>(TT;)TT;"); in methods() 92 assertThat(g.access()).isEqualTo(TurbineFlag.ACC_PUBLIC | TurbineFlag.ACC_STATIC); in methods() 93 assertThat(g.name()).isEqualTo("g"); in methods() 94 assertThat(g.descriptor()).isEqualTo("(Z)V"); in methods() [all …]
|
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | NameAllocatorTest.java | 26 assertThat(nameAllocator.newName("foo", 1)).isEqualTo("foo"); in usage() 27 assertThat(nameAllocator.newName("bar", 2)).isEqualTo("bar"); in usage() 28 assertThat(nameAllocator.get(1)).isEqualTo("foo"); in usage() 29 assertThat(nameAllocator.get(2)).isEqualTo("bar"); in usage() 34 assertThat(nameAllocator.newName("foo")).isEqualTo("foo"); in nameCollision() 35 assertThat(nameAllocator.newName("foo")).isEqualTo("foo_"); in nameCollision() 36 assertThat(nameAllocator.newName("foo")).isEqualTo("foo__"); in nameCollision() 41 assertThat(nameAllocator.newName("foo", 1)).isEqualTo("foo"); in nameCollisionWithTag() 42 assertThat(nameAllocator.newName("foo", 2)).isEqualTo("foo_"); in nameCollisionWithTag() 43 assertThat(nameAllocator.newName("foo", 3)).isEqualTo("foo__"); in nameCollisionWithTag() [all …]
|
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/ |
D | ConfigDescriptionTest.java | 59 assertThat(config.mcc).isEqualTo(310); in parse_mcc() 66 assertThat(config.mcc).isEqualTo(310); in parse_mcc_upperCase() 73 assertThat(config.mcc).isEqualTo(310); in parse_mcc_mnc_upperCase() 74 assertThat(config.mnc).isEqualTo(4); in parse_mcc_mnc_upperCase() 81 assertThat(config.screenLayout).isEqualTo(LAYOUTDIR_LTR); in parse_layoutDirection_leftToRight() 88 assertThat(config.screenLayout).isEqualTo(LAYOUTDIR_RTL); in parse_layoutDirection_rightToLeft() 95 assertThat(config.screenLayout).isEqualTo(LAYOUTDIR_ANY); in parse_layoutDirection_any() 102 assertThat(config.screenLayout).isEqualTo(SCREENSIZE_SMALL); in parse_screenSize_small() 109 assertThat(config.screenLayout).isEqualTo(SCREENSIZE_NORMAL); in parse_screenSize_normal() 116 assertThat(config.screenLayout).isEqualTo(SCREENSIZE_LARGE); in parse_screenSize_large() [all …]
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/ |
D | RecordEventsSpanImplTest.java | 110 assertThat(spanData.getStartTimestamp()).isEqualTo(timestamp); in noEventsRecordedAfterEnd() 115 assertThat(spanData.getStatus()).isEqualTo(Status.OK); in noEventsRecordedAfterEnd() 116 assertThat(spanData.getEndTimestamp()).isEqualTo(timestamp); in noEventsRecordedAfterEnd() 135 assertThat(spanData.getAttributes().getAttributeMap()).isEqualTo(attributes); in deprecatedAddAttributesStillWorks() 168 assertThat(spanData.getContext()).isEqualTo(spanContext); in toSpanData_ActiveSpan() 169 assertThat(spanData.getName()).isEqualTo(SPAN_NAME); in toSpanData_ActiveSpan() 170 assertThat(spanData.getParentSpanId()).isEqualTo(parentSpanId); in toSpanData_ActiveSpan() 172 assertThat(spanData.getAttributes().getDroppedAttributesCount()).isEqualTo(0); in toSpanData_ActiveSpan() 173 assertThat(spanData.getAttributes().getAttributeMap()).isEqualTo(expectedAttributes); in toSpanData_ActiveSpan() 174 assertThat(spanData.getAnnotations().getDroppedEventsCount()).isEqualTo(0); in toSpanData_ActiveSpan() [all …]
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/ |
D | DesugarJava8FunctionalTest.java | 120 assertThat(concrete.defaultInvokingBootclasspathMethods("Larry")).isEqualTo("Larry"); in testBootclasspathMethodInvocations() 132 assertThat(doubler.apply(7)).isEqualTo(14); in testOverriddenDefaultMethod_inHandwrittenClass() 133 assertThat(doubler.twice(7)).isEqualTo(35); in testOverriddenDefaultMethod_inHandwrittenClass() 139 assertThat(doubler.apply(7)).isEqualTo(14); in testOverriddenDefaultMethod_inHandwrittenSuperclass() 140 assertThat(doubler.twice(7)).isEqualTo(35); in testOverriddenDefaultMethod_inHandwrittenSuperclass() 147 assertThat(doubler.apply(7)).isEqualTo(14); in testInheritedDefaultMethod_inLambda() 148 assertThat(doubler.twice(7)).isEqualTo(28); in testInheritedDefaultMethod_inLambda() 154 assertThat(plus6.apply(18)).isEqualTo(24); in testDefaultMethodReference_onLambda() 155 assertThat(plus6.twice(18)).isEqualTo(30); in testDefaultMethodReference_onLambda() 161 assertThat(times5.apply(6)).isEqualTo(30); in testDefaultMethodReference_onHandwrittenClass() [all …]
|
D | DesugarLongCompareTest.java | 62 assertThat(counter.get()).isEqualTo(0); in testClassCallingLongCompareHasNoReferenceToLong_compare() 70 assertThat(ClassCallingLongCompare.compareLongWithLambda(1, 0)).isEqualTo(1); in testCompareLongWithLambda() 71 assertThat(ClassCallingLongCompare.compareLongWithLambda(1, 1)).isEqualTo(0); in testCompareLongWithLambda() 72 assertThat(ClassCallingLongCompare.compareLongWithLambda(1, 2)).isEqualTo(-1); in testCompareLongWithLambda() 74 .isEqualTo(1); in testCompareLongWithLambda() 76 .isEqualTo(0); in testCompareLongWithLambda() 78 .isEqualTo(-1); in testCompareLongWithLambda() 83 assertThat(ClassCallingLongCompare.compareLongWithMethodReference(1, 0)).isEqualTo(1); in testCompareLongWithMethodReference() 84 assertThat(ClassCallingLongCompare.compareLongWithMethodReference(1, 1)).isEqualTo(0); in testCompareLongWithMethodReference() 85 assertThat(ClassCallingLongCompare.compareLongWithMethodReference(1, 2)).isEqualTo(-1); in testCompareLongWithMethodReference() [all …]
|