@Test public void testUpload() { manager.upload(""); }
public State upload(String trace) { clean(trace); String zipFile = compress(trace); File file = new File(zipFile); TransferState state = repository.put(file); if(state ==TransferState.Completed) { removeZip(zipFile); return State.COMPLETE; }else { return State.FAILURE; } }
TraceManager { public State upload(String trace) { clean(trace); String zipFile = compress(trace); File file = new File(zipFile); TransferState state = repository.put(file); if(state ==TransferState.Completed) { removeZip(zipFile); return State.COMPLETE; }else { return State.FAILURE; } } }
TraceManager { public State upload(String trace) { clean(trace); String zipFile = compress(trace); File file = new File(zipFile); TransferState state = repository.put(file); if(state ==TransferState.Completed) { removeZip(zipFile); return State.COMPLETE; }else { return State.FAILURE; } } TraceManager();  TraceManager(Repository repository); }
TraceManager { public State upload(String trace) { clean(trace); String zipFile = compress(trace); File file = new File(zipFile); TransferState state = repository.put(file); if(state ==TransferState.Completed) { removeZip(zipFile); return State.COMPLETE; }else { return State.FAILURE; } } 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 upload(String trace) { clean(trace); String zipFile = compress(trace); File file = new File(zipFile); TransferState state = repository.put(file); if(state ==TransferState.Completed) { removeZip(zipFile); return State.COMPLETE; }else { return State.FAILURE; } } 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);  }