Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2008, 03:03 PM
Member
 
Join Date: Apr 2008
Posts: 7
Jonasse is on a distinguished road
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:
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; } }
I don't even really know where to begin
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-17-2008, 04:30 PM
Member
 
Join Date: Apr 2008
Posts: 7
Jonasse is on a distinguished road
If someone can just guide me on how to tackle this, i'd very much appreciate it
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Junit Azndaddy New To Java 6 06-15-2008 08:47 AM
Testing JUnit PDE with Ant keynan Eclipse 0 02-15-2008 01:35 AM
Abstract Classes/Methods JavaForums Java Blogs 0 11-27-2007 02:30 PM
help using BlueJ zoe New To Java 1 08-07-2007 08:07 AM
BlueJ 2.2.0 JavaBean Java Announcements 0 07-07-2007 04:28 PM


All times are GMT +3. The time now is 05:04 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org