File tree Expand file tree Collapse file tree 2 files changed +0
-27
lines changed
workflow-ui/core-common/src
main/java/com/squareup/workflow1/ui
test/java/com/squareup/workflow1/ui Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,4 @@ private class TextControllerImpl(initialValue: String) : TextController {
87
87
set(value) {
88
88
_textValue .value = value
89
89
}
90
-
91
- override fun equals (other : Any? ): Boolean {
92
- if (this == = other) return true
93
- if (javaClass != other?.javaClass) return false
94
-
95
- other as TextController
96
-
97
- return textValue == other.textValue
98
- }
99
-
100
- override fun hashCode (): Int {
101
- return textValue.hashCode()
102
- }
103
90
}
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import app.cash.turbine.test
4
4
import com.google.common.truth.Truth.assertThat
5
5
import kotlinx.coroutines.test.runTest
6
6
import org.junit.Test
7
- import kotlin.test.assertEquals
8
- import kotlin.test.assertNotEquals
9
7
10
8
@OptIn(WorkflowUiExperimentalApi ::class )
11
9
internal class TextControllerTest {
@@ -36,16 +34,4 @@ internal class TextControllerTest {
36
34
expectNoEvents()
37
35
}
38
36
}
39
-
40
- @Test fun `equals works with the same value` () {
41
- val controller1 = TextController (initialValue = " apple" )
42
- val controller2 = TextController (initialValue = " apple" )
43
- assertEquals(controller1, controller2)
44
- }
45
-
46
- @Test fun `equals works with different values` () {
47
- val controller1 = TextController (initialValue = " apple" )
48
- val controller2 = TextController (initialValue = " orange" )
49
- assertNotEquals(controller1, controller2)
50
- }
51
37
}
You can’t perform that action at this time.
0 commit comments