use of org.jboss.tools.openshift.internal.ui.property.build.WebHooksPropertySource in project jbosstools-openshift by jbosstools.
the class WebhooksPropertySourceTest method test.
@Test
public void test() {
List<IBuildTrigger> triggers = givenBuildTriggers();
WebHooksPropertySource source = new WebHooksPropertySource(triggers);
IPropertyDescriptor[] propertyDescriptors = source.getPropertyDescriptors();
assertEquals("Exp. descripter for each webhook only", 2, propertyDescriptors.length);
assertEquals("Generic", propertyDescriptors[0].getId());
assertEquals("GitHub", propertyDescriptors[1].getId());
}
Aggregations