use of org.apache.servicecomb.config.priority.PriorityPropertyFactory in project java-chassis by ServiceComb.
the class TestInspectorImpl method priorityProperties.
@Test
public void priorityProperties() {
PriorityPropertyFactory propertyFactory = new PriorityPropertyFactory();
inspector.setPropertyFactory(propertyFactory);
propertyFactory.getOrCreate(int.class, 0, 0, "high", "low");
List<PriorityPropertyView> views = inspector.priorityProperties();
Assert.assertEquals(1, views.size());
Assert.assertThat(views.get(0).getDynamicProperties().stream().map(DynamicPropertyView::getKey).collect(Collectors.toList()), Matchers.contains("high", "low"));
}
use of org.apache.servicecomb.config.priority.PriorityPropertyFactory in project incubator-servicecomb-java-chassis by apache.
the class TestInspectorImpl method priorityProperties.
@Test
public void priorityProperties() {
PriorityPropertyFactory propertyFactory = new PriorityPropertyFactory();
inspector.setPropertyFactory(propertyFactory);
propertyFactory.getOrCreate(int.class, 0, 0, "high", "low");
List<PriorityPropertyView> views = inspector.priorityProperties();
Assert.assertEquals(1, views.size());
Assert.assertThat(views.get(0).getDynamicProperties().stream().map(DynamicPropertyView::getKey).collect(Collectors.toList()), Matchers.contains("high", "low"));
}
Aggregations