Results 1 to 2 of 2
- 04-17-2008, 01:03 PM #1
Member
- Join Date
- Apr 2008
- Posts
- 7
- Rep Power
- 0
Help with testing methods and classes in JUnit, using BlueJ
Hey all,
I need help with testing methods using JUnit. The editor we're using is BlueJ
This is my class:
I don't even really know where to begin :(Java Code:package model; import java.util.*; public class Category { private String name; private List<Appointment> appointments; private List<ToDo> toDos; public Category(String name) { this.name = name; appointments = new ArrayList<Appointment>(); toDos = new ArrayList<ToDo>(); } public String getName() { return this.name; } public void setName(String newName) { this.name = newName; } public void addAppointment(Appointment a) { appointments.add(a); } public void removeAppointment(Appointment a) { appointments.remove(a); } public void addToDo(ToDo t) { toDos.add(t); } public void removeToDo(ToDo t) { toDos.remove(t); } public List<Appointment> getAppointments() { return appointments; } public List<ToDo> getToDos() { return toDos; } }
- 04-17-2008, 02:30 PM #2
Member
- Join Date
- Apr 2008
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Junit
By Azndaddy in forum New To JavaReplies: 6Last Post: 06-15-2008, 06:47 AM -
Testing JUnit PDE with Ant
By keynan in forum EclipseReplies: 0Last Post: 02-14-2008, 11:35 PM -
help using BlueJ
By zoe in forum New To JavaReplies: 1Last Post: 08-07-2007, 06:07 AM -
BlueJ 2.2.0
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-07-2007, 02:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks