Set up JUnit

This commit is contained in:
Moez Bhatti
2017-11-01 16:34:04 -07:00
parent fc581d9d55
commit cc90d72146
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -55,5 +55,7 @@ dependencies {
kapt "com.google.dagger:dagger-compiler:2.11"
kapt 'io.realm:realm-annotations:4.1.1'
kapt 'io.realm:realm-annotations-processor:4.1.1'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
provided 'javax.annotation:jsr250-api:1.0'
}
@@ -0,0 +1,15 @@
package com.moez.QKSMS
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
@RunWith(JUnit4::class)
class JUnitTest {
@Test
fun twoPlusTwoEqualsFour() {
assert(2 + 2 == 4)
}
}