/external/apache-commons-io/src/test/java/org/apache/commons/io/file/ |
D | CountersEqualsAndHashCodeTest.java | 22 import org.junit.jupiter.api.Assertions; 38 Assertions.assertEquals(counter1, counter2); in testEquals() 40 Assertions.assertNotEquals(counter1, counter2); in testEquals() 42 Assertions.assertEquals(counter1, counter2); in testEquals() 46 Assertions.assertEquals(counter1, counter2); in testEqualsByteCounters() 48 Assertions.assertNotEquals(counter1, counter2); in testEqualsByteCounters() 50 Assertions.assertEquals(counter1, counter2); in testEqualsByteCounters() 54 Assertions.assertEquals(counter1, counter2); in testEqualsDirectoryCounters() 56 Assertions.assertNotEquals(counter1, counter2); in testEqualsDirectoryCounters() 58 Assertions.assertEquals(counter1, counter2); in testEqualsDirectoryCounters() [all …]
|
D | PathUtilsIsEmptyTest.java | 24 import org.junit.jupiter.api.Assertions; 42 Assertions.assertTrue(PathUtils.isEmpty(FILE_SIZE_0)); in testIsEmpty() 43 Assertions.assertFalse(PathUtils.isEmpty(FILE_SIZE_1)); in testIsEmpty() 45 Assertions.assertTrue(PathUtils.isEmpty(tempDir.get())); in testIsEmpty() 47 Assertions.assertFalse(PathUtils.isEmpty(DIR_SIZE_1)); in testIsEmpty() 53 Assertions.assertTrue(PathUtils.isEmptyDirectory(tempDir.get())); in testIsEmptyDirectory() 55 Assertions.assertFalse(PathUtils.isEmptyDirectory(DIR_SIZE_1)); in testIsEmptyDirectory() 60 Assertions.assertTrue(PathUtils.isEmptyFile(FILE_SIZE_0)); in testisEmptyFile() 61 Assertions.assertFalse(PathUtils.isEmptyFile(FILE_SIZE_1)); in testisEmptyFile()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/ |
D | PlayerMessage.java | 22 import com.google.android.exoplayer2.util.Assertions; 122 Assertions.checkState(!isSent); in setType() 140 Assertions.checkState(!isSent); in setPayload() 165 Assertions.checkState(!isSent); in setLooper() 195 Assertions.checkState(!isSent); in setPosition() 213 Assertions.checkState(!isSent); in setPosition() 214 Assertions.checkArgument(positionMs != C.TIME_UNSET); in setPosition() 239 Assertions.checkState(!isSent); in setDeleteAfterDelivery() 257 Assertions.checkState(!isSent); in send() 259 Assertions.checkArgument(deleteAfterDelivery); in send() [all …]
|
D | BaseRenderer.java | 18 import static com.google.android.exoplayer2.util.Assertions.checkNotNull; 28 import com.google.android.exoplayer2.util.Assertions; 99 Assertions.checkState(state == STATE_DISABLED); in enable() 110 Assertions.checkState(state == STATE_ENABLED); in start() 119 Assertions.checkState(!streamIsFinal); in replaceStream() 157 Assertions.checkNotNull(stream).maybeThrowError(); in maybeThrowStreamError() 170 Assertions.checkState(state == STATE_STARTED); in stop() 177 Assertions.checkState(state == STATE_ENABLED); in disable() 188 Assertions.checkState(state == STATE_DISABLED); in reset() 323 return Assertions.checkNotNull(streamFormats); in getStreamFormats() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/ |
D | PlayerMessage.java | 22 import com.google.android.exoplayer2.util.Assertions; 122 Assertions.checkState(!isSent); in setType() 140 Assertions.checkState(!isSent); in setPayload() 167 Assertions.checkState(!isSent); in setLooper() 197 Assertions.checkState(!isSent); in setPosition() 215 Assertions.checkState(!isSent); in setPosition() 216 Assertions.checkArgument(positionMs != C.TIME_UNSET); in setPosition() 241 Assertions.checkState(!isSent); in setDeleteAfterDelivery() 259 Assertions.checkState(!isSent); in send() 261 Assertions.checkArgument(deleteAfterDelivery); in send() [all …]
|
D | BaseRenderer.java | 18 import static com.google.android.exoplayer2.util.Assertions.checkNotNull; 28 import com.google.android.exoplayer2.util.Assertions; 99 Assertions.checkState(state == STATE_DISABLED); in enable() 109 Assertions.checkState(state == STATE_ENABLED); in start() 118 Assertions.checkState(!streamIsFinal); in replaceStream() 156 Assertions.checkNotNull(stream).maybeThrowError(); in maybeThrowStreamError() 173 Assertions.checkState(state == STATE_STARTED); in stop() 180 Assertions.checkState(state == STATE_ENABLED); in disable() 191 Assertions.checkState(state == STATE_DISABLED); in reset() 325 return Assertions.checkNotNull(streamFormats); in getStreamFormats() [all …]
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | StubbingUsingDoReturnTest.java | 8 import org.assertj.core.api.Assertions; 23 import static org.assertj.core.api.Assertions.assertThat; 40 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_stub() 48 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_args() 49 Assertions.assertThat(mock.simpleMethod("one", 234)).isEqualTo("bar"); in should_stub_with_args() 50 Assertions.assertThat(mock.simpleMethod("xxx", 234)).isEqualTo(null); in should_stub_with_args() 125 Assertions.assertThat(mock.simpleMethod()).isEqualTo("foo"); in should_allow_chained_stubbing() 131 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_allow_chained_stubbing() 132 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_allow_chained_stubbing() 142 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("foo"); in should_allow_consecutive_return_values() [all …]
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ |
D | CharsetsTest.java | 23 import org.junit.jupiter.api.Assertions; 33 Assertions.assertEquals(Charset.defaultCharset(), Charsets.toCharset((Charset) null)); in testToCharset_Charset() 34 … Assertions.assertEquals(Charset.defaultCharset(), Charsets.toCharset(Charset.defaultCharset())); in testToCharset_Charset() 35 Assertions.assertEquals(StandardCharsets.UTF_8, Charsets.toCharset(StandardCharsets.UTF_8)); in testToCharset_Charset() 40 Assertions.assertEquals(Charset.defaultCharset(), Charsets.toCharset((String) null)); in testToCharset_String() 41 …Assertions.assertEquals(Charset.defaultCharset(), Charsets.toCharset(Charset.defaultCharset().name… in testToCharset_String() 42 Assertions.assertEquals(StandardCharsets.UTF_8, Charsets.toCharset("UTF-8")); in testToCharset_String() 47 … Assertions.assertEquals(Charset.defaultCharset().name(), Charsets.toCharsetName((String) null)); in testToCharsetName() 48 Assertions.assertEquals("UTF-8", Charsets.toCharsetName("UTF-8")); in testToCharsetName()
|
/external/mockito/src/test/java/org/mockitousage/customization/ |
D | BDDMockitoTest.java | 7 import org.assertj.core.api.Assertions; 35 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("bar"); in should_stub() 36 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo(null); in should_stub() 44 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable() 55 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable_class() 68 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable_classes() 82 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_answer() 93 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_will_answer_alias() 102 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo("foo"); in should_stub_consecutively() 103 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo("bar"); in should_stub_consecutively() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/media2/src/main/java/com/google/android/exoplayer2/ext/media2/ |
D | SessionPlayerConnector.java | 34 import com.google.android.exoplayer2.util.Assertions; 103 Assertions.checkNotNull(player); in SessionPlayerConnector() 104 Assertions.checkNotNull(mediaItemConverter); in SessionPlayerConnector() 143 Assertions.checkArgument(playbackSpeed > 0f); in setPlaybackSpeed() 157 player.setAudioAttributes(Assertions.checkNotNull(attr)); in setAudioAttributes() 233 Assertions.checkNotNull(item); 234 Assertions.checkArgument(!(item instanceof FileMediaItem)); 235 Assertions.checkArgument(!(item instanceof CallbackMediaItem)); 250 Assertions.checkNotNull(playlist); 251 Assertions.checkArgument(!playlist.isEmpty()); [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/media2/src/main/java/com/google/android/exoplayer2/ext/media2/ |
D | SessionPlayerConnector.java | 34 import com.google.android.exoplayer2.util.Assertions; 103 Assertions.checkNotNull(player); in SessionPlayerConnector() 104 Assertions.checkNotNull(mediaItemConverter); in SessionPlayerConnector() 143 Assertions.checkArgument(playbackSpeed > 0f); in setPlaybackSpeed() 157 player.setAudioAttributes(Assertions.checkNotNull(attr)); in setAudioAttributes() 233 Assertions.checkNotNull(item); 234 Assertions.checkArgument(!(item instanceof FileMediaItem)); 235 Assertions.checkArgument(!(item instanceof CallbackMediaItem)); 250 Assertions.checkNotNull(playlist); 251 Assertions.checkArgument(!playlist.isEmpty()); [all …]
|
/external/mockito/src/test/java/org/mockito/internal/exceptions/stacktrace/ |
D | StackTraceFilterTest.java | 8 import org.assertj.core.api.Assertions; 29 Assertions.assertThat(filtered).has(onlyThoseClasses("MockitoExampleTest")); in shouldFilterOutCglibGarbage() 41 Assertions.assertThat(filtered).has(onlyThoseClasses("MockitoExampleTest")); in shouldFilterOutByteBuddyGarbage() 54 Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest")); in shouldFilterOutMockitoPackage() 69 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.TestSupport", "org.test.TestSupport… in shouldNotFilterOutTracesMiddleGoodTraces() 83 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "junit.stuff", … in shouldKeepRunners() 99 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "junit.stuff", … in shouldNotFilterElementsAboveMockitoJUnitRule() 111 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "org.mockito.in… in shouldKeepInternalRunners() 127 …Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "org.test.Good"… in shouldStartFilteringAndKeepTop() 141 Assertions.assertThat(filtered).has(onlyThoseClasses( in shouldKeepGoodTraceFromTheTopBecauseRealImplementationsOfSpiesSometimesThrowExceptions()
|
/external/mockito/src/test/java/org/mockitousage/stacktrace/ |
D | StackTraceFilteringTest.java | 8 import org.assertj.core.api.Assertions; 49 Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerify")); in shouldFilterStackTraceOnVerify() 60 …Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerifyNoMoreInteract… in shouldFilterStackTraceOnVerifyNoMoreInteractions() 71 …Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerifyZeroInteractio… in shouldFilterStackTraceOnVerifyZeroInteractions() 83 …Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceOnMockitoExcept… in shouldFilterStacktraceOnMockitoException() 98 …Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStacktraceWhenVerifyingInOrder")… in shouldFilterStacktraceWhenVerifyingInOrder() 108 …Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceWhenInOrderThro… in shouldFilterStacktraceWhenInOrderThrowsMockitoException() 119 …Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceWhenInOrderVeri… in shouldFilterStacktraceWhenInOrderVerifies() 129 …Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStackTraceWhenThrowingExc… in shouldFilterStackTraceWhenThrowingExceptionFromMockHandler() 141 … Assertions.assertThat(e).has(firstMethodInStackTrace("shouldShowProperExceptionStackTrace")); in shouldShowProperExceptionStackTrace()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeExoMediaDrm.java | 35 import com.google.android.exoplayer2.util.Assertions; 232 Assertions.checkState(referenceCount > 0); in openSession() 252 Assertions.checkState(referenceCount > 0); in closeSession() 254 Assertions.checkState(openSessionIds.remove(toByteList(sessionId))); in closeSession() 264 Assertions.checkState(referenceCount > 0); in getKeyRequest() 268 Assertions.checkArgument(keyType == KEY_TYPE_STREAMING, "Unrecognised keyType: " + keyType); in getKeyRequest() 272 Assertions.checkState(openSessionIds.contains(toByteList(scope))); in getKeyRequest() 273 Assertions.checkNotNull(schemeDatas); in getKeyRequest() 290 Assertions.checkState(referenceCount > 0); in provideKeyResponse() 311 Assertions.checkState(referenceCount > 0); in getProvisionRequest() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeExoMediaDrm.java | 35 import com.google.android.exoplayer2.util.Assertions; 228 Assertions.checkState(referenceCount > 0); in openSession() 248 Assertions.checkState(referenceCount > 0); in closeSession() 250 Assertions.checkState(openSessionIds.remove(toByteList(sessionId))); in closeSession() 260 Assertions.checkState(referenceCount > 0); in getKeyRequest() 264 Assertions.checkArgument(keyType == KEY_TYPE_STREAMING, "Unrecognised keyType: " + keyType); in getKeyRequest() 268 Assertions.checkState(openSessionIds.contains(toByteList(scope))); in getKeyRequest() 269 Assertions.checkNotNull(schemeDatas); in getKeyRequest() 286 Assertions.checkState(referenceCount > 0); in provideKeyResponse() 307 Assertions.checkState(referenceCount > 0); in getProvisionRequest() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | SimpleCacheSpan.java | 20 import com.google.android.exoplayer2.util.Assertions; 123 int id = Integer.parseInt(Assertions.checkNotNull(matcher.group(1))); in createCacheEntry() 136 long position = Long.parseLong(Assertions.checkNotNull(matcher.group(2))); in createCacheEntry() 138 lastTouchTimestamp = Long.parseLong(Assertions.checkNotNull(matcher.group(3))); in createCacheEntry() 157 key = Util.unescapeFileName(Assertions.checkNotNull(matcher.group(1))); in upgradeFile() 161 key = Assertions.checkNotNull(matcher.group(1)); // Keys were not escaped in version 1. in upgradeFile() 171 Assertions.checkStateNotNull(file.getParentFile()), in upgradeFile() 173 Long.parseLong(Assertions.checkNotNull(matcher.group(2))), in upgradeFile() 174 Long.parseLong(Assertions.checkNotNull(matcher.group(3)))); in upgradeFile() 203 Assertions.checkState(isCached); in copyWithFileAndLastTouchTimestamp()
|
D | SimpleCache.java | 24 import com.google.android.exoplayer2.util.Assertions; 311 Assertions.checkState(!released); in addListener() 312 Assertions.checkNotNull(key); in addListener() 313 Assertions.checkNotNull(listener); in addListener() 339 Assertions.checkState(!released); in getCachedSpans() 348 Assertions.checkState(!released); in getKeys() 354 Assertions.checkState(!released); in getCacheSpace() 361 Assertions.checkState(!released); in startReadWrite() 383 Assertions.checkState(!released); in startReadWriteNonBlocking() 405 Assertions.checkState(!released); in startFile() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | SimpleCacheSpan.java | 20 import com.google.android.exoplayer2.util.Assertions; 123 int id = Integer.parseInt(Assertions.checkNotNull(matcher.group(1))); in createCacheEntry() 136 long position = Long.parseLong(Assertions.checkNotNull(matcher.group(2))); in createCacheEntry() 138 lastTouchTimestamp = Long.parseLong(Assertions.checkNotNull(matcher.group(3))); in createCacheEntry() 157 key = Util.unescapeFileName(Assertions.checkNotNull(matcher.group(1))); in upgradeFile() 161 key = Assertions.checkNotNull(matcher.group(1)); // Keys were not escaped in version 1. in upgradeFile() 171 Assertions.checkStateNotNull(file.getParentFile()), in upgradeFile() 173 Long.parseLong(Assertions.checkNotNull(matcher.group(2))), in upgradeFile() 174 Long.parseLong(Assertions.checkNotNull(matcher.group(3)))); in upgradeFile() 203 Assertions.checkState(isCached); in copyWithFileAndLastTouchTimestamp()
|
D | SimpleCache.java | 24 import com.google.android.exoplayer2.util.Assertions; 311 Assertions.checkState(!released); in addListener() 312 Assertions.checkNotNull(key); in addListener() 313 Assertions.checkNotNull(listener); in addListener() 339 Assertions.checkState(!released); in getCachedSpans() 348 Assertions.checkState(!released); in getKeys() 354 Assertions.checkState(!released); in getCacheSpace() 361 Assertions.checkState(!released); in startReadWrite() 383 Assertions.checkState(!released); in startReadWriteNonBlocking() 405 Assertions.checkState(!released); in startFile() [all …]
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | DoubleLiteralExprTest.java | 3 import org.junit.jupiter.api.Assertions; 13 Assertions.assertEquals(x, e.asDouble()); in test1() 20 Assertions.assertEquals(x, e.asDouble()); in test2() 27 Assertions.assertEquals(a, e.asDouble()); in test3() 34 Assertions.assertEquals(a, e.asDouble()); in test4() 41 Assertions.assertEquals(x, e.asDouble()); in test5()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | BaseMediaSource.java | 18 import static com.google.android.exoplayer2.util.Assertions.checkStateNotNull; 27 import com.google.android.exoplayer2.util.Assertions; 116 Assertions.checkNotNull(mediaPeriodId); in createEventDispatcher() 179 Assertions.checkNotNull(handler); in addEventListener() 180 Assertions.checkNotNull(eventListener); in addEventListener() 191 Assertions.checkNotNull(handler); in addDrmEventListener() 192 Assertions.checkNotNull(eventListener); in addDrmEventListener() 207 Assertions.checkArgument(this.looper == null || this.looper == looper); in prepareSource() 223 Assertions.checkNotNull(looper); in enable()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | BaseMediaSource.java | 18 import static com.google.android.exoplayer2.util.Assertions.checkStateNotNull; 27 import com.google.android.exoplayer2.util.Assertions; 116 Assertions.checkNotNull(mediaPeriodId); in createEventDispatcher() 179 Assertions.checkNotNull(handler); in addEventListener() 180 Assertions.checkNotNull(eventListener); in addEventListener() 191 Assertions.checkNotNull(handler); in addDrmEventListener() 192 Assertions.checkNotNull(eventListener); in addDrmEventListener() 207 Assertions.checkArgument(this.looper == null || this.looper == looper); in prepareSource() 223 Assertions.checkNotNull(looper); in enable()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | Conditions.java | 8 import org.assertj.core.api.Assertions; 26 Assertions.assertThat(trace.length) in onlyThoseClassesInStackTrace() 33 Assertions.assertThat(trace[i].getClassName()).isEqualTo(classes[i]); in onlyThoseClassesInStackTrace() 46 Assertions.assertThat(traceElements.length) 53 Assertions.assertThat(traceElements[i].getClassName()).isEqualTo(classes[i]); 100 Assertions.fail("Bridge method [" + methodName + "]\nnot found in:\n" + o); 115 …Assertions.assertThat(trace[i].getMethodName()).describedAs("Expected methods[%d] to be in the sta…
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/ |
D | FullSegmentEncryptionKeyCache.java | 20 import com.google.android.exoplayer2.util.Assertions; 63 return backingMap.put(Assertions.checkNotNull(uri), Assertions.checkNotNull(encryptionKey)); in put() 72 return backingMap.containsKey(Assertions.checkNotNull(uri)); in containsUri() 83 return backingMap.remove(Assertions.checkNotNull(uri)); in remove()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/ |
D | FullSegmentEncryptionKeyCache.java | 20 import com.google.android.exoplayer2.util.Assertions; 63 return backingMap.put(Assertions.checkNotNull(uri), Assertions.checkNotNull(encryptionKey)); in put() 72 return backingMap.containsKey(Assertions.checkNotNull(uri)); in containsUri() 83 return backingMap.remove(Assertions.checkNotNull(uri)); in remove()
|