Search in sources :

Example 6 with XLSConversionResult

use of org.drools.workbench.screens.guided.dtable.shared.XLSConversionResult in project drools-wb by kiegroup.

the class GuidedDecisionTableEditorPresenterTest method showConversionSuccess.

@Test
public void showConversionSuccess() {
    doReturn(new XLSConversionResult()).when(dtService).convert(any());
    presenter.onConvert();
    verify(view).showConversionSuccess(anySet());
    verify(view, never()).showConversionErrorMessage(any());
}
Also used : XLSConversionResult(org.drools.workbench.screens.guided.dtable.shared.XLSConversionResult) Test(org.junit.Test)

Aggregations

XLSConversionResult (org.drools.workbench.screens.guided.dtable.shared.XLSConversionResult)6 Test (org.junit.Test)5 ByteArrayInputStream (java.io.ByteArrayInputStream)3 GuidedDecisionTable52 (org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52)3 PackageDataModelOracle (org.kie.soup.project.datamodel.oracle.PackageDataModelOracle)3 Path (org.uberfire.backend.vfs.Path)3 AttributeCol52 (org.drools.workbench.models.guided.dtable.shared.model.AttributeCol52)1 XLSConversionResultMessage (org.drools.workbench.screens.guided.dtable.shared.XLSConversionResultMessage)1 Mockito.doAnswer (org.mockito.Mockito.doAnswer)1 InvocationOnMock (org.mockito.invocation.InvocationOnMock)1 Answer (org.mockito.stubbing.Answer)1