diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-10-02 20:51:58 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-10-02 20:51:58 +0200 |
commit | 9b8236dd7499510577c32f0d87dfd52d34f6b023 (patch) | |
tree | d9e35fa5692e3b08d0bcf1fbbd538c65ed4b58e1 /store/src/test/java/org | |
parent | build: simplify Eclipse project generation (diff) | |
download | refinery-9b8236dd7499510577c32f0d87dfd52d34f6b023.tar.gz refinery-9b8236dd7499510577c32f0d87dfd52d34f6b023.tar.zst refinery-9b8236dd7499510577c32f0d87dfd52d34f6b023.zip |
chore: fix Java 17 Sonar warnings
Had to disable code coverage measurement in the Quality Gate, we should
switch it on again once we have a complete test suite.
Diffstat (limited to 'store/src/test/java/org')
-rw-r--r-- | store/src/test/java/org/eclipse/viatra/solver/data/query/test/QueryTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/store/src/test/java/org/eclipse/viatra/solver/data/query/test/QueryTest.java b/store/src/test/java/org/eclipse/viatra/solver/data/query/test/QueryTest.java index 182f6c94..1500f77c 100644 --- a/store/src/test/java/org/eclipse/viatra/solver/data/query/test/QueryTest.java +++ b/store/src/test/java/org/eclipse/viatra/solver/data/query/test/QueryTest.java | |||
@@ -52,7 +52,7 @@ class QueryTest { | |||
52 | void modelBuildingTest() { | 52 | void modelBuildingTest() { |
53 | Relation<Boolean> person = new Relation<>("Person", 1, false); | 53 | Relation<Boolean> person = new Relation<>("Person", 1, false); |
54 | Relation<Integer> age = new Relation<Integer>("age", 1, null); | 54 | Relation<Integer> age = new Relation<Integer>("age", 1, null); |
55 | Relation<TruthValue> friend = new Relation<>("friend", 2, TruthValue.False); | 55 | Relation<TruthValue> friend = new Relation<>("friend", 2, TruthValue.FALSE); |
56 | 56 | ||
57 | ModelStore store = new ModelStoreImpl(Set.of(person, age, friend)); | 57 | ModelStore store = new ModelStoreImpl(Set.of(person, age, friend)); |
58 | Model model = store.createModel(); | 58 | Model model = store.createModel(); |
@@ -61,8 +61,8 @@ class QueryTest { | |||
61 | model.put(person, Tuple.of(1), true); | 61 | model.put(person, Tuple.of(1), true); |
62 | model.put(age, Tuple.of(0), 3); | 62 | model.put(age, Tuple.of(0), 3); |
63 | model.put(age, Tuple.of(1), 1); | 63 | model.put(age, Tuple.of(1), 1); |
64 | model.put(friend, Tuple.of(0, 1), TruthValue.True); | 64 | model.put(friend, Tuple.of(0, 1), TruthValue.TRUE); |
65 | model.put(friend, Tuple.of(1, 0), TruthValue.Unknown); | 65 | model.put(friend, Tuple.of(1, 0), TruthValue.UNKNOWN); |
66 | 66 | ||
67 | // Sanity check | 67 | // Sanity check |
68 | assertTrue(model.get(person, Tuple.of(0))); | 68 | assertTrue(model.get(person, Tuple.of(0))); |