@@ -3,15 +3,8 @@ package org.rekotlinrouter
3
3
4
4
import org.assertj.core.api.Assertions.assertThat
5
5
import org.junit.Test
6
- import tw.geothings.rekotlin.StateType
7
6
8
7
9
- /* *
10
- * Created by Mohanraj Karatadipalayam on 27/09/17.
11
- */
12
-
13
- internal class AppState : StateType
14
-
15
8
internal class ReKotlinRouterUnitTests {
16
9
17
10
val mainActivityIdentifier = " MainActivity"
@@ -32,8 +25,8 @@ internal class ReKotlinRouterUnitTests {
32
25
val routingActions = Router .routingActionsForTransitionFrom(oldRoute, newRoute)
33
26
34
27
// Then
35
- var action1Correct: Boolean = false
36
- var action2Correct: Boolean = false
28
+ var action1Correct = false
29
+ var action2Correct = false
37
30
38
31
routingActions.forEach { routingAction ->
39
32
when (routingAction) {
@@ -66,8 +59,8 @@ internal class ReKotlinRouterUnitTests {
66
59
67
60
// Then
68
61
var controllerIndex: Int = - 1
69
- var toBeReplaced: RouteElementIdentifier = " "
70
- var new: RouteElementIdentifier = " "
62
+ var toBeReplaced = " "
63
+ var new = " "
71
64
routingActions.forEach { routingAction ->
72
65
73
66
when (routingAction) {
@@ -95,8 +88,8 @@ internal class ReKotlinRouterUnitTests {
95
88
val routingActions = Router .routingActionsForTransitionFrom(oldRoute, newRoute)
96
89
97
90
// Then
98
- var action1Correct: Boolean = false
99
- var action2Correct: Boolean = false
91
+ var action1Correct = false
92
+ var action2Correct = false
100
93
101
94
routingActions.forEach { routingAction ->
102
95
when (routingAction) {
@@ -135,8 +128,8 @@ internal class ReKotlinRouterUnitTests {
135
128
136
129
// Then
137
130
var controllerIndex: Int = - 1
138
- var toBeReplaced: RouteElementIdentifier = " "
139
- var new: RouteElementIdentifier = " "
131
+ var toBeReplaced = " "
132
+ var new = " "
140
133
routingActions.forEach { routingAction ->
141
134
142
135
when (routingAction) {
@@ -164,8 +157,8 @@ internal class ReKotlinRouterUnitTests {
164
157
val routingActions = Router .routingActionsForTransitionFrom(oldRoute, newRoute)
165
158
166
159
// Then
167
- var action1Correct: Boolean = false
168
- var action2Correct: Boolean = false
160
+ var action1Correct = false
161
+ var action2Correct = false
169
162
170
163
routingActions.forEach { routingAction ->
171
164
when (routingAction) {
@@ -234,8 +227,8 @@ internal class ReKotlinRouterUnitTests {
234
227
val routingActions = Router .routingActionsForTransitionFrom(oldRoute, newRoute)
235
228
236
229
// Then
237
- var action1Correct: Boolean = false
238
- var action2Correct: Boolean = false
230
+ var action1Correct = false
231
+ var action2Correct = false
239
232
routingActions.forEach { routingAction ->
240
233
when (routingAction) {
241
234
is pop -> {
@@ -265,8 +258,8 @@ internal class ReKotlinRouterUnitTests {
265
258
val routingActions = Router .routingActionsForTransitionFrom(oldRoute, newRoute)
266
259
267
260
// Then
268
- var action1Correct: Boolean = false
269
- var action2Correct: Boolean = false
261
+ var action1Correct = false
262
+ var action2Correct = false
270
263
routingActions.forEach { routingAction ->
271
264
when (routingAction) {
272
265
is push -> {
0 commit comments