We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d977190 commit 42246bfCopy full SHA for 42246bf
app/src/test/kotlin/fr/free/nrw/commons/category/CategoriesModelTest.kt
@@ -21,10 +21,10 @@ class CategoriesModelTest {
21
internal var categoryItem: CategoryItem? = null
22
23
@Spy
24
- internal var gson: Gson? = Gson()
+ internal lateinit var gson: Gson
25
26
27
- internal var categoryItemForMethodA: CategoryItem? = CategoryItem("",false)
+ internal lateinit var categoryItemForMethodA: CategoryItem
28
29
@Mock
30
internal var categoryDao: CategoryDao? = null
@@ -38,6 +38,8 @@ class CategoriesModelTest {
38
@Before
39
@Throws(Exception::class)
40
fun setUp() {
41
+ gson = Gson()
42
+ categoryItemForMethodA = CategoryItem("",false)
43
MockitoAnnotations.initMocks(this)
44
}
45
0 commit comments