@Test(expected = RuntimeException.class) public void zipProjectThrowsExceptionIfProjectIsNull() throws IOException { uploader.zipProjects(); }
public void zipProjects() throws IOException { if (project == null) { throw new RuntimeException("Not a TMC project!"); } RecursiveZipper zipper = new RecursiveZipper(new FileIO(project.getRootPath()), project.getZippingDecider()); data = zipper.zipProjectSources(); }
ProjectUploader { public void zipProjects() throws IOException { if (project == null) { throw new RuntimeException("Not a TMC project!"); } RecursiveZipper zipper = new RecursiveZipper(new FileIO(project.getRootPath()), project.getZippingDecider()); data = zipper.zipProjectSources(); } }
ProjectUploader { public void zipProjects() throws IOException { if (project == null) { throw new RuntimeException("Not a TMC project!"); } RecursiveZipper zipper = new RecursiveZipper(new FileIO(project.getRootPath()), project.getZippingDecider()); data = zipper.zipProjectSources(); } ProjectUploader(ServerManager server); }
ProjectUploader { public void zipProjects() throws IOException { if (project == null) { throw new RuntimeException("Not a TMC project!"); } RecursiveZipper zipper = new RecursiveZipper(new FileIO(project.getRootPath()), project.getZippingDecider()); data = zipper.zipProjectSources(); } ProjectUploader(ServerManager server); void setProject(Project project); void zipProjects(); void handleSubmissionResponse(); void handleSubmissionResult(StopStatus stopStatus); SubmissionResponse getResponse(); SubmissionResult getResult(); Project getProject(); void setAsPaste(String pasteMessage); void setAsRequest(String requestMessage); }
ProjectUploader { public void zipProjects() throws IOException { if (project == null) { throw new RuntimeException("Not a TMC project!"); } RecursiveZipper zipper = new RecursiveZipper(new FileIO(project.getRootPath()), project.getZippingDecider()); data = zipper.zipProjectSources(); } ProjectUploader(ServerManager server); void setProject(Project project); void zipProjects(); void handleSubmissionResponse(); void handleSubmissionResult(StopStatus stopStatus); SubmissionResponse getResponse(); SubmissionResult getResult(); Project getProject(); void setAsPaste(String pasteMessage); void setAsRequest(String requestMessage);  }