Skip to content

Commit 7fe209a

Browse files
nic0lettetiembo
authored andcommitted
Update failing test.
Don't check that PlantAndGardenPlantings.plant is null when build with the default constructor because it should always be set by Room to a valid plant (since it represents a plant in a garden). The fact that it is non-null (and points to the correct plant) is tested in GardenPlantingDaoTest.testGetPlantAndGardenPlantings.
1 parent d3d2eb4 commit 7fe209a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/src/test/java/com/google/samples/apps/sunflower/data/PlantAndGardenPlantingTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@
1616

1717
package com.google.samples.apps.sunflower.data
1818

19-
import org.junit.Assert.assertNull
2019
import org.junit.Assert.assertTrue
2120
import org.junit.Test
2221

2322
class PlantAndGardenPlantingTest {
2423

2524
@Test fun test_default_values() {
2625
val p = PlantAndGardenPlantings()
27-
assertNull(p.plant)
2826
assertTrue(p.gardenPlantings.isEmpty())
2927
}
3028
}

0 commit comments

Comments
 (0)