| --- | --- |
| Bugzilla Link | 516188 |
| Status | NEW |
| Importance | P3 normal |
| Reported | May 04, 2017 11:20 EDT |
| Modified | Feb 08, 2018 08:02 EDT |
| Version | 1.6.0 |
| Reporter | Gabor Bergmann |
Description
Currently, there is no easy way to override the default BaseIndexOptions in the query test framework without rolling your own resources and scope.
Take a test that should ideally look like this:\
\
val snapshot = "uri..."\
\
@Test\
def void stateToState1Ideal() {\
ViatraQueryTest.test(StateToState1QuerySpecification.instance)
.with(new BaseIndexOptions().withDanglingFreeAssumption(false))
.with(snapshot)
.withAll
.assertEquals\
}\
\
Or alternatively, if the scope is constructed when the snapshot is passed, and it is important to have the BIO ready at that time:
| --- | --- | | Bugzilla Link | 516188 | | Status | NEW | | Importance | P3 normal | | Reported | May 04, 2017 11:20 EDT | | Modified | Feb 08, 2018 08:02 EDT | | Version | 1.6.0 | | Reporter | Gabor Bergmann |
Description
Currently, there is no easy way to override the default BaseIndexOptions in the query test framework without rolling your own resources and scope.
Take a test that should ideally look like this:\ \ val snapshot = "uri..."\ \ @Test\ def void stateToState1Ideal() {\ ViatraQueryTest.test(StateToState1QuerySpecification.instance) .with(new BaseIndexOptions().withDanglingFreeAssumption(false)) .with(snapshot) .withAll .assertEquals\ }\ \ Or alternatively, if the scope is constructed when the snapshot is passed, and it is important to have the BIO ready at that time:
Now this test has to be written like this: