I am a fan of JUnit ! I have been working with it for some time now and I have come up with an extension of it for testing server-side java code that is called...
2
Erik Meade
emeade@...
Nov 7, 2000 3:15 am
Hi Vincent, I'm the only person subscribed to this list other than you. :) I haven't announced it yet, but will soon. How did you find it so fast? I just...
3
Marcus Davies
marcus.davies@...
Nov 7, 2000 10:23 am
4
Jonathan Rasmusson
jr@...
Nov 10, 2000 11:47 pm
Hi Vincent! I am a big fan of JUnit also. I too was once working on a framework much like the one you posted j2eeunit. Them someone showed me HttpUnit (which...
5
Vincent Massol
vmassol@...
Nov 11, 2000 10:07 am
Hi Jonathan, HttpUnit and J2EEUnit are doing different things : - HttpUnit tests the result of calling a JSP or Servlet, i.e. it gets the HTML/XML/WML/......
6
Vincent Massol
vmassol@...
Nov 11, 2000 10:08 am
He, he ! It seems it existed before you created it last night !, because I subscribed to it a week ago ... :)...
7
David Corbin
dcorbin@...
Nov 11, 2000 12:39 pm
... How is this different from simply using JUnit? I can test java classes with it too. -- David Corbin Mach Turtle Technologies, Inc. ...
8
Vincent Massol
vmassol@...
Nov 11, 2000 5:06 pm
Yes, you're right but some of these java classes need to have access to valid HttpServletRequest, HttpServleetResponse and HttpSession objects. One other...
9
Jonathan Rasmusson
jr@...
Nov 14, 2000 4:18 am
... Thats great to hear. I have done a considerable amount of EJB tests with JUnit and may be able to contribute. Cheers Jonathan...
10
Paul Michali
pcm@...
Nov 14, 2000 12:58 pm
OK. I just D/Led the V3.2 JUnit and I made a simple application under JBuilder 4.0 (which I'm also trying to come up to speed on) that has a simple unit test...
11
Benjamin Schroeder
schroeder@...
Nov 14, 2000 2:54 pm
... If you run the GUI test runner (junit.ui.LoadingTestRunner, for example) with your test cases somewhere on the classpath, you can run them by typing the...
12
Paul Michali
pcm@...
Nov 14, 2000 5:49 pm
... I guess I'm a bit dense, but I still can't get this to work. SOme of it is my inexperience with Java, jar files, and JBuilder. Here's what I've tried... ...
13
Benjamin Schroeder
schroeder@...
Nov 14, 2000 6:42 pm
... I had a look back at your source, and noticed that the source was in a package. Are you just using "TestSummarizer" as the class name? The JUnit GUI...
14
Paul Michali
pcm@...
Nov 14, 2000 7:49 pm
... Yes! That was the problem. When I created the class, using the JBuilder's wizard, I had it create a package. When I ran from the IDE and specified ...
15
Benjamin Schroeder
schroeder@...
Nov 14, 2000 8:01 pm
... No problem -- glad to hear you got it working! ... Ben Schroeder schroeder@......
16
Andreas Heilwagen
andreas.heilwagen@...
Nov 14, 2000 9:26 pm
Hi, currently I run the SwingUI issuing java -classpath <path>/junit.jar:<myclasses> junit.swingui.TestRunner TestPackage assuming you have a class called...
17
Benjamin Schroeder
schroeder@...
Nov 14, 2000 10:40 pm
... I suppose that's true. On the other hand, traversal might be a nice first cut. Each package could have a "restrictions.txt" file or something similar that...
18
Jonathan Rasmusson
jr@...
Nov 15, 2000 3:36 am
Reasons why I use JUnit Because I want to refactor aggressively. Because I want to find bugs quickly. Gives me greater confidence in my code. I am entitled to...
19
Piero Campanelli
pierolists@...
Nov 15, 2000 7:26 pm
Hi, have tried to use JUnit 3.2 in VaJAVA 3.5 as an IDE tool ? I am unable to figure out how to do it ....have you any help ? Tnx...
20
Keith Ray
keith.ray@...
Nov 15, 2000 7:58 pm
Just to let you know -- I can't use JUnitX because it is too reliant on Java2. On Windows, I'm using IBM JRE, which is not Java2. On the Macintosh, you should...
21
Tom Ayerst
tom@...
Nov 15, 2000 9:03 pm
Hi Piero, I'm still stuck too. I am reduced to running up TestRunner from the method and then running the tests. They work when you set up the classpath on ...
22
Anthony Dickinson
adickinson@...
Nov 16, 2000 8:52 am
23
Piero Campanelli
pierolists@...
Nov 16, 2000 10:14 am
Hi, very nice work this tool ! It doesn't solve cleanly problem of JUnit and VaJava 3.5 but it patchs it using start() method !! Now I can use JUnit in Va !!...
24
Andreas Heilwagen
andreas.heilwagen@...
Nov 16, 2000 5:30 pm
... I started JUnitX after reading the Refactoring-book of Martin Fowler. During my vacation I had real fun refactoring JUnit and afterwards I have been...
25
Andreas Heilwagen
andreas.heilwagen@...
Nov 16, 2000 5:33 pm
Ok, I understand that a lot of people will be interested in using JDK 1.x. The appropriate action point will be added to my TODO list. Thanks for the feedback....
26
Vincent Massol
vmassol@...
Nov 16, 2000 9:20 pm
Hi Jonathan, With the current J22EUnit, it is already possible to unit test EJBs. In your testXXX() method just do a lookup on the home, create the bean and...
27
Jonathan Rasmusson
jr@...
Nov 16, 2000 11:54 pm
... reason ... to ... My experiences have been the same as Andreas. I tend to favour protected over private in my objects then if I place the test in the same...
28
Vera Peeters
vera.peeters@...
Nov 17, 2000 8:34 am
Hi, We apply the following strategies to make our EJB's *fully* testable. 1. EJB's are thin. They are really really thin. The EJB is in fact an interface into...
29
Erik Meade
emeade@...
Nov 17, 2000 7:19 pm
... JUnit should have an open source host soon. -- Erik Meade emeade@... Senior Consultant Object Mentor, Inc. ...
30
Ilja Preuß
ilja.preuss@...
Nov 17, 2000 8:08 pm
... So you don't implement business logic as session beans??? Sounds weird... ciao, Ilja...