@Test public void testGetModelsURIs() { final Promise<String[]> expected = makePromise(); when(contentService.getFilteredItems(eq(MODEL_FILES_PATTERN), any())).thenReturn(expected); final Promise<String[]> actual = service.getModelsURIs(); assertEquals(expected, actual); }
@Override public Promise<String[]> getModelsURIs() { return contentService.getFilteredItems(MODEL_FILES_PATTERN, ResourceListOptions.assetFolder()); }
DMNMarshallerImportsContentServiceKogitoImpl implements DMNMarshallerImportsContentService { @Override public Promise<String[]> getModelsURIs() { return contentService.getFilteredItems(MODEL_FILES_PATTERN, ResourceListOptions.assetFolder()); } }
DMNMarshallerImportsContentServiceKogitoImpl implements DMNMarshallerImportsContentService { @Override public Promise<String[]> getModelsURIs() { return contentService.getFilteredItems(MODEL_FILES_PATTERN, ResourceListOptions.assetFolder()); } @Inject  DMNMarshallerImportsContentServiceKogitoImpl(final KogitoResourceContentService contentService,
                                                        final Promises promises,
                                                        final PMMLEditorMarshallerApi pmmlEditorMarshallerApi); }
DMNMarshallerImportsContentServiceKogitoImpl implements DMNMarshallerImportsContentService { @Override public Promise<String[]> getModelsURIs() { return contentService.getFilteredItems(MODEL_FILES_PATTERN, ResourceListOptions.assetFolder()); } @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[]> getModelsURIs() { return contentService.getFilteredItems(MODEL_FILES_PATTERN, ResourceListOptions.assetFolder()); } @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);  }