@Test public void testLoadFile() { final String file = "file.dmn"; final Promise<String> expected = makePromise(); when(contentService.loadFile(file)).thenReturn(expected); final Promise<String> actual = service.loadFile(file); assertEquals(expected, actual); }
@Override public Promise<String> loadFile(final String file) { return contentService.loadFile(file); }
DMNMarshallerImportsContentServiceKogitoImpl implements DMNMarshallerImportsContentService { @Override public Promise<String> loadFile(final String file) { return contentService.loadFile(file); } }
DMNMarshallerImportsContentServiceKogitoImpl implements DMNMarshallerImportsContentService { @Override public Promise<String> loadFile(final String file) { return contentService.loadFile(file); } @Inject  DMNMarshallerImportsContentServiceKogitoImpl(final KogitoResourceContentService contentService,
                                                        final Promises promises,
                                                        final PMMLEditorMarshallerApi pmmlEditorMarshallerApi); }
DMNMarshallerImportsContentServiceKogitoImpl implements DMNMarshallerImportsContentService { @Override public Promise<String> loadFile(final String file) { return contentService.loadFile(file); } @Inject  DMNMarshallerImportsContentServiceKogitoImpl(final KogitoResourceContentService contentService,
                                                        final Promises promises,
                                                        final PMMLEditorMarshallerApi pmmlEditorMarshallerApi); @Override Promise<String> loadFile(final String file); @Override Promise<String[]> getModelsURIs(); @Override Promise<String[]> getModelsDMNFilesURIs(); @Override Promise<String[]> getModelsPMMLFilesURIs(); @Override Promise<PMMLDocumentMetadata> getPMMLDocumentMetadata(final String pmmlFilePath); }
DMNMarshallerImportsContentServiceKogitoImpl implements DMNMarshallerImportsContentService { @Override public Promise<String> loadFile(final String file) { return contentService.loadFile(file); } @Inject  DMNMarshallerImportsContentServiceKogitoImpl(final KogitoResourceContentService contentService,
                                                        final Promises promises,
                                                        final PMMLEditorMarshallerApi pmmlEditorMarshallerApi); @Override Promise<String> loadFile(final String file); @Override Promise<String[]> getModelsURIs(); @Override Promise<String[]> getModelsDMNFilesURIs(); @Override Promise<String[]> getModelsPMMLFilesURIs(); @Override Promise<PMMLDocumentMetadata> getPMMLDocumentMetadata(final String pmmlFilePath);  }