Skip to content

Commit 77d6801

Browse files
authored
Merge pull request #11 from FindaDeveloper/seongha
[Modify] LayoutTemplate, ViewModelTestTemplate 수정
2 parents ed6a7b3 + 62a5181 commit 77d6801

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/main/resources/templates/LayoutTemplate.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<layout>
2+
<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">
35

46
<data>
57
<variable
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
package $PACKAGE$
22

33
import kr.co.finda.BasicTest
4+
import org.junit.jupiter.api.BeforeEach
45

56
class $NAME$ViewModelTest : BasicTest() {
67

78
private lateinit var viewModel: $NAME$ViewModel
89

9-
fun buildViewModel(): $NAME$ViewModel {
10-
return $NAME$ViewModel()
11-
}
10+
@BeforeEach
11+
fun setUpViewModel() {
1212

13+
viewModel = $NAME$ViewModel()
14+
}
1315

1416
}

0 commit comments

Comments
 (0)