@@ -31,20 +31,20 @@ import kotlin.test.fail
31
31
*/
32
32
internal class ChainedWorkflowInterceptorTest {
33
33
34
- @Test fun `chained() returns Noop when list is empty` () {
34
+ @Test fun `chained returns Noop when list is empty` () {
35
35
val list = emptyList<WorkflowInterceptor >()
36
36
val chained = list.chained()
37
37
assertSame(NoopWorkflowInterceptor , chained)
38
38
}
39
39
40
- @Test fun `chained() returns single element when list size is 1` () {
40
+ @Test fun `chained returns single element when list size is 1` () {
41
41
val interceptor = object : WorkflowInterceptor {}
42
42
val list = listOf (interceptor)
43
43
val chained = list.chained()
44
44
assertSame(interceptor, chained)
45
45
}
46
46
47
- @Test fun `chained() returns chained element when list size is 2` () {
47
+ @Test fun `chained returns chained element when list size is 2` () {
48
48
val list = listOf (
49
49
object : WorkflowInterceptor {},
50
50
object : WorkflowInterceptor {}
@@ -54,7 +54,7 @@ internal class ChainedWorkflowInterceptorTest {
54
54
}
55
55
56
56
@OptIn(ExperimentalCoroutinesApi ::class )
57
- @Test fun `chains calls to onInstanceStarted() in left-to-right order` () {
57
+ @Test fun `chains calls to onInstanceStarted in left-to-right order` () {
58
58
val events = mutableListOf<String >()
59
59
val interceptor1 = object : WorkflowInterceptor {
60
60
override fun onSessionStarted (
@@ -87,7 +87,7 @@ internal class ChainedWorkflowInterceptorTest {
87
87
assertEquals(listOf (" started1" , " started2" , " cancelled1" , " cancelled2" ), events)
88
88
}
89
89
90
- @Test fun `chains calls to onInitialState() in left-to-right order` () {
90
+ @Test fun `chains calls to onInitialState in left-to-right order` () {
91
91
val interceptor1 = object : WorkflowInterceptor {
92
92
override fun <P , S > onInitialState (
93
93
props : P ,
@@ -128,7 +128,7 @@ internal class ChainedWorkflowInterceptorTest {
128
128
assertEquals(" r1: r2: (props2: props1: props|snap2: snap1: snap)" , finalState)
129
129
}
130
130
131
- @Test fun `chains calls to onPropsChanged() in left-to-right order` () {
131
+ @Test fun `chains calls to onPropsChanged in left-to-right order` () {
132
132
val interceptor1 = object : WorkflowInterceptor {
133
133
override fun <P , S > onPropsChanged (
134
134
old : P ,
@@ -173,7 +173,7 @@ internal class ChainedWorkflowInterceptorTest {
173
173
assertEquals(" s1: s2: (old2: old1: old|new2: new1: new|state2: state1: state)" , finalState)
174
174
}
175
175
176
- @Test fun `chains calls to onRender() in left-to-right order` () {
176
+ @Test fun `chains calls to onRender in left-to-right order` () {
177
177
val interceptor1 = object : WorkflowInterceptor {
178
178
override fun <P , S , O , R > onRender (
179
179
renderProps : P ,
@@ -269,7 +269,7 @@ internal class ChainedWorkflowInterceptorTest {
269
269
assertEquals(" START uno, START dos, END dos, END uno" , transcript.joinToString(" , " ))
270
270
}
271
271
272
- @Test fun `chains calls to onSnapshotState() in left-to-right order` () {
272
+ @Test fun `chains calls to onSnapshotState in left-to-right order` () {
273
273
val interceptor1 = object : WorkflowInterceptor {
274
274
override fun <S > onSnapshotState (
275
275
state : S ,
0 commit comments