use of io.aklivity.zilla.runtime.engine.config.BindingConfig in project zilla by aklivity.
the class NamespaceConfigAdapterTest method shouldWriteNamespaceWithBinding.
@Test
public void shouldWriteNamespaceWithBinding() {
BindingConfig binding = new BindingConfig(null, "test", "test", SERVER, null, emptyList(), null);
NamespaceConfig namespace = new NamespaceConfig("test", emptyList(), emptyList(), singletonList(binding));
String text = jsonb.toJson(namespace);
assertThat(text, not(nullValue()));
assertThat(text, equalTo("{\"name\":\"test\",\"bindings\":{\"test\":{\"type\":\"test\",\"kind\":\"server\"}}}"));
}
Aggregations