use of com.redhat.cloud.policies.app.model.Policy in project policies-ui-backend by RedHatInsights.
the class FullTriggerHandlingTest method testConditionUpdate1.
@Test
void testConditionUpdate1() {
Policy p = createPolicy();
FullTrigger ft = new FullTrigger(p);
p.conditions = "blabla";
ft.updateFromPolicy(p);
assertEquals(1, ft.conditions.size());
assertEquals("blabla", ft.conditions.get(0).expression);
}
Aggregations