use of org.kie.workbench.common.forms.dynamic.model.config.SelectorData in project kie-wb-common by kiegroup.
the class CalledElementFormProviderTest method getSelectorDataTest.
@Test
public void getSelectorDataTest() {
SelectorData selectorData = calledElementFormProvider.getSelectorData(context);
assertEquals(selectorData.getValues().size(), 2);
}
use of org.kie.workbench.common.forms.dynamic.model.config.SelectorData in project kie-wb-common by kiegroup.
the class ProcessVariableProviderTest method testGetSelectorDataWithValues.
@Test
public void testGetSelectorDataWithValues() {
List<Element> nodes = mockModes();
when(graph.nodes()).thenReturn(nodes);
when(graph.getNode(eq(ROOT_NODE_UUID))).thenReturn((Node) nodes.get(0));
SelectorData selectorData = provider.getSelectorData(renderingContext);
Map values = selectorData.getValues();
verifyValues(values);
}
use of org.kie.workbench.common.forms.dynamic.model.config.SelectorData in project kie-wb-common by kiegroup.
the class AbstractProcessFilteredNodeProviderBaseTest method testGetSelectorDataWithValues.
@Test
public void testGetSelectorDataWithValues() {
List<Element> nodes = mockModes();
when(graph.nodes()).thenReturn(nodes);
SelectorData selectorData = provider.getSelectorData(renderingContext);
Map values = selectorData.getValues();
assertEquals(nodes.size(), values.size());
verifyValues(values);
}
use of org.kie.workbench.common.forms.dynamic.model.config.SelectorData in project kie-wb-common by kiegroup.
the class AdHocOrderingProviderTest method testGetSelectorData.
@Test
public void testGetSelectorData() {
SelectorData selectorData = provider.getSelectorData(context);
assertNotNull(selectorData.getValues());
assertEquals(2, selectorData.getValues().size());
assertEquals("Sequential", selectorData.getSelectedValue());
assertEquals(SEQUENTIAL_LABEL, selectorData.getValues().get("Sequential"));
assertEquals(PARALLEL_LABEL, selectorData.getValues().get("Parallel"));
}
use of org.kie.workbench.common.forms.dynamic.model.config.SelectorData in project kie-wb-common by kiegroup.
the class ProcessVariableProviderTest method testGetSelectorDataWithNoValues.
@Override
public void testGetSelectorDataWithNoValues() {
List<Element> nodes = new ArrayList<>();
nodes.add(mockRootNodeWithoutProcessVariables());
when(graph.nodes()).thenReturn(nodes);
when(graph.getNode(eq(ROOT_NODE_UUID))).thenReturn((Node) nodes.get(0));
SelectorData selectorData = provider.getSelectorData(renderingContext);
Map values = selectorData.getValues();
assertTrue(values.isEmpty());
}
Aggregations