@Test @SuppressWarnings("unchecked") public void testTransformNoDiagram() { ServiceCallback<Diagram> callback = mock(ServiceCallback.class); tested.transform(BPMNClientDiagramService.DEFAULT_DIAGRAM_ID, xml, callback); ArgumentCaptor<ClientRuntimeError> errorArgumentCaptor = ArgumentCaptor.forClass(ClientRuntimeError.class); verify(callback, times(1)).onError(errorArgumentCaptor.capture()); ClientRuntimeError error = errorArgumentCaptor.getValue(); assertTrue(error.getThrowable() instanceof DiagramParsingException); }
@Override public void transform(final String xml, final ServiceCallback<Diagram> callback) { doTransform(DEFAULT_DIAGRAM_ID, xml, callback); }
BPMNClientDiagramService extends AbstractKogitoClientDiagramService { @Override public void transform(final String xml, final ServiceCallback<Diagram> callback) { doTransform(DEFAULT_DIAGRAM_ID, xml, callback); } }
BPMNClientDiagramService extends AbstractKogitoClientDiagramService { @Override public void transform(final String xml, final ServiceCallback<Diagram> callback) { doTransform(DEFAULT_DIAGRAM_ID, xml, callback); } protected  BPMNClientDiagramService(); @Inject  BPMNClientDiagramService(final DefinitionManager definitionManager,
                                    final BPMNClientMarshalling marshalling,
                                    final FactoryManager factoryManager,
                                    final BPMNDiagramFactory diagramFactory,
                                    final ShapeManager shapeManager,
                                    final Promises promises,
                                    final WorkItemDefinitionClientService widService); }
BPMNClientDiagramService extends AbstractKogitoClientDiagramService { @Override public void transform(final String xml, final ServiceCallback<Diagram> callback) { doTransform(DEFAULT_DIAGRAM_ID, xml, callback); } protected  BPMNClientDiagramService(); @Inject  BPMNClientDiagramService(final DefinitionManager definitionManager,
                                    final BPMNClientMarshalling marshalling,
                                    final FactoryManager factoryManager,
                                    final BPMNDiagramFactory diagramFactory,
                                    final ShapeManager shapeManager,
                                    final Promises promises,
                                    final WorkItemDefinitionClientService widService); @Override void transform(final String xml,
                          final ServiceCallback<Diagram> callback); @Override void transform(final String fileName,
                          final String xml,
                          final ServiceCallback<Diagram> callback); @Override Promise<String> transform(final KogitoDiagramResourceImpl resource); String transform(final Diagram diagram); }
BPMNClientDiagramService extends AbstractKogitoClientDiagramService { @Override public void transform(final String xml, final ServiceCallback<Diagram> callback) { doTransform(DEFAULT_DIAGRAM_ID, xml, callback); } protected  BPMNClientDiagramService(); @Inject  BPMNClientDiagramService(final DefinitionManager definitionManager,
                                    final BPMNClientMarshalling marshalling,
                                    final FactoryManager factoryManager,
                                    final BPMNDiagramFactory diagramFactory,
                                    final ShapeManager shapeManager,
                                    final Promises promises,
                                    final WorkItemDefinitionClientService widService); @Override void transform(final String xml,
                          final ServiceCallback<Diagram> callback); @Override void transform(final String fileName,
                          final String xml,
                          final ServiceCallback<Diagram> callback); @Override Promise<String> transform(final KogitoDiagramResourceImpl resource); String transform(final Diagram diagram);  }