Skip to content

Commit

Permalink
Allow for building without Android SDK. Remove warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Aug 24, 2021
1 parent 1a8946f commit c740965
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 6 additions & 1 deletion settings.gradle.kts
Expand Up @@ -9,7 +9,6 @@ include("deprecatedPluginsTest",
"kotlinTest",
"kotlinReleaseCoroutinesTest",
"android",
"androidTest",
"junit-jupiter",
"junitJupiterExtensionTest",
"junitJupiterInlineMockMakerExtensionTest",
Expand All @@ -19,6 +18,12 @@ include("deprecatedPluginsTest",
"junitJupiterParallelTest",
"osgi-test")

if (System.getenv("ANDROID_SDK_ROOT") != null || File(".local.properties").exists()) {
include("androidTest")
} else {
logger.info("Not including android test project due to missing SDK configuration")
}

rootProject.name = "mockito"

val koltinBuildScriptProject = hashSetOf("junitJupiterExtensionTest", "junitJupiterInlineMockMakerExtensionTest")
Expand Down
Expand Up @@ -5,14 +5,12 @@
package org.mockito.internal.creation.bytebuddy;

import java.lang.ref.ReferenceQueue;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

import net.bytebuddy.TypeCache;
import org.mockito.mock.SerializableMode;
import org.mockito.stubbing.Answer;

class TypeCachingBytecodeGenerator extends ReferenceQueue<ClassLoader>
implements BytecodeGenerator {
Expand Down
Expand Up @@ -5,8 +5,8 @@
package org.mockito.kotlin

import kotlinx.coroutines.runBlocking
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.core.IsEqual
import org.junit.Assert.assertThat
import org.junit.Test
import org.mockito.Mockito.*

Expand Down

0 comments on commit c740965

Please sign in to comment.