Results 1 to 7 of 7
Thread: Junit
- 04-01-2008, 11:34 PM #1
Member
- Join Date
- Mar 2008
- Posts
- 24
- Rep Power
- 0
- 04-01-2008, 11:56 PM #2
Well, what do you have so far?
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 04-02-2008, 12:19 AM #3
Member
- Join Date
- Mar 2008
- Posts
- 24
- Rep Power
- 0
My Whole Assignment works fine, but need to create a Junit for it to test each classes.
Here is two example classes that i have which are part of my assignment
and another class isPHP Code:public class Close extends Commands { private int currentBufferIndex; public Close(Editor editor) { super("close", editor); } public void execute() { editor.deleteCurrentBuffer(); } }
how would i create a Junit for them?PHP Code:public class Quit extends Commands { public Quit(Editor editor) { super("quit", editor); } public void execute() { System.out.println("Bye!"); System.exit(0); } }
I have only done the following code
import junit.framework.*;
public class Junit
{
}
Thanks heaps
- 04-02-2008, 04:49 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 04-02-2008, 05:16 AM #5
Member
- Join Date
- Mar 2008
- Posts
- 24
- Rep Power
- 0
thanks, i'll have a look into it
- 06-14-2008, 02:50 AM #6
Member
- Join Date
- Jun 2008
- Posts
- 22
- Rep Power
- 0
With eclipse and JUnit plugging for eclispe all will be easyer. It helps to code JUnit tests.
Ferran
- 06-15-2008, 06:47 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
JUnit is not difficult with NetBeanse too. No need to use separate pluggin for it. But the major question is, how JUnit is doing.
Similar Threads
-
Testing JUnit PDE with Ant
By keynan in forum EclipseReplies: 0Last Post: 02-14-2008, 11:35 PM -
Using Junit In Eclipse
By JavaForums in forum EclipseReplies: 0Last Post: 05-06-2007, 03:41 PM -
TRying to use jUnit for Tesing
By sandor in forum New To JavaReplies: 3Last Post: 04-18-2007, 11:17 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks