Search in sources :

Example 1 with StandardBuildFilterData

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());
}
Also used : StandardBuildFilterData(net.nemerosa.ontrack.model.structure.StandardBuildFilterData) Test(org.junit.Test)

Aggregations

StandardBuildFilterData (net.nemerosa.ontrack.model.structure.StandardBuildFilterData)1 Test (org.junit.Test)1