start with a test and maybe it will actually get used, Eventually.

This commit is contained in:
Kevin Gorham 2018-11-28 00:49:03 -05:00 committed by Jack Grigg
parent f7263f69c0
commit 81667f17cc
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
4 changed files with 22 additions and 27 deletions

View File

@ -42,7 +42,7 @@ android {
targetSdkVersion 28
versionCode = 1_01_02
versionName = "1.1.2"
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {

View File

@ -1,26 +0,0 @@
package cash.z.wallet.sdk;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("cash.z.wallet.sdk.test", appContext.getPackageName());
}
}

View File

@ -0,0 +1,17 @@
package cash.z.wallet.sdk.dao
import androidx.test.runner.AndroidJUnit4
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class ComplactBlockDaoTest {
private var dao: CompactBlockDao? = null
@Test
fun testDaoExists() {
assertNotNull(dao)
}
}

View File

@ -0,0 +1,4 @@
package cash.z.wallet.sdk.dao
interface CompactBlockDao {
}