feat: implement commodity price prediction and plant disease detection features

This commit is contained in:
Cutiful 2025-06-12 11:36:41 +07:00
parent 31c70e7a3f
commit a3d819417e
6 changed files with 91 additions and 3 deletions

View File

@ -0,0 +1,27 @@
package com.syaroful.agrilinkvocpro.commodity_price_prediction_feature
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals(
"com.syaroful.agrilinkvocpro.commodity_price_prediction_feature",
appContext.packageName
)
}
}

View File

@ -0,0 +1,17 @@
package com.syaroful.agrilinkvocpro.commodity_price_prediction_feature
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}

View File

@ -1,4 +1,4 @@
package com.syaroful.agrilinkvocpro.diseasedetection_feature package com.syaroful.agrilinkvocpro.growth_recipe_feature
import androidx.test.platform.app.InstrumentationRegistry import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.ext.junit.runners.AndroidJUnit4
@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() { fun useAppContext() {
// Context of the app under test. // Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.syaroful.agrilinkvocpro.diseasedetection_feature", appContext.packageName) assertEquals("com.syaroful.agrilinkvocpro.growth_recipe_feature", appContext.packageName)
} }
} }

View File

@ -1,4 +1,4 @@
package com.syaroful.agrilinkvocpro.diseasedetection_feature package com.syaroful.agrilinkvocpro.growth_recipe_feature
import org.junit.Test import org.junit.Test

View File

@ -0,0 +1,27 @@
package com.syaroful.agrilinkvocpro.plant_disease_detection_feature
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals(
"com.syaroful.agrilinkvocpro.plant_disease_detection_feature",
appContext.packageName
)
}
}

View File

@ -0,0 +1,17 @@
package com.syaroful.agrilinkvocpro.plant_disease_detection_feature
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}