use of net.nemerosa.ontrack.model.structure.StandardBuildFilterData in project ontrack by nemerosa.
the class BuildFilterServiceImplTest method standardFilter.
@Test
public void standardFilter() {
BuildFilterProviderData<?> providerData = service.standardFilterProviderData(20).withWithPromotionLevel("BRONZE").withWithProperty("my.property.MyPropertyType").withWithPropertyValue("Value").build();
Object filter = providerData.getData();
assertTrue(filter instanceof StandardBuildFilterData);
StandardBuildFilterData std = (StandardBuildFilterData) filter;
assertEquals(20, std.getCount());
assertEquals("BRONZE", std.getWithPromotionLevel());
assertEquals("my.property.MyPropertyType", std.getWithProperty());
assertEquals("Value", std.getWithPropertyValue());
}
Aggregations