Hello, I have just started using Junit and am very pleased with it. But one problem is how to organise groups of test classes into suites. In v3.8 it seemed...
16588
fm_5599
May 1, 2006 6:48 pm
I do just my first experiences with JUnit. Complicated figures of applications should be no problem in JUnit, I imagine in such a way. Then is here certainly...
16589
eetadic69
May 1, 2006 6:48 pm
OK, this may seem like it will be a long post, and a apologize prematurely, however I've stripped the code down to the minimum needed to illustrate a major...
16590
glenxumail
May 1, 2006 6:50 pm
... than ... subclasses ... of a ... Very good. Where can I ind Juit tutorial?I don't need simple tutorial just like below...
16591
savoymp
May 1, 2006 6:50 pm
Just in case anyone might be interested in the answer to my question: http://cvs.sourceforge.net/viewcvs.py/dbunit/dbunit/docs/Attic/howto.html?rev=1.24 How to...
16592
Jon Barrilleaux
jonbarril
May 1, 2006 6:50 pm
Its not as trivial as 'int i = "foo"'. I have a set of nested classes and interfaces with a somewhat complex inheritance/implementation structure. They act...
16593
dhandapani nagarajan
sath_n
May 1, 2006 6:50 pm
Hai to all, I am placed in a company which developing server oriented products which runs on java coding..As a software tester ..i should be ready to go for...
16594
David Saff
dsaff
May 3, 2006 2:17 am
All, Thanks for your patience. The zip file has been fixed. Share and Enjoy, David Saff...
16595
kultstatus77
May 3, 2006 9:21 am
Hi, I'd like to add a AllTests.class to some of my packages that automatically scans for test cases and runs them. I choose to use junit-addons1.4 to help me...
16596
Stephen Smith
steve@...
May 3, 2006 5:17 pm
www.junit.org -- Stephen Smith, MEng (Wales). http://www.stephen-smith.co.uk/...
16597
Kamal Ahmed
KAhmed@...
May 3, 2006 5:43 pm
David, Does this mean that 4.1 is now available with Eclipse , and can be downloaded as a plugin? Thanks, -Kamal. ... From: junit@yahoogroups.com...
16598
Kent Beck
kentlbeck
May 3, 2006 9:33 pm
Dear Otterblob, If your IDE won't find the tests for you, you can create a JUnit 4 test suite by annotating a class with RunWith(Suite.class) and ...
16599
Kent Beck
kentlbeck
May 3, 2006 9:33 pm
Dear FM, AssertEquals(float actual, float expected, float epsilon) will always fail if epsilon is negative, as it is in your example below. Sincerely yours, ...
16600
eetadic69
May 3, 2006 9:58 pm
Hi all, quick question: can someone enlighten me to the benefits of using @BeforeClass vs using a static{} constructor for my test classes? Actually, I...
16601
Kevin Klinemeier
zipwow
May 3, 2006 10:02 pm
I haven't moved to Junit 4+ yet, but I would guess that one advantage might be that the @BeforeClass doesn't give you the ClassNotFoundException funkiness that...
16602
Ilja Preuss
ipreussde
May 4, 2006 6:39 am
... @BeforeClass runs everytime the tests are (re)run, a static initializer only once when the class is loaded. That would make a significant difference to a ...
16603
David Saff
dsaff
May 4, 2006 3:56 pm
That announcement was only about the JUnit library. However, see my next post. David Saff...
16604
David Saff
dsaff
May 4, 2006 3:57 pm
All, JUnit 4 support has been built in to the public release of Eclipse 3.2 RC 2. JUnit and Eclipse would both benefit from any testing you can do with your...
16605
Kamal Ahmed
KAhmed@...
May 4, 2006 7:51 pm
Hi, How can we verify, using JUnit if an object is really created, if a "new" operator is used to instantiate an object. Thanks, -Kamal. [Non-text portions of...
16606
eetadic69
May 4, 2006 9:15 pm
Hmm, I only recently started using JUnit (since 4 has come out), so I'm not familar with those problems, but I'll take your word for it!...
16607
chandrashekhartm
chandrashekh...
May 4, 2006 9:22 pm
Hi all, How can i put expected and actual objects in assertEqual(Object aobj, Object eobj); method, plz reply me...
16608
eetadic69
May 4, 2006 9:24 pm
Hi all, so I'm continuing my learning curve with JUnit, and I have a scenario that I wish I could execute, but apparently I'm not allowed to. Basically, I...
16609
MNASRI Riadh
m_riadh80
May 4, 2006 9:34 pm
Hello every body, I'm performing unit tests on a JAVA project using Junit and Ant. I'm using Ant to execute the Junit tests and to generate the unit test...
16610
Mike Norman
mwnorman_top...
May 4, 2006 9:36 pm
From my brief scan of the JUnit4.1 docs, one could create a custom Runner using the @RunWith annotation, correct? I would like to add the following...
16611
Chris Dollin
anover_alias
May 5, 2006 7:41 am
... I don't understand your problem. You just write assertEquals( X, Y ); where X is whatever value (object) you want, and Y is whatever value (object) you're...
16612
jason r tibbetts
tibbettj_at_...
May 5, 2006 2:27 pm
... As opposed to what? malloc()? ;)...
16613
Kamal Ahmed
KAhmed@...
May 5, 2006 2:35 pm
Jason, Something like: public void testRemoval() { ProprietaryList list = new ProprietaryList(); Object instance = new Object(); list.add(instance); ...
16614
Mark Levison
marklevison
May 5, 2006 7:04 pm
... Is the answer by definition? You either get an object or you get an exception. I don't bother testing whether 'new' succeded in producing a non null...
16615
J. B. Rainsberger
nails762
May 9, 2006 2:44 am
... Have you tried this? try { foo.doSomething(); fail("Exception should be raised!"); } catch (Exception passed) {} I admit, it removes the :-), which is...
16616
J. B. Rainsberger
nails762
May 9, 2006 2:51 am
... Submit it to JUnit-addons. -- J. B. (Joe) Rainsberger :: http://www.jbrains.info Your guide to software craftsmanship JUnit Recipes: Practical Methods for...