private Project createProject(String title, String description) { Project p = new Project(); p.setName(title); p.setDescription(description); p.setSponsor("yanning"); p.setAuthorized_funds(1000L); p.setAuthorized_hours(100L); return p; }
public Project findByName(String name) { for (Project p : projects) { if (p.getName().equals(name)) return p; } return null; }