Fix tests
This commit is contained in:
parent
6d8c06f26d
commit
ac4d8efe3e
@ -2,8 +2,7 @@ package io.gitlab.jfronny.respackopts;
|
||||
|
||||
import io.gitlab.jfronny.gson.reflect.*;
|
||||
import io.gitlab.jfronny.muscript.*;
|
||||
import io.gitlab.jfronny.muscript.compiler.*;
|
||||
import io.gitlab.jfronny.muscript.optic.*;
|
||||
import io.gitlab.jfronny.muscript.compiler.expr.*;
|
||||
import io.gitlab.jfronny.respackopts.gson.*;
|
||||
import io.gitlab.jfronny.respackopts.model.*;
|
||||
import io.gitlab.jfronny.respackopts.util.*;
|
||||
@ -104,7 +103,7 @@ class ConditionJsonSerializationTest {
|
||||
}
|
||||
|
||||
private boolean evaluateCondition(String json) {
|
||||
Expr.BoolExpr condition = AttachmentHolder.attach(7, () -> GSON.fromJson(json, Expr.BoolExpr.class));
|
||||
BoolExpr condition = AttachmentHolder.attach(7, () -> GSON.fromJson(json, BoolExpr.class));
|
||||
return condition.get(MetaCache.hydrateParameter(new ExpressionParameter()));
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
package io.gitlab.jfronny.respackopts;
|
||||
|
||||
import io.gitlab.jfronny.gson.*;
|
||||
import io.gitlab.jfronny.muscript.compiler.expr.*;
|
||||
import io.gitlab.jfronny.respackopts.gson.*;
|
||||
import io.gitlab.jfronny.respackopts.gson.entry.*;
|
||||
import io.gitlab.jfronny.respackopts.model.tree.*;
|
||||
@ -12,8 +13,8 @@ public class TemplateTree {
|
||||
.registerTypeAdapter(ConfigBooleanEntry.class, new BooleanEntrySerializer())
|
||||
.registerTypeAdapter(ConfigBranch.class, new ConfigBranchSerializer())
|
||||
.registerTypeAdapter(Expr.class, new ExprDeserializer())
|
||||
.registerTypeAdapter(Expr.StringExpr.class, new StringExprDeserializer())
|
||||
.registerTypeAdapter(Expr.BoolExpr.class, new BoolExprDeserializer())
|
||||
.registerTypeAdapter(StringExpr.class, new StringExprDeserializer())
|
||||
.registerTypeAdapter(BoolExpr.class, new BoolExprDeserializer())
|
||||
.setLenient()
|
||||
.setPrettyPrinting()
|
||||
.create();
|
||||
|
Loading…
Reference in New Issue
Block a user