Home
last modified time | relevance | path

Searched refs:assumeTrue (Results 1 – 25 of 68) sorted by relevance

123

/external/mockito/src/test/java/org/mockitousage/misuse/
DDetectingFinalMethodsTest.java14 import static org.junit.Assume.assumeTrue;
29 assumeTrue("Does not apply for inline mocks", withFinal.getClass() != WithFinal.class); in shouldFailWithUnfinishedVerification()
39 assumeTrue("Does not apply for inline mocks", withFinal.getClass() != WithFinal.class); in shouldFailWithUnfinishedStubbing()
DDetectingMisusedMatchersTest.java18 import static org.junit.Assume.assumeTrue;
89 assumeTrue("Does not apply for inline mocks", withFinal.getClass() != WithFinal.class); in shouldSayUnfinishedVerificationButNotInvalidUseOfMatchers()
/external/junit/src/main/java/org/junit/
DAssume.java49 public static void assumeTrue(boolean b) { in assumeTrue() method in Assume
67 public static void assumeTrue(String message, boolean b) { in assumeTrue() method in Assume
75 assumeTrue(message, !b); in assumeFalse()
/external/okio/okio/src/jvmTest/kotlin/okio/
DBufferCursorKotlinTest.kt20 import org.junit.Assume.assumeTrue in <lambda>()
46 assumeTrue(buffer.size > 0L) in <lambda>()
59 assumeTrue(buffer.size > 0L) in <lambda>()
72 assumeTrue(buffer.size > 0L) in <lambda>()
/external/vogar/test/vogar/target/junit4/
DAssumeTest.java30 Assume.assumeTrue(true); in assumesCorrectly()
36 Assume.assumeTrue(false); in assumesIncorrectly()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DTypeResolutionWithSameNameTest.java18 import static org.junit.jupiter.api.Assumptions.assumeTrue;
42 assumeTrue(extendingTypeClass.getExtendedTypes().size() > 0); in testTypesWithSameNameInPackageAndNested_directExtends()
73 assumeTrue(implementingTypeClass.getImplementedTypes().size() > 0); in testTypesWithSameNameInPackageAndNested_directImplements()
/external/mockito/src/test/java/org/mockitoutil/
DVmArgAssumptions.java11 import static org.junit.Assume.assumeTrue;
15 assumeTrue(assertEnabled(vmArg)); in assumeVmArgPresent()
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/
DChannelAndServerBuilderTest.java76 Assume.assumeTrue(ServerBuilder.class.isAssignableFrom(builderClass)); in serverBuilderHidesMethod_forPort()
86 Assume.assumeTrue(ManagedChannelBuilder.class.isAssignableFrom(builderClass)); in channelBuilderHidesMethod_forAddress()
96 Assume.assumeTrue(ManagedChannelBuilder.class.isAssignableFrom(builderClass)); in channelBuilderHidesMethod_forTarget()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DResourceTableFactoryIntegrationTest.java4 import static org.junit.Assume.assumeTrue;
20 assumeTrue(useLegacy()); in shouldIncludeStyleableAttributesThatDoNotHaveACorrespondingEntryInAttrClass()
DResourceLoaderTest.java5 import static org.junit.Assume.assumeTrue;
35 assumeTrue(useLegacy()); in setUp()
DDrawableResourceLoaderTest.java8 import static org.junit.Assume.assumeTrue;
34 assumeTrue(useLegacy()); in setup()
/external/mockito/src/test/java/org/mockitousage/spies/
DSpyingOnInterfacesTest.java23 import static org.junit.Assume.assumeTrue;
66assumeTrue("Test can only be executed on Java 8 capable VMs", ClassFileVersion.ofThisVm().isAtLeas… in shouldAllowDelegatingToDefaultMethod()
87assumeTrue("Test can only be executed on Java 8 capable VMs", ClassFileVersion.ofThisVm().isAtLeas… in shouldAllowSpyingOnDefaultMethod()
DSpyingOnRealObjectsTest.java23 import static org.junit.Assume.assumeTrue;
187assumeTrue("Using inline mocks, it is possible to spy on private types", spy.getClass() != real.ge… in shouldSayNiceMessageWhenSpyingOnPrivateClass()
/external/dexmaker/dexmaker-mockito-tests/src/main/java/com/android/dx/mockito/tests/
DBlacklistedApis.java21 import static org.junit.Assume.assumeTrue;
51 assumeTrue(Build.VERSION.SDK_INT >= 28); in onlyRunOnPlatformsThatSupportBlacklisting()
99 assumeTrue(isDebuggable()); in copyBlacklistedFields()
/external/connectedappssdk/tests/instrumented/src/main/java/com/google/android/enterprise/connectedapps/instrumented/tests/
DAvailabilityListenerTest.java20 import static org.junit.Assume.assumeTrue;
61 assumeTrue( in workProfileTurnedOff_availabilityListenerFires()
76 assumeTrue( in workProfileTurnedOn_availabilityListenerFires()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DCoroutineSchedulerLivenessStressTest.kt25 Assume.assumeTrue(CORE_POOL_SIZE >= 2) in testInternalSubmissions()
41 Assume.assumeTrue(CORE_POOL_SIZE >= 2) in testExternalSubmissions()
/external/okio/okio/src/jvmTest/java/okio/
DBufferCursorTest.java37 import static org.junit.Assume.assumeTrue;
157 assumeTrue(bufferFactory == BufferFactory.SMALL_SEGMENTED_BUFFER); in seekWithinSegment()
300 assumeTrue(buffer.size() > 3); in shrink()
315 assumeTrue(buffer.size() <= 1_000_000); in shrinkByManySegments()
337 assumeTrue(buffer.size() > 4); in shrinkAdjustOffset()
388 assumeTrue(buffer.size() > 0); in resizeShrinkMovesCursorToEnd()
425 assumeTrue(originalSize > 0); in expandSameSegment()
430 assumeTrue(originalEnd < SEGMENT_SIZE); in expandSameSegment()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DStyleResourceLoaderTest.java5 import static org.junit.Assume.assumeTrue;
21 assumeTrue(RuntimeEnvironment.useLegacyResources()); in setUp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAssetManagerTest.java5 import static org.junit.Assume.assumeTrue;
49 assumeTrue(!useLegacy()); in openFd_shouldProvideFileDescriptorForDeflatedAsset()
82 assumeTrue(useLegacy()); in openNonAssetShouldThrowExceptionWhenFileDoesNotExist()
93 assumeTrue(useLegacy()); in unknownResourceIdsShouldReportPackagesSearched()
/external/mockito/src/test/java/org/mockito/internal/framework/
DDefaultMockitoFrameworkTest.java25 import static org.junit.Assume.assumeTrue;
138 assumeTrue(Plugins.getMockMaker() instanceof InlineMockMaker); in clears_all_mocks()
157 assumeTrue(Plugins.getMockMaker() instanceof InlineMockMaker); in clears_mock()
/external/auto/common/src/test/java/com/google/auto/common/
DGeneratedAnnotationsTest.java21 import static org.junit.Assume.assumeTrue;
198 assumeTrue(isJdk9OrLater()); in source9()
206 assumeTrue(isJdk9OrLater()); in source9_masked()
/external/conscrypt/testing/src/main/java/org/conscrypt/
DTestUtils.java153 Assume.assumeTrue("Skipping test: " + classname + " unavailable", in assumeClassAvailable()
177 Assume.assumeTrue("Skipping test: " in assumeSetEndpointIdentificationAlgorithmAvailable()
196 Assume.assumeTrue(isAndroid()); in assumeAndroid()
201 Assume.assumeTrue(isAndroid() in assumeAllowsUnsignedCrypto()
213 Assume.assumeTrue("SHA2 with DSA signatures not available", available); in assumeSHA2WithDSAAvailable()
751 Assume.assumeTrue("Require Java 8: " + javaVersion(), isJavaVersion(8)); in assumeJava8()
/external/mockito/src/test/java/org/mockito/
DAnnotationsAreCopiedFromMockedTypeTest.java19 import static org.junit.Assume.assumeTrue;
29assumeTrue("Annotation copying does not apply for inline mocks", mock(OnClass.class).getClass() !=… in mock_should_have_annotations_copied_from_mocked_type_at_class_level()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
DURLStreamHandlerRuntimeTest.java31 Assume.assumeTrue(!jdk9); in checkJDK()
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DAnnotationIdTest.java22 import static org.junit.Assume.assumeTrue;
236 assumeTrue(Build.VERSION.SDK_INT >= 21); in addMethodAnnotationWithEnumElement()
270 assumeTrue(Build.VERSION.SDK_INT >= 21); in addMethodAnnotationWithMultiElements()
293 assumeTrue(Build.VERSION.SDK_INT >= 21); in addMethodAnnotationWithDuplicateElements()

123