diff options
author | 2023-02-02 17:20:35 +0100 | |
---|---|---|
committer | 2023-02-02 17:20:35 +0100 | |
commit | f062947f68e79dc866fc0d8d1f9b8874fd00b51e (patch) | |
tree | 9719e020fd3a9c0fa5a3fe7877937a81dad45b35 /subprojects/store-query-viatra/src/test | |
parent | feat: track ModelQuery pending changes (diff) | |
download | refinery-f062947f68e79dc866fc0d8d1f9b8874fd00b51e.tar.gz refinery-f062947f68e79dc866fc0d8d1f9b8874fd00b51e.tar.zst refinery-f062947f68e79dc866fc0d8d1f9b8874fd00b51e.zip |
feat: track uncommitted Model changes
Diffstat (limited to 'subprojects/store-query-viatra/src/test')
2 files changed, 15 insertions, 15 deletions
diff --git a/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/QueryTest.java b/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/QueryTest.java index ba0abca0..6a37b54a 100644 --- a/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/QueryTest.java +++ b/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/QueryTest.java | |||
@@ -38,7 +38,7 @@ class QueryTest { | |||
38 | .queries(predicate) | 38 | .queries(predicate) |
39 | .build(); | 39 | .build(); |
40 | 40 | ||
41 | var model = store.createModel(); | 41 | var model = store.createEmptyModel(); |
42 | var personInterpretation = model.getInterpretation(person); | 42 | var personInterpretation = model.getInterpretation(person); |
43 | var assetInterpretation = model.getInterpretation(asset); | 43 | var assetInterpretation = model.getInterpretation(asset); |
44 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 44 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -79,7 +79,7 @@ class QueryTest { | |||
79 | .queries(predicate) | 79 | .queries(predicate) |
80 | .build(); | 80 | .build(); |
81 | 81 | ||
82 | var model = store.createModel(); | 82 | var model = store.createEmptyModel(); |
83 | var personInterpretation = model.getInterpretation(person); | 83 | var personInterpretation = model.getInterpretation(person); |
84 | var friendInterpretation = model.getInterpretation(friend); | 84 | var friendInterpretation = model.getInterpretation(friend); |
85 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 85 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -127,7 +127,7 @@ class QueryTest { | |||
127 | .queries(predicate) | 127 | .queries(predicate) |
128 | .build(); | 128 | .build(); |
129 | 129 | ||
130 | var model = store.createModel(); | 130 | var model = store.createEmptyModel(); |
131 | var personInterpretation = model.getInterpretation(person); | 131 | var personInterpretation = model.getInterpretation(person); |
132 | var friendInterpretation = model.getInterpretation(friend); | 132 | var friendInterpretation = model.getInterpretation(friend); |
133 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 133 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -181,7 +181,7 @@ class QueryTest { | |||
181 | .queries(predicate) | 181 | .queries(predicate) |
182 | .build(); | 182 | .build(); |
183 | 183 | ||
184 | var model = store.createModel(); | 184 | var model = store.createEmptyModel(); |
185 | var personInterpretation = model.getInterpretation(person); | 185 | var personInterpretation = model.getInterpretation(person); |
186 | var friendInterpretation = model.getInterpretation(friend); | 186 | var friendInterpretation = model.getInterpretation(friend); |
187 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 187 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -233,7 +233,7 @@ class QueryTest { | |||
233 | .queries(predicate) | 233 | .queries(predicate) |
234 | .build(); | 234 | .build(); |
235 | 235 | ||
236 | var model = store.createModel(); | 236 | var model = store.createEmptyModel(); |
237 | var personInterpretation = model.getInterpretation(person); | 237 | var personInterpretation = model.getInterpretation(person); |
238 | var animalInterpretation = model.getInterpretation(animal); | 238 | var animalInterpretation = model.getInterpretation(animal); |
239 | var friendInterpretation = model.getInterpretation(friend); | 239 | var friendInterpretation = model.getInterpretation(friend); |
@@ -278,7 +278,7 @@ class QueryTest { | |||
278 | .queries(predicate) | 278 | .queries(predicate) |
279 | .build(); | 279 | .build(); |
280 | 280 | ||
281 | var model = store.createModel(); | 281 | var model = store.createEmptyModel(); |
282 | var personInterpretation = model.getInterpretation(person); | 282 | var personInterpretation = model.getInterpretation(person); |
283 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 283 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
284 | var predicateResultSet = queryEngine.getResultSet(predicate); | 284 | var predicateResultSet = queryEngine.getResultSet(predicate); |
@@ -319,7 +319,7 @@ class QueryTest { | |||
319 | .queries(predicate) | 319 | .queries(predicate) |
320 | .build(); | 320 | .build(); |
321 | 321 | ||
322 | var model = store.createModel(); | 322 | var model = store.createEmptyModel(); |
323 | var personInterpretation = model.getInterpretation(person); | 323 | var personInterpretation = model.getInterpretation(person); |
324 | var friendInterpretation = model.getInterpretation(friend); | 324 | var friendInterpretation = model.getInterpretation(friend); |
325 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 325 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -372,7 +372,7 @@ class QueryTest { | |||
372 | .queries(predicate) | 372 | .queries(predicate) |
373 | .build(); | 373 | .build(); |
374 | 374 | ||
375 | var model = store.createModel(); | 375 | var model = store.createEmptyModel(); |
376 | var personInterpretation = model.getInterpretation(person); | 376 | var personInterpretation = model.getInterpretation(person); |
377 | var friendInterpretation = model.getInterpretation(friend); | 377 | var friendInterpretation = model.getInterpretation(friend); |
378 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 378 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -414,7 +414,7 @@ class QueryTest { | |||
414 | .queries(predicate) | 414 | .queries(predicate) |
415 | .build(); | 415 | .build(); |
416 | 416 | ||
417 | var model = store.createModel(); | 417 | var model = store.createEmptyModel(); |
418 | var personInterpretation = model.getInterpretation(person); | 418 | var personInterpretation = model.getInterpretation(person); |
419 | var friendInterpretation = model.getInterpretation(friend); | 419 | var friendInterpretation = model.getInterpretation(friend); |
420 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 420 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -467,7 +467,7 @@ class QueryTest { | |||
467 | .queries(predicate) | 467 | .queries(predicate) |
468 | .build(); | 468 | .build(); |
469 | 469 | ||
470 | var model = store.createModel(); | 470 | var model = store.createEmptyModel(); |
471 | var personInterpretation = model.getInterpretation(person); | 471 | var personInterpretation = model.getInterpretation(person); |
472 | var friendInterpretation = model.getInterpretation(friend); | 472 | var friendInterpretation = model.getInterpretation(friend); |
473 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 473 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -509,7 +509,7 @@ class QueryTest { | |||
509 | .queries(predicate) | 509 | .queries(predicate) |
510 | .build(); | 510 | .build(); |
511 | 511 | ||
512 | var model = store.createModel(); | 512 | var model = store.createEmptyModel(); |
513 | var personInterpretation = model.getInterpretation(person); | 513 | var personInterpretation = model.getInterpretation(person); |
514 | var friendInterpretation = model.getInterpretation(friend); | 514 | var friendInterpretation = model.getInterpretation(friend); |
515 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 515 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -559,7 +559,7 @@ class QueryTest { | |||
559 | .queries(predicate) | 559 | .queries(predicate) |
560 | .build(); | 560 | .build(); |
561 | 561 | ||
562 | var model = store.createModel(); | 562 | var model = store.createEmptyModel(); |
563 | var personInterpretation = model.getInterpretation(person); | 563 | var personInterpretation = model.getInterpretation(person); |
564 | var friendInterpretation = model.getInterpretation(friend); | 564 | var friendInterpretation = model.getInterpretation(friend); |
565 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 565 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -600,7 +600,7 @@ class QueryTest { | |||
600 | .queries(predicate) | 600 | .queries(predicate) |
601 | .build(); | 601 | .build(); |
602 | 602 | ||
603 | var model = store.createModel(); | 603 | var model = store.createEmptyModel(); |
604 | var personInterpretation = model.getInterpretation(person); | 604 | var personInterpretation = model.getInterpretation(person); |
605 | var friendInterpretation = model.getInterpretation(friend); | 605 | var friendInterpretation = model.getInterpretation(friend); |
606 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 606 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
@@ -652,7 +652,7 @@ class QueryTest { | |||
652 | .queries(predicate) | 652 | .queries(predicate) |
653 | .build(); | 653 | .build(); |
654 | 654 | ||
655 | var model = store.createModel(); | 655 | var model = store.createEmptyModel(); |
656 | var personInterpretation = model.getInterpretation(person); | 656 | var personInterpretation = model.getInterpretation(person); |
657 | var friendInterpretation = model.getInterpretation(friend); | 657 | var friendInterpretation = model.getInterpretation(friend); |
658 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 658 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |
diff --git a/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/QueryTransactionTest.java b/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/QueryTransactionTest.java index ec2e7647..98995339 100644 --- a/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/QueryTransactionTest.java +++ b/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/QueryTransactionTest.java | |||
@@ -31,7 +31,7 @@ class QueryTransactionTest { | |||
31 | .queries(predicate) | 31 | .queries(predicate) |
32 | .build(); | 32 | .build(); |
33 | 33 | ||
34 | var model = store.createModel(); | 34 | var model = store.createEmptyModel(); |
35 | var personInterpretation = model.getInterpretation(person); | 35 | var personInterpretation = model.getInterpretation(person); |
36 | var assetInterpretation = model.getInterpretation(asset); | 36 | var assetInterpretation = model.getInterpretation(asset); |
37 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); | 37 | var queryEngine = model.getAdapter(ModelQuery.ADAPTER); |