@@ -67,7 +67,7 @@ class LocalEntitiesFilterStrategyTest {
67
67
}
68
68
69
69
@Test
70
- fun `returns matching nodes when id = value` () {
70
+ fun `returns matching nodes in the optimized way when id = value` () {
71
71
entitiesRepository.save(" things" , Entity .New (" thing1" , " Thing 1" ))
72
72
entitiesRepository.save(" things" , Entity .New (" thing2" , " Thing 2" ))
73
73
@@ -102,7 +102,7 @@ class LocalEntitiesFilterStrategyTest {
102
102
}
103
103
104
104
@Test
105
- fun `returns matching nodes when id != value` () {
105
+ fun `returns matching nodes in the optimized way when id != value` () {
106
106
entitiesRepository.save(" things" , Entity .New (" thing1" , " Thing 1" ))
107
107
entitiesRepository.save(" things" , Entity .New (" thing2" , " Thing 2" ))
108
108
@@ -174,7 +174,7 @@ class LocalEntitiesFilterStrategyTest {
174
174
}
175
175
176
176
@Test
177
- fun `returns empty nodeset when no entity matches name` () {
177
+ fun `returns empty nodeset in the optimized way when no entity matches name` () {
178
178
entitiesRepository.addList(" things" )
179
179
180
180
val scenario = Scenario .init (
@@ -208,7 +208,7 @@ class LocalEntitiesFilterStrategyTest {
208
208
}
209
209
210
210
@Test
211
- fun `works correctly with non eq name expressions` () {
211
+ fun `works correctly but not in the optimized way with non eq name expressions` () {
212
212
entitiesRepository.save(" things" , Entity .New (" thing" , " Thing" ))
213
213
214
214
val scenario = Scenario .init (
@@ -238,6 +238,7 @@ class LocalEntitiesFilterStrategyTest {
238
238
)
239
239
240
240
assertThat(scenario.answerOf<StringData >(" /data/calculate" ).value, equalTo(" Thing" ))
241
+ assertThat(fallthroughFilterStrategy.fellThrough, equalTo(true ))
241
242
}
242
243
243
244
@Test
@@ -313,7 +314,7 @@ class LocalEntitiesFilterStrategyTest {
313
314
}
314
315
315
316
@Test
316
- fun `returns matching nodes when entity matches property` () {
317
+ fun `works correctly in the optimized way with property = expressions ` () {
317
318
entitiesRepository.save(
318
319
" things" ,
319
320
Entity .New (
@@ -410,7 +411,7 @@ class LocalEntitiesFilterStrategyTest {
410
411
}
411
412
412
413
@Test
413
- fun `works correctly with label = expressions` () {
414
+ fun `works correctly in the optimized way with label = expressions` () {
414
415
entitiesRepository.save(" things" , Entity .New (" thing1" , " Thing1" ))
415
416
416
417
val scenario = Scenario .init (
@@ -443,10 +444,11 @@ class LocalEntitiesFilterStrategyTest {
443
444
444
445
val choices = scenario.choicesOf(" /data/question" ).map { it.value }
445
446
assertThat(choices, containsInAnyOrder(" thing1" ))
447
+ assertThat(fallthroughFilterStrategy.fellThrough, equalTo(false ))
446
448
}
447
449
448
450
@Test
449
- fun `works correctly with version = expressions` () {
451
+ fun `works correctly in the optimized way with version = expressions` () {
450
452
entitiesRepository.save(" things" , Entity .New (" thing1" , " Thing1" , version = 2 ))
451
453
452
454
val scenario = Scenario .init (
@@ -479,10 +481,11 @@ class LocalEntitiesFilterStrategyTest {
479
481
480
482
val choices = scenario.choicesOf(" /data/question" ).map { it.value }
481
483
assertThat(choices, containsInAnyOrder(" thing1" ))
484
+ assertThat(fallthroughFilterStrategy.fellThrough, equalTo(false ))
482
485
}
483
486
484
487
@Test
485
- fun `works correctly with complex expressions` () {
488
+ fun `works correctly in the optimized way with combined eq expressions` () {
486
489
entitiesRepository.save(
487
490
" things" ,
488
491
Entity .New (
0 commit comments