Skip to content

Commit 9a4a919

Browse files
committed
Updated for ReKotlin 1.0.0
1 parent f6b2601 commit 9a4a919

File tree

1 file changed

+14
-21
lines changed

1 file changed

+14
-21
lines changed

rekotlin-router/src/test/java/org/rekotlinrouter/ReKotlinRouterUnitTests.kt

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,8 @@ package org.rekotlinrouter
33

44
import org.assertj.core.api.Assertions.assertThat
55
import org.junit.Test
6-
import org.rekotlin.StateType
76

87

9-
/**
10-
* Created by Mohanraj Karatadipalayam on 27/09/17.
11-
*/
12-
13-
internal class AppState: StateType
14-
158
internal class ReKotlinRouterUnitTests {
169

1710
val mainActivityIdentifier = "MainActivity"
@@ -32,8 +25,8 @@ internal class ReKotlinRouterUnitTests {
3225
val routingActions = Router.routingActionsForTransitionFrom(oldRoute, newRoute)
3326

3427
// Then
35-
var action1Correct: Boolean = false
36-
var action2Correct: Boolean = false
28+
var action1Correct = false
29+
var action2Correct = false
3730

3831
routingActions.forEach { routingAction ->
3932
when(routingAction) {
@@ -66,8 +59,8 @@ internal class ReKotlinRouterUnitTests {
6659

6760
// Then
6861
var controllerIndex: Int = -1
69-
var toBeReplaced: RouteElementIdentifier=""
70-
var new: RouteElementIdentifier=""
62+
var toBeReplaced = ""
63+
var new = ""
7164
routingActions.forEach { routingAction ->
7265

7366
when (routingAction) {
@@ -95,8 +88,8 @@ internal class ReKotlinRouterUnitTests {
9588
val routingActions = Router.routingActionsForTransitionFrom(oldRoute, newRoute)
9689

9790
// Then
98-
var action1Correct: Boolean = false
99-
var action2Correct: Boolean = false
91+
var action1Correct = false
92+
var action2Correct = false
10093

10194
routingActions.forEach { routingAction ->
10295
when(routingAction) {
@@ -135,8 +128,8 @@ internal class ReKotlinRouterUnitTests {
135128

136129
// Then
137130
var controllerIndex: Int = -1
138-
var toBeReplaced: RouteElementIdentifier=""
139-
var new: RouteElementIdentifier=""
131+
var toBeReplaced = ""
132+
var new = ""
140133
routingActions.forEach { routingAction ->
141134

142135
when (routingAction) {
@@ -164,8 +157,8 @@ internal class ReKotlinRouterUnitTests {
164157
val routingActions = Router.routingActionsForTransitionFrom(oldRoute, newRoute)
165158

166159
// Then
167-
var action1Correct: Boolean = false
168-
var action2Correct: Boolean = false
160+
var action1Correct = false
161+
var action2Correct = false
169162

170163
routingActions.forEach { routingAction ->
171164
when(routingAction) {
@@ -234,8 +227,8 @@ internal class ReKotlinRouterUnitTests {
234227
val routingActions = Router.routingActionsForTransitionFrom(oldRoute, newRoute)
235228

236229
// Then
237-
var action1Correct: Boolean = false
238-
var action2Correct: Boolean = false
230+
var action1Correct = false
231+
var action2Correct = false
239232
routingActions.forEach { routingAction ->
240233
when(routingAction) {
241234
is pop -> {
@@ -265,8 +258,8 @@ internal class ReKotlinRouterUnitTests {
265258
val routingActions = Router.routingActionsForTransitionFrom(oldRoute, newRoute)
266259

267260
// Then
268-
var action1Correct: Boolean = false
269-
var action2Correct: Boolean = false
261+
var action1Correct = false
262+
var action2Correct = false
270263
routingActions.forEach { routingAction ->
271264
when(routingAction) {
272265
is push -> {

0 commit comments

Comments
 (0)