File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
DemoApp/DemoAppKotlin/app
src/test/java/co/optable/android_sdk Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ android {
9
9
namespace " co.optable.androidsdkdemo"
10
10
11
11
defaultConfig {
12
- // TODO: Change
13
12
applicationId " co.optable.androidsdkdemo"
14
13
minSdkVersion 21
15
14
targetSdkVersion 34
Original file line number Diff line number Diff line change @@ -4,15 +4,6 @@ plugins {
4
4
id(" de.nanogiants.android-versioning" ) version " 2.4.0"
5
5
}
6
6
7
- // TODO: Check
8
- // apply plugin: 'de.mobilej.unmock'
9
-
10
- // unMock {
11
- // keep "android.net.Uri"
12
- // keepStartingWith "libcore."
13
- // keepAndRename "java.nio.charset.Charsets" to "xjava.nio.charset.Charsets"
14
- // }
15
-
16
7
android {
17
8
compileSdk 34
18
9
@@ -69,7 +60,11 @@ dependencies {
69
60
70
61
implementation ' com.google.android.gms:play-services-ads:24.6.0'
71
62
72
- testImplementation ' junit:junit:4.13.2'
63
+ // Unit tests
64
+ testImplementation(" junit:junit:4.13.2" )
65
+ testImplementation(" org.robolectric:robolectric:4.16" )
66
+
67
+ // UI tests
73
68
androidTestImplementation ' androidx.test.ext:junit:1.2.1'
74
69
androidTestImplementation ' androidx.test.espresso:espresso-core:3.6.1'
75
70
}
Original file line number Diff line number Diff line change @@ -8,13 +8,15 @@ import android.net.Uri
8
8
import org.junit.Assert.assertEquals
9
9
import org.junit.Assert.assertNotEquals
10
10
import org.junit.Test
11
+ import org.junit.runner.RunWith
12
+ import org.robolectric.RobolectricTestRunner
11
13
12
14
/* *
13
15
* OptableSDK unit tests
14
16
*/
17
+ @RunWith(RobolectricTestRunner ::class )
15
18
class OptableSDKUnitTest {
16
19
17
- // TODO: Fix
18
20
@Test
19
21
fun eid_isCorrect () {
20
22
val expected = " e:a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3"
You can’t perform that action at this time.
0 commit comments