@Test(expected = AecuException.class) public void getFiles_invalidPath() throws AecuException { service.getFiles(FILE1); }
@Override public List<String> getFiles(String path) throws AecuException { try (ResourceResolver resolver = resolverService.getServiceResourceResolver()) { return findCandidates(resolver, path); } catch (LoginException e) { throw new AecuException(ERR_NO_RESOLVER, e); } }
AecuServiceImpl implements AecuService { @Override public List<String> getFiles(String path) throws AecuException { try (ResourceResolver resolver = resolverService.getServiceResourceResolver()) { return findCandidates(resolver, path); } catch (LoginException e) { throw new AecuException(ERR_NO_RESOLVER, e); } } }
AecuServiceImpl implements AecuService { @Override public List<String> getFiles(String path) throws AecuException { try (ResourceResolver resolver = resolverService.getServiceResourceResolver()) { return findCandidates(resolver, path); } catch (LoginException e) { throw new AecuException(ERR_NO_RESOLVER, e); } }  }
AecuServiceImpl implements AecuService { @Override public List<String> getFiles(String path) throws AecuException { try (ResourceResolver resolver = resolverService.getServiceResourceResolver()) { return findCandidates(resolver, path); } catch (LoginException e) { throw new AecuException(ERR_NO_RESOLVER, e); } }  @Override String getVersion(); @Override List<String> getFiles(String path); @Override boolean matchesRunmodes(String name); @Override boolean isValidScriptName(String name); @Override ExecutionResult execute(String path); @Override HistoryEntry createHistoryEntry(); @Override HistoryEntry finishHistoryEntry(HistoryEntry history); @Override HistoryEntry storeExecutionInHistory(HistoryEntry history, ExecutionResult result); @Override List<HistoryEntry> getHistory(int startIndex, int count); }
AecuServiceImpl implements AecuService { @Override public List<String> getFiles(String path) throws AecuException { try (ResourceResolver resolver = resolverService.getServiceResourceResolver()) { return findCandidates(resolver, path); } catch (LoginException e) { throw new AecuException(ERR_NO_RESOLVER, e); } }  @Override String getVersion(); @Override List<String> getFiles(String path); @Override boolean matchesRunmodes(String name); @Override boolean isValidScriptName(String name); @Override ExecutionResult execute(String path); @Override HistoryEntry createHistoryEntry(); @Override HistoryEntry finishHistoryEntry(HistoryEntry history); @Override HistoryEntry storeExecutionInHistory(HistoryEntry history, ExecutionResult result); @Override List<HistoryEntry> getHistory(int startIndex, int count);  }