Home
last modified time | relevance | path

Searched refs:assertThat (Results 1 – 25 of 1156) sorted by relevance

12345678910>>...47

/external/opencensus-java/contrib/grpc_metrics/src/test/java/io/opencensus/contrib/grpc/metrics/
DRpcViewConstantsTest.java19 import static com.google.common.truth.Truth.assertThat;
40 assertThat(RpcViewConstants.RPC_BYTES_BUCKET_BOUNDARIES) in testConstants()
57 assertThat(RpcViewConstants.RPC_MILLIS_BUCKET_BOUNDARIES) in testConstants()
64 assertThat(RpcViewConstants.RPC_COUNT_BUCKET_BOUNDARIES) in testConstants()
71 assertThat(RpcViewConstants.MEAN).isEqualTo(Mean.create()); in testConstants()
72 assertThat(RpcViewConstants.COUNT).isEqualTo(Count.create()); in testConstants()
73 assertThat(RpcViewConstants.AGGREGATION_WITH_BYTES_HISTOGRAM) in testConstants()
77 assertThat(RpcViewConstants.AGGREGATION_WITH_MILLIS_HISTOGRAM) in testConstants()
81 assertThat(RpcViewConstants.AGGREGATION_WITH_COUNT_HISTOGRAM) in testConstants()
87 assertThat(RpcViewConstants.MINUTE).isEqualTo(Duration.create(60, 0)); in testConstants()
[all …]
DRpcMeasureConstantsTest.java19 import static com.google.common.truth.Truth.assertThat;
31 assertThat(RpcMeasureConstants.RPC_STATUS).isNotNull(); in testConstants()
32 assertThat(RpcMeasureConstants.RPC_METHOD).isNotNull(); in testConstants()
33 assertThat(RpcMeasureConstants.GRPC_CLIENT_METHOD).isNotNull(); in testConstants()
34 assertThat(RpcMeasureConstants.GRPC_SERVER_METHOD).isNotNull(); in testConstants()
35 assertThat(RpcMeasureConstants.GRPC_CLIENT_STATUS).isNotNull(); in testConstants()
36 assertThat(RpcMeasureConstants.GRPC_SERVER_STATUS).isNotNull(); in testConstants()
39 assertThat(RpcMeasureConstants.RPC_CLIENT_ERROR_COUNT).isNotNull(); in testConstants()
40 assertThat(RpcMeasureConstants.RPC_CLIENT_ROUNDTRIP_LATENCY).isNotNull(); in testConstants()
41 assertThat(RpcMeasureConstants.RPC_CLIENT_REQUEST_BYTES).isNotNull(); in testConstants()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DSQLiteCursorTest.java3 import static com.google.common.truth.Truth.assertThat;
57 assertThat(columnNames).isNotNull(); in testGetColumnNamesEmpty()
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()
[all …]
DShadowBundleTest.java3 import static com.google.common.truth.Truth.assertThat;
18 assertThat(bundle.containsKey("foo")).isFalse(); in containsKey()
20 assertThat(bundle.containsKey("foo")).isTrue(); in containsKey()
26 assertThat(bundle.getInt("foo")).isEqualTo(5); in getInt()
27 assertThat(bundle.getInt("bar")).isEqualTo(0); in getInt()
28 assertThat(bundle.getInt("bar", 7)).isEqualTo(7); in getInt()
33 assertThat(bundle.size()).isEqualTo(0); in size()
35 assertThat(bundle.size()).isEqualTo(1); in size()
37 assertThat(bundle.size()).isEqualTo(2); in size()
43 assertThat(bundle.getLong("foo")).isEqualTo(5); in getLong()
[all …]
DShadowStatFsTest.java4 import static com.google.common.truth.Truth.assertThat;
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()
[all …]
DShadowAbstractCursorTest.java3 import static com.google.common.truth.Truth.assertThat;
29 assertThat(cursor.moveToFirst()).isTrue(); in testMoveToFirst()
30 assertThat(cursor.getCount()).isEqualTo(1); in testMoveToFirst()
35 assertThat(cursor.moveToFirst()).isFalse(); in testMoveToFirstEmptyList()
36 assertThat(cursor.getCount()).isEqualTo(0); in testMoveToFirstEmptyList()
44 assertThat(cursor.moveToLast()).isTrue(); in testMoveToLast()
45 assertThat(cursor.getCount()).isEqualTo(2); in testMoveToLast()
50 assertThat(cursor.moveToLast()).isFalse(); in testMoveToLastEmptyList()
51 assertThat(cursor.getCount()).isEqualTo(0); in testMoveToLastEmptyList()
59 assertThat(cursor.moveToFirst()).isTrue(); in testGetPosition()
[all …]
DShadowCameraParametersTest.java3 import static com.google.common.truth.Truth.assertThat;
28 assertThat(Shadows.shadowOf(parameters).getPictureHeight()).isNotEqualTo(600); in testPictureSize()
29 assertThat(Shadows.shadowOf(parameters).getPictureWidth()).isNotEqualTo(800); in testPictureSize()
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()
42 assertThat(fpsRange[1]).isNotEqualTo((15)); in testPreviewFpsRange()
43 assertThat(fpsRange[0]).isNotEqualTo((25)); in testPreviewFpsRange()
46 assertThat(fpsRange[1]).isEqualTo(25); in testPreviewFpsRange()
[all …]
DShadowMediaRecorderTest.java3 import static com.google.common.truth.Truth.assertThat;
29 assertThat(shadowMediaRecorder.getAudioChannels()).isNotEqualTo(2); in testAudioChannels()
31 assertThat(shadowMediaRecorder.getAudioChannels()).isEqualTo(2); in testAudioChannels()
36assertThat(shadowMediaRecorder.getAudioEncoder()).isNotEqualTo(MediaRecorder.AudioEncoder.AMR_NB); in testAudioEncoder()
37assertThat(shadowMediaRecorder.getState()).isNotEqualTo(ShadowMediaRecorder.STATE_DATA_SOURCE_CONF… in testAudioEncoder()
39 assertThat(shadowMediaRecorder.getAudioEncoder()).isEqualTo(MediaRecorder.AudioEncoder.AMR_NB); in testAudioEncoder()
40assertThat(shadowMediaRecorder.getState()).isEqualTo(ShadowMediaRecorder.STATE_DATA_SOURCE_CONFIGU… in testAudioEncoder()
45 assertThat(shadowMediaRecorder.getAudioEncodingBitRate()).isNotEqualTo(128000); in testAudioEncodingBitRate()
47 assertThat(shadowMediaRecorder.getAudioEncodingBitRate()).isEqualTo(128000); in testAudioEncodingBitRate()
52 assertThat(shadowMediaRecorder.getAudioSamplingRate()).isNotEqualTo(22050); in testAudioSamplingRate()
[all …]
DShadowWebViewTest.java3 import static com.google.common.truth.Truth.assertThat;
36 assertThat(shadowOf(webView).getLastLoadedUrl()).isEqualTo("http://example.com"); in shouldRecordLastLoadedUrl()
42 assertThat(shadowOf(webView).getLastLoadedUrl()).isEqualTo("http://example.com"); in shouldRecordLastLoadedUrlForRequestWithAdditionalHeaders()
43 assertThat(shadowOf(webView).getLastAdditionalHttpHeaders()).isNull(); in shouldRecordLastLoadedUrlForRequestWithAdditionalHeaders()
48 assertThat(shadowOf(webView).getLastLoadedUrl()).isEqualTo("http://example.com"); in shouldRecordLastLoadedUrlForRequestWithAdditionalHeaders()
49 assertThat(shadowOf(webView).getLastAdditionalHttpHeaders()).isNotNull(); in shouldRecordLastLoadedUrlForRequestWithAdditionalHeaders()
50 assertThat(shadowOf(webView).getLastAdditionalHttpHeaders()).containsKey("key1"); in shouldRecordLastLoadedUrlForRequestWithAdditionalHeaders()
51 assertThat(shadowOf(webView).getLastAdditionalHttpHeaders().get("key1")).isEqualTo("value1"); in shouldRecordLastLoadedUrlForRequestWithAdditionalHeaders()
58 assertThat(lastLoadData.data).isEqualTo("<html><body><h1>Hi</h1></body></html>"); in shouldRecordLastLoadedData()
59 assertThat(lastLoadData.mimeType).isEqualTo("text/html"); in shouldRecordLastLoadedData()
[all …]
DShadowLocaleDataTest.java7 import static com.google.common.truth.Truth.assertThat;
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()
31assertThat(localeData.longMonthNames).isEqualTo(new String[]{"January", "February", "March", "Apri… in shouldSupportLocaleEn_US()
32assertThat(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()
37assertThat(localeData.longWeekdayNames).isEqualTo(new String[]{"", "Sunday", "Monday", "Tuesday", … in shouldSupportLocaleEn_US()
[all …]
DShadowOverScrollerTest.java3 import static com.google.common.truth.Truth.assertThat;
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()
31 assertThat(overScroller.isScrollingInDirection(1, 1)).isTrue(); in shouldScrollOverTime()
32 assertThat(overScroller.isScrollingInDirection(-1, -1)).isFalse(); 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()
[all …]
DShadowMergeCursorTest.java3 import static com.google.common.truth.Truth.assertThat;
65 assertThat(cursor).isInstanceOf(SQLiteCursor.class); in setupTable()
79 assertThat(cursor.getCount()).isEqualTo(0); in testEmptyCursors()
80 assertThat(cursor.moveToFirst()).isFalse(); in testEmptyCursors()
81 assertThat(cursor.getColumnNames()).isNotNull(); in testEmptyCursors()
88 assertThat(cursor.getCount()).isEqualTo(TABLE_1_INSERTS.length); in testEmptyCursors()
89 assertThat(cursor.moveToFirst()).isTrue(); in testEmptyCursors()
90 assertThat(cursor.getColumnNames()).isNotNull(); in testEmptyCursors()
100 assertThat(cursor.getCount()).isEqualTo(0); in testMoveToPositionEmptyCursor()
101 assertThat(cursor.getColumnNames()).isNotNull(); in testMoveToPositionEmptyCursor()
[all …]
DShadowAccountManagerTest.java6 import static com.google.common.truth.Truth.assertThat;
48 assertThat(am).isNotNull(); in testGet()
49 assertThat(am).isSameAs(AccountManager.get(ApplicationProvider.getApplicationContext())); in testGet()
52 assertThat(activityAM).isNotNull(); in testGet()
53 assertThat(activityAM).isSameAs(am); in testGet()
58 assertThat(am.getAccounts()).isNotNull(); in testGetAccounts()
59 assertThat(am.getAccounts().length).isEqualTo(0); in testGetAccounts()
63 assertThat(am.getAccounts()).isNotNull(); in testGetAccounts()
64 assertThat(am.getAccounts().length).isEqualTo(1); in testGetAccounts()
65 assertThat(am.getAccounts()[0]).isSameAs(a1); in testGetAccounts()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/manifest/
DAndroidManifestTest.java3 import static com.google.common.truth.Truth.assertThat;
35 assertThat(config.getContentProviders().get(0).getName()) in parseManifest_shouldReadContentProviders()
37assertThat(config.getContentProviders().get(0).getAuthorities()).isEqualTo("org.robolectric.author… in parseManifest_shouldReadContentProviders()
38 assertThat(config.getContentProviders().get(0).isEnabled()).isTrue(); in parseManifest_shouldReadContentProviders()
40 assertThat(config.getContentProviders().get(1).getName()) in parseManifest_shouldReadContentProviders()
42assertThat(config.getContentProviders().get(1).getAuthorities()).isEqualTo("org.robolectric.author… in parseManifest_shouldReadContentProviders()
43 assertThat(config.getContentProviders().get(1).isEnabled()).isFalse(); in parseManifest_shouldReadContentProviders()
50 assertThat(config.getPermissions().keySet()) in parseManifest_shouldReadPermissions()
55assertThat(permissionItemData.getMetaData().getValueMap()).containsEntry("meta_data_name", "meta_d… in parseManifest_shouldReadPermissions()
56 assertThat(permissionItemData.getName()).isEqualTo("some_permission"); in parseManifest_shouldReadPermissions()
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/expr/
DLiteralStringValueExprTest.java28 import static org.assertj.core.api.Assertions.assertThat;
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()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
DRoboCursorTest.java3 import static com.google.common.truth.Truth.assertThat;
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()
[all …]
DRoboWebSettingsTest.java3 import static com.google.common.truth.Truth.assertThat;
19 assertThat(webSettings.getAllowContentAccess()).isTrue(); in testDefaults()
20 assertThat(webSettings.getAllowFileAccess()).isTrue(); in testDefaults()
21 assertThat(webSettings.getAppCacheEnabled()).isFalse(); in testDefaults()
22 assertThat(webSettings.getBlockNetworkImage()).isFalse(); in testDefaults()
23 assertThat(webSettings.getBlockNetworkLoads()).isFalse(); in testDefaults()
24 assertThat(webSettings.getBuiltInZoomControls()).isTrue(); in testDefaults()
25 assertThat(webSettings.getDatabaseEnabled()).isFalse(); in testDefaults()
26 assertThat(webSettings.getDomStorageEnabled()).isFalse(); in testDefaults()
27 assertThat(webSettings.getGeolocationEnabled()).isFalse(); in testDefaults()
[all …]
/external/turbine/javatests/com/google/turbine/parse/
DLexerTest.java19 import static com.google.common.truth.Truth.assertThat;
34 assertThat(lex("\nasd dsa\n")).containsExactly("IDENT(asd)", "IDENT(dsa)", "EOF"); in testSimple()
39 assertThat(lex("\nasd++asd\n")).containsExactly("IDENT(asd)", "INCR", "IDENT(asd)", "EOF"); in testOperator()
44 assertThat(lex("/* foo")).containsExactly("EOF"); in unterminated()
45 assertThat(lex("\" foo")).containsExactly("EOF"); in unterminated()
51 assertThat(lex("1 + 0b1000100101")) in boolLiteral()
57 assertThat(lex("1 + 01234567")) in octalLiteral()
63 assertThat(lex("0L")).containsExactly("LONG_LITERAL(0L)", "EOF"); in testLiteral()
64 assertThat(lex("0")).containsExactly("INT_LITERAL(0)", "EOF"); in testLiteral()
65 assertThat(lex("0x7fff_ffff")).containsExactly("INT_LITERAL(0x7fff_ffff)", "EOF"); in testLiteral()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java40 import static com.google.common.truth.Truth.assertThat;
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()
[all …]
/external/turbine/javatests/com/google/turbine/bytecode/
DClassReaderTest.java20 import static com.google.common.truth.Truth.assertThat;
72 assertThat(classFile.access()) in methods()
74 assertThat(classFile.name()).isEqualTo("test/Hello"); in methods()
75 assertThat(classFile.signature()).isNull(); in methods()
76 assertThat(classFile.superName()).isEqualTo("java/lang/Object"); in methods()
77 assertThat(classFile.interfaces()).isEmpty(); in methods()
79 assertThat(classFile.methods()).hasSize(3); 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()
[all …]
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DQualifiersTest.java3 import static com.google.common.truth.Truth.assertThat;
15 assertThat(configFrom("values-land-finger")).isEqualTo("land-finger"); in testQualifiers()
24 assertThat(expected.getMessage()).contains("failed to parse qualifiers 'unknown-v23"); in testWhenQualifiersFailToParse()
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()
49assertThat(Qualifiers.addSmallestScreenWidth("en-v23", 320)).isEqualTo("en-v23-sw320dp"); // todo:… in addSmallestScreenWidth()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/common/
DTimestampTest.java19 import static com.google.common.truth.Truth.assertThat;
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()
[all …]
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DDesugarJava8FunctionalTest.java16 import static com.google.common.truth.Truth.assertThat;
67 assertThat(new ConcreteDefaultInterfaceWithLambda().defaultWithLambda()) in testLambdaInDefaultMethod()
74 assertThat(new ConcreteDefaultInterfaceWithLambda().defaultCallsInterfaceMethod()) in testLambdaInDefaultCallsInterfaceMethod()
81 assertThat(new ConcreteOverridesDefaultWithLambda().defaultWithLambda()) in testOverrideLambdaInDefault()
88 assertThat(new ConcreteOverridesDefaultWithLambda().defaultCallsInterfaceMethod()) in testLambdaInDefaultCallsOverrideMethod()
98 assertThat(dest).containsExactly("Sergey"); in testDefaultInterfaceMethodReference()
106 assertThat(dest).containsExactly("Alex"); in testStaticInterfaceMethodReference()
114 assertThat(dest).containsExactly("Sergey"); in testLambdaCallsDefaultMethod()
120 assertThat(concrete.defaultInvokingBootclasspathMethods("Larry")).isEqualTo("Larry"); in testBootclasspathMethodInvocations()
126 assertThat(result).containsExactly(10L, 42L, 11L).inOrder(); in testStaticMethodsInInterface_explicitAndLambdaBody()
[all …]
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/
DBasicTest.java23 import static com.google.common.truth.Truth.assertThat;
50 assertThat(basicComponent.getByte()).isEqualTo(BOUND_BYTE); in primitives()
51 assertThat(basicComponent.getChar()).isEqualTo(BOUND_CHAR); in primitives()
52 assertThat(basicComponent.getShort()).isEqualTo(BOUND_SHORT); in primitives()
53 assertThat(basicComponent.getInt()).isEqualTo(BOUND_INT); in primitives()
54 assertThat(basicComponent.getLong()).isEqualTo(BOUND_LONG); in primitives()
55 assertThat(basicComponent.getBoolean()).isEqualTo(BOUND_BOOLEAN); in primitives()
56 assertThat(basicComponent.getFloat()).isEqualTo(BOUND_FLOAT); in primitives()
57 assertThat(basicComponent.getDouble()).isEqualTo(BOUND_DOUBLE); in primitives()
61 assertThat(basicComponent.getBoxedByte()).isEqualTo(new Byte(BOUND_BYTE)); in boxedPrimitives()
[all …]
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/builder/
DBuilderTest.java22 import static com.google.common.truth.Truth.assertThat;
45 assertThat(component.s()).isEqualTo("sam"); in interfaceBuilder()
46 assertThat(component.i()).isEqualTo(1); in interfaceBuilder()
47 assertThat(component.d()).isWithin(0).of(4.2d); 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()
71 assertThat(component.d()).isWithin(0).of(4.2d); in abstractClassBuilder()
72 assertThat(component.f()).isEqualTo(5.5f); in abstractClassBuilder()
[all …]

12345678910>>...47