@Test public void testGetAllStackPathsWithBasePath() throws Exception { when(connector.getBasePath()).thenReturn("/base"); setupCacheResult("/base" + STACKS_PATH, "PO", "BR"); setupCacheResult("/base" + STACKS_PATH + "/PO", "POC1", "POC2"); setupCacheResult("/base" + STACKS_PATH + "/PO/POC1", "1.40"); setupCacheResult("/base" + STACKS_PATH + "/PO/POC1/1.40", "xreGuide"); StacksDAO testee = new StacksDAO(connector); XreStackPath[] result = testee.getAllStackPaths().toArray(new XreStackPath[]{}); Assert.assertEquals("/PO/POC1/1.40/xreGuide", result[0].getPath()); }
@Override public Set<XreStackPath> getAllStackPaths() { return stacksCache.getAllStackPaths(); }
StacksDAO implements IStacksDAO { @Override public Set<XreStackPath> getAllStackPaths() { return stacksCache.getAllStackPaths(); } }
StacksDAO implements IStacksDAO { @Override public Set<XreStackPath> getAllStackPaths() { return stacksCache.getAllStackPaths(); } StacksDAO(IDataSourceConnector connector); }
StacksDAO implements IStacksDAO { @Override public Set<XreStackPath> getAllStackPaths() { return stacksCache.getAllStackPaths(); } StacksDAO(IDataSourceConnector connector); @Override Set<XreStackPath> getAllStackPaths(); @Override Set<XreStackPath> getAllStackPaths(final Set<String> applicationsToExclude); @Override Collection<HostIPs> getHosts(XreStackPath path); @Override Collection<HostIPs> getHostsByStackOnlyPath(XreStackPath path); @Override List<String> getFlavorsByStackOnlyPath(XreStackPath path); @Override HostIPs getHostByIndex(XreStackPath path, int index); @Override void deleteStackPath(XreStackPath xreStackPath); @Override int getHostsCount(XreStackPath path); @Override Set<String> getAllAppNamesRegisteredInStacks(); @Override void addCacheListener(ICacheListener listener); }
StacksDAO implements IStacksDAO { @Override public Set<XreStackPath> getAllStackPaths() { return stacksCache.getAllStackPaths(); } StacksDAO(IDataSourceConnector connector); @Override Set<XreStackPath> getAllStackPaths(); @Override Set<XreStackPath> getAllStackPaths(final Set<String> applicationsToExclude); @Override Collection<HostIPs> getHosts(XreStackPath path); @Override Collection<HostIPs> getHostsByStackOnlyPath(XreStackPath path); @Override List<String> getFlavorsByStackOnlyPath(XreStackPath path); @Override HostIPs getHostByIndex(XreStackPath path, int index); @Override void deleteStackPath(XreStackPath xreStackPath); @Override int getHostsCount(XreStackPath path); @Override Set<String> getAllAppNamesRegisteredInStacks(); @Override void addCacheListener(ICacheListener listener);  }