use of io.aklivity.zilla.runtime.engine.internal.config.ConditionConfigAdapterTest.TestConditionConfig in project zilla by aklivity.
the class RouteConfigAdapterTest method shouldWriteRouteWhenMatch.
@Test
public void shouldWriteRouteWhenMatch() {
RouteConfig route = new RouteConfig("test", singletonList(new TestConditionConfig("test")));
String text = jsonb.toJson(route);
assertThat(text, not(nullValue()));
assertThat(text, equalTo("{\"exit\":\"test\",\"when\":[{\"match\":\"test\"}]}"));
}
Aggregations