File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
socha-sdk/src/test/sc/shared Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,20 @@ class SlotDescriptorTest : StringSpec({
12
12
autodetectAnnotations(true)
13
13
}
14
14
val descriptors = listOf(
15
- SlotDescriptor (),
16
- SlotDescriptor ("Display Name "),
17
- SlotDescriptor ("name", false),
18
- SlotDescriptor ("another name", true, false)
19
- )
20
- val XMLs = listOf(
15
+ SlotDescriptor () to
21
16
"""<slotDescriptor displayName="Unknown " canTimeout="true" shouldBePaused="true"/>""",
17
+
18
+ SlotDescriptor ("Display Name ") to
22
19
"""<slotDescriptor displayName="Display Name " canTimeout="true" shouldBePaused="true"/>""",
20
+
21
+ SlotDescriptor ("name", false) to
23
22
"""<slotDescriptor displayName="name" canTimeout="false" shouldBePaused="true"/>""",
23
+
24
+ SlotDescriptor ("another name", true, false) to
24
25
"""<slotDescriptor displayName="another name" canTimeout="true" shouldBePaused="false"/>"""
25
26
)
26
27
27
- ( descriptors zip XMLs ) .forAll {
28
+ descriptors.forAll {
28
29
xstream.toXML(it.first) shouldBe it.second
29
30
xstream.fromXML(it.second).toString() shouldBe it.first.toString()
30
31
}
You can’t perform that action at this time.
0 commit comments