hey i am new to junit, and i need it for an assignment...so if someone can guide me on how to get started, wud be of great help!! ~ketaki...
861
Boris Boehlen
boris@...
Apr 2, 2001 8:35 am
Hello, I'd like to execute my test within a test cases in a predefined order because each test cases needs results created by the first one. It is also very...
862
Vitezslav Stejskal
vitezslav.stejskal@...
Apr 2, 2001 10:52 am
... Simply rename your test methods so they don't start with *test* word, this will prevent them to be executed by TestRunner. ... This is a fundamental thing...
863
Boris Boehlen
boris@...
Apr 2, 2001 11:18 am
Hello, ... This is a possible solution I found too. IMHO this is not very useful in my case, because I still like to know which tests succeeded and which...
864
Peter Spitz
pspitz@...
Apr 2, 2001 12:47 pm
Go to www.junit.org <http://www.junit.org> and download the latest version of JUnit. Then, expand the zip file and bring up readme.html in your browser. That...
865
Mike Clark
mike@...
Apr 2, 2001 1:15 pm
... It's possible to explicitly define the test method order in the suite() method, as in... public static Test suite() { TestSuite suite = new TestSuite(); ...
866
Jim Downing
jimdowning@...
Apr 2, 2001 1:26 pm
Hi, I was wondering if anyone could help me out setting up junit to test EJBs. I downloaded a copy of junit from an article on www.javaworld.com by Michael...
867
Ilja Preu?
I.Preuss@...
Apr 2, 2001 1:29 pm
... You are right that the tests *happen* to be executed in the order they are added to the suite. But I don't think that it is the *required* (specified) ...
868
Mike Clark
mike@...
Apr 2, 2001 2:16 pm
... Agreed. They are executed in this order only because the underlying collection is ordered - an implementation detail not to be depended upon. I also...
869
P. Babu Naidu
pbn@...
Apr 2, 2001 2:21 pm
Do keep junit.jar in the Server's classpath... Thanks Babu ... From: Jim Downing [mailto:jimdowning@...] Sent: Monday, April 02, 2001 7:24 AM To:...
870
Ralf Krakowski
ralf.krakowski@...
Apr 2, 2001 2:36 pm
Hi, I wonder if there is a preferd way to use JUnit with EJB in your opinion? What is best practice and have anyone used any extensions like JUnitEE ...
871
Jim Downing
jimdowning@...
Apr 2, 2001 5:17 pm
Thanks Babu. I was trying to avoid setting an environment classpath at all to ensure that the app deployed the same cross-platform. Isn't web-inf/classes in ...
872
P. Babu Naidu
pbn@...
Apr 2, 2001 5:42 pm
Hi Jim, Are you saying junit.jar is in web-inf/classes directory of servletui web-app?. Then that should be ok. I am not sure what application server you are...
873
Jim Downing
jimdowning@...
Apr 2, 2001 5:51 pm
Not quite, I have the compiled classes in there. The structure goes - web-inf + - classes + - junit + - framework (etc...) + - example2...
874
Mathieu Gervais
egoine_@...
Apr 2, 2001 6:01 pm
Hi, I've been thinking about test order recently and I have an idea I would like to submit to people here just to know how bad it is :) The idea is that often,...
875
P. Babu Naidu
pbn@...
Apr 2, 2001 6:01 pm
The web-inf\classes looks ok to me.... I am not sure.... try putting junit.jar in server's classpath.... Thanks Babu ... From: Jim Downing...
876
Joi Ellis
joi@...
Apr 2, 2001 8:22 pm
... I've been relying upon the undocumented behavior in JUnit's reflection support. Reflection seems to return methods based on their order within the class...
877
Sameer Ajmani
ajmani@...
Apr 2, 2001 8:44 pm
A simple solution to the test ordering problem would be to define your own "OrderedTestSuite" class that maintains the order in which things were added to the...
878
Robert Watkins
robertw@...
Apr 2, 2001 10:27 pm
... The various extensions to JUnit do not test EJBs. They test servlets, which may in turn talk to EJBs. Personally, I find this distasteful. My major ...
879
Stefan Bodewig
bodewig@...
Apr 3, 2001 6:38 am
... So you'll run out of luck sooner or later. The order, by which reflection will return the methods, is highly VM dependent. I've never seen them to be in...
880
Vera Peeters
vera.peeters@...
Apr 3, 2001 6:46 am
RE: [junit] Best practice with EJBImplement the important things in normal java classes. You can test those easily with JUnit. The EJB should be only a very...
881
Robert Watkins
robertw@...
Apr 3, 2001 6:56 am
... This is a nice aim, but it's not always possible. That said, it's still worth striving for. The main problem area is when you want your EJB to leverage the...
882
Robert Watkins
robertw@...
Apr 3, 2001 6:58 am
... [snip] ... Joi and Mathieu, One possibility is to nest your tests. TestX can invoke TestY if it depends on that behaviour. The other possibility is to run...
883
Ralf Krakowski
ralf.krakowski@...
Apr 3, 2001 10:48 am
Thanks a lot for your response. Any write up of such a paper would be great since I am new to both JUnit and EJB. Could I help you in any way? Could you please...
884
Vitezslav Stejskal
vitezslav.stejskal@...
Apr 3, 2001 12:16 pm
... I like the idea of test cases classified by their complexity and definitely it is not good to rely on some undocumented features, thus I would appreciate...
885
Joi Ellis
joi@...
Apr 3, 2001 6:05 pm
... Ah, so you mean the ability to, say, "run all 'basic39; tests only" or something like that? ... I typically create one test method per app method, and that...
886
Joi Ellis
joi@...
Apr 3, 2001 6:15 pm
... Ooh. I've never seen that mentioned before! I'll have to try it! ... Well, ya, but what if you're debugging your tests? ;) (Or some dingleberry kills...
887
Dinwiddie, George
George.Dinwiddie@...
Apr 3, 2001 7:56 pm
Boris, Don't fight the tool. To JUnit, tests are independent, clean up after themselves, and can be run in any order. If your tests are dependent on certain...
888
junaidrehman2000@...
Apr 4, 2001 2:51 am
i like to start Servlet any body like t help me regularly pls send me email address 1- how i start servlet 2-what is the job value of servlet 3-what ius the...
889
BalaSubramanian
balas@...
Apr 4, 2001 3:48 am
hi junaid i canhelp u but i need clear info abt u bala...