use of org.knime.core.data.DataValue.UtilityFactory in project knime-core by knime.
the class ExtensibleUtilityFactoryTest method testNoRegisteredRenderers.
/**
* Tests basic functionality of the extension point.
*/
@Test
public void testNoRegisteredRenderers() {
ExtensibleUtilityFactory utilityFactory = Test2DataValue.UTILITY;
assertThat("Wrong utility factory retrieved via data type", DataType.getUtilityFor(Test2DataValue.class), is((UtilityFactory) utilityFactory));
Collection<DataValueRendererFactory> availableRenderers = utilityFactory.getAvailableRenderers();
assertThat("Wrong number of available renderers", availableRenderers.size(), is(0));
assertThat("Unexpected preferred renderer", utilityFactory.getPreferredRenderer(), is(IsNull.nullValue()));
}
Aggregations