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.
2 parents ed6a7b3 + 62a5181 commit 77d6801Copy full SHA for 77d6801
src/main/resources/templates/LayoutTemplate.txt
@@ -1,5 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
-<layout>
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
3
+ xmlns:app="http://schemas.android.com/apk/res-auto"
4
+ xmlns:tools="http://schemas.android.com/tools">
5
6
<data>
7
<variable
src/main/resources/templates/ViewModelTestTemplate.txt
@@ -1,14 +1,16 @@
package $PACKAGE$
import kr.co.finda.BasicTest
+import org.junit.jupiter.api.BeforeEach
class $NAME$ViewModelTest : BasicTest() {
8
private lateinit var viewModel: $NAME$ViewModel
9
- fun buildViewModel(): $NAME$ViewModel {
10
- return $NAME$ViewModel()
11
- }
+ @BeforeEach
+ fun setUpViewModel() {
12
13
+ viewModel = $NAME$ViewModel()
14
+ }
15
16
}
0 commit comments