-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(accesspoints, core, testsupport): issue164 - Add unit tests
- Loading branch information
1 parent
0e31ca0
commit b3369fc
Showing
36 changed files
with
3,152 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
buildSrc/src/main/java/com/isupatches/android/wisefy/build/TestDependencies.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright 2022 Patches Barrett | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.isupatches.android.wisefy.build | ||
|
||
object TestDependencies { | ||
const val JUNIT: String = "junit:junit:${Versions.JUNIT}" | ||
|
||
object Mockito { | ||
const val CORE: String = "org.mockito:mockito-core:${Versions.MOCKITO}" | ||
const val ANDROID: String = "org.mockito:mockito-android:${Versions.MOCKITO}" | ||
} | ||
|
||
object Kotlin { | ||
object Coroutines { | ||
const val TEST: String = "org.jetbrains.kotlinx:kotlinx-coroutines-test:" + | ||
Versions.KOTLIN_TEST | ||
} | ||
} | ||
|
||
object AndroidX { | ||
const val TEST_RUNNER: String = "androidx.test:runner:${Versions.ANDROIDX_TEST_RUNNER}" | ||
const val TEST_RULES: String = "androidx.test:rules:${Versions.ANDROIDX_TEST_RULES}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import com.isupatches.android.wisefy.build.TestDependencies | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("com.isupatches.android.wisefy.build.plugins.BaseGradleModulePlugin") | ||
id("kotlin-android") | ||
} | ||
|
||
android { | ||
namespace = "com.isupatches.android.wisefy.testsupport" | ||
} | ||
|
||
dependencies { | ||
implementation(project(":wisefy:core")) | ||
|
||
implementation(TestDependencies.Mockito.CORE) | ||
implementation(TestDependencies.Kotlin.Coroutines.TEST) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# This is a Gradle generated file for dependency locking. | ||
# Manual edits can break the build and are not advised. | ||
# This file is expected to be part of source control. | ||
androidx.activity:activity:1.5.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.annotation:annotation-experimental:1.1.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.annotation:annotation:1.5.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.appcompat:appcompat-resources:1.5.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.appcompat:appcompat:1.5.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.arch.core:core-common:2.1.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.arch.core:core-runtime:2.1.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.collection:collection:1.1.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.concurrent:concurrent-futures:1.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.core:core-ktx:1.8.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.core:core:1.8.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.cursoradapter:cursoradapter:1.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.customview:customview:1.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.drawerlayout:drawerlayout:1.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.emoji2:emoji2-views-helper:1.2.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.emoji2:emoji2:1.2.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.fragment:fragment:1.3.6=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.lifecycle:lifecycle-common:2.5.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.lifecycle:lifecycle-livedata-core:2.5.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.lifecycle:lifecycle-livedata:2.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.lifecycle:lifecycle-process:2.4.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.lifecycle:lifecycle-runtime:2.5.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.lifecycle:lifecycle-viewmodel:2.5.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.loader:loader:1.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.resourceinspection:resourceinspection-annotation:1.0.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.savedstate:savedstate:1.2.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.startup:startup-runtime:1.1.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.tracing:tracing:1.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.vectordrawable:vectordrawable-animated:1.1.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.vectordrawable:vectordrawable:1.1.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.versionedparcelable:versionedparcelable:1.1.1=debugRuntimeClasspath,releaseRuntimeClasspath | ||
androidx.viewpager:viewpager:1.0.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
net.bytebuddy:byte-buddy-agent:1.12.19=debugRuntimeClasspath,releaseRuntimeClasspath | ||
net.bytebuddy:byte-buddy:1.12.19=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jacoco:org.jacoco.agent:0.8.8=debugRuntimeClasspath | ||
org.jetbrains.kotlin:kotlin-stdlib-common:1.7.20=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlin:kotlin-stdlib:1.7.20=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlinx:kotlinx-coroutines-test-jvm:1.6.4=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.jetbrains:annotations:13.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.mockito:mockito-core:4.11.0=debugRuntimeClasspath,releaseRuntimeClasspath | ||
org.objenesis:objenesis:3.3=debugRuntimeClasspath,releaseRuntimeClasspath | ||
empty= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest /> |
Oops, something went wrong.