Search in sources :

Example 1 with UpdateParameterTypeRefCommand

use of org.kie.workbench.common.dmn.client.commands.expressions.types.function.UpdateParameterTypeRefCommand in project kie-wb-common by kiegroup.

the class FunctionGridTest method testUpdateParameterTypeRef.

@Test
public void testUpdateParameterTypeRef() {
    setupGrid(0);
    grid.updateParameterTypeRef(parameter, new QName(QName.NULL_NS_URI, BuiltInType.DATE.getName()));
    verify(sessionCommandManager).execute(eq(canvasHandler), updateParameterTypeRefCommandCaptor.capture());
    final UpdateParameterTypeRefCommand updateParameterTypeRefCommand = updateParameterTypeRefCommandCaptor.getValue();
    updateParameterTypeRefCommand.execute(canvasHandler);
    verify(gridLayer).batch();
}
Also used : UpdateParameterTypeRefCommand(org.kie.workbench.common.dmn.client.commands.expressions.types.function.UpdateParameterTypeRefCommand) QName(org.kie.workbench.common.dmn.api.property.dmn.QName) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 QName (org.kie.workbench.common.dmn.api.property.dmn.QName)1 UpdateParameterTypeRefCommand (org.kie.workbench.common.dmn.client.commands.expressions.types.function.UpdateParameterTypeRefCommand)1