@Test public void testDownload() { manager.download("", ""); }
public State download(String remoteSelectedTrace, String saveTo) { String path = repository.get(remoteSelectedTrace, saveTo); if(path == null) { return State.FAILURE; } String folderName = "RemoteTrace"; if(remoteSelectedTrace!=null && remoteSelectedTrace.length()>4) { folderName = remoteSelectedTrace.substring(0,remoteSelectedTrace.length()-4); } unZip(path,folderName); removeZip(path); return State.COMPLETE; }
TraceManager { public State download(String remoteSelectedTrace, String saveTo) { String path = repository.get(remoteSelectedTrace, saveTo); if(path == null) { return State.FAILURE; } String folderName = "RemoteTrace"; if(remoteSelectedTrace!=null && remoteSelectedTrace.length()>4) { folderName = remoteSelectedTrace.substring(0,remoteSelectedTrace.length()-4); } unZip(path,folderName); removeZip(path); return State.COMPLETE; } }
TraceManager { public State download(String remoteSelectedTrace, String saveTo) { String path = repository.get(remoteSelectedTrace, saveTo); if(path == null) { return State.FAILURE; } String folderName = "RemoteTrace"; if(remoteSelectedTrace!=null && remoteSelectedTrace.length()>4) { folderName = remoteSelectedTrace.substring(0,remoteSelectedTrace.length()-4); } unZip(path,folderName); removeZip(path); return State.COMPLETE; } TraceManager();  TraceManager(Repository repository); }
TraceManager { public State download(String remoteSelectedTrace, String saveTo) { String path = repository.get(remoteSelectedTrace, saveTo); if(path == null) { return State.FAILURE; } String folderName = "RemoteTrace"; if(remoteSelectedTrace!=null && remoteSelectedTrace.length()>4) { folderName = remoteSelectedTrace.substring(0,remoteSelectedTrace.length()-4); } unZip(path,folderName); removeZip(path); return State.COMPLETE; } TraceManager();  TraceManager(Repository repository); State upload(String trace); String compress(String trace); State download(String remoteSelectedTrace, String saveTo); void unZip(String zipFile, String saveTo); void addListener(Listener l); void removeListener(Listener l); void setRepository(Repository repository); }
TraceManager { public State download(String remoteSelectedTrace, String saveTo) { String path = repository.get(remoteSelectedTrace, saveTo); if(path == null) { return State.FAILURE; } String folderName = "RemoteTrace"; if(remoteSelectedTrace!=null && remoteSelectedTrace.length()>4) { folderName = remoteSelectedTrace.substring(0,remoteSelectedTrace.length()-4); } unZip(path,folderName); removeZip(path); return State.COMPLETE; } TraceManager();  TraceManager(Repository repository); State upload(String trace); String compress(String trace); State download(String remoteSelectedTrace, String saveTo); void unZip(String zipFile, String saveTo); void addListener(Listener l); void removeListener(Listener l); void setRepository(Repository repository);  }