use of net.morimekta.providence.util.SimpleTypeRegistry in project providence by morimekta.
the class ProvidenceConfigUtilTest method setUp.
@Before
public void setUp() throws IOException {
declaration = Declaration.withDeclConst(ConstType.builder().setName("Name").setType("i32").setValue("44").build());
SimpleTypeRegistry registry = new SimpleTypeRegistry();
registry.registerRecursively(Service.kDescriptor);
copyResourceTo("/net/morimekta/providence/config/files/base_service.cfg", tmp.getRoot());
copyResourceTo("/net/morimekta/providence/config/files/stage_db.cfg", tmp.getRoot());
File cfg = copyResourceTo("/net/morimekta/providence/config/files/stage.cfg", tmp.getRoot());
service = new ProvidenceConfig(registry).getConfig(cfg);
}
use of net.morimekta.providence.util.SimpleTypeRegistry in project providence by morimekta.
the class ProvidenceConfigTest method setUp.
@Before
public void setUp() throws IOException {
registry = new SimpleTypeRegistry();
registry.registerRecursively(Service.kDescriptor);
registry.registerRecursively(Value.kDescriptor);
registry.registerRecursively(RefMerge.kDescriptor);
watcher = new FileWatcher();
}
use of net.morimekta.providence.util.SimpleTypeRegistry in project providence by morimekta.
the class ConstParserTest method setUp.
@Before
public void setUp() {
registry = new SimpleTypeRegistry();
registry.registerRecursively(Operation.kDescriptor);
registry.registerRecursively(Containers.kDescriptor);
}
Aggregations