Search the web
Sign In
New User? Sign Up
junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 12239 - 12268 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
12239
... JUnit (like other xUnits) is meant to test whether your code behaves correctly with respect to the requirements. It seems like you want to use JUnit to...
Mark Van Peteghem
mvp_be
Offline Send Email
Nov 1, 2004
10:48 am
12240
Hi I am getting error as below while running strutsTest case .I am using the source code downloaded from http://www.devx.com/Java/Article/20198/1763/page and I...
bhramanchal
Offline Send Email
Nov 1, 2004
4:16 pm
12241
... It looks like the XML formatter is making an assumption about the TestSuite name. I'm not sure what to do about that, short of looking at the source and...
J. B. Rainsberger
nails762
Offline Send Email
Nov 1, 2004
4:21 pm
12242
... Really? It seems to me that both ServletUnit and JUnitEE should work for you....
Russell Gold
russgold
Online Now Send Email
Nov 1, 2004
5:27 pm
12243
... Please either go to the JUnit FAQ (search the web for it) or read Chapter 8 of _JUnit Recipes_. It is a class loading problem that we hope to address in...
J. B. Rainsberger
nails762
Offline Send Email
Nov 1, 2004
5:49 pm
12244
... Agreed. Either change your design so that you can inject an HttpSession object in the required place, or use ServletUnit. I recommend both techniques in...
J. B. Rainsberger
nails762
Offline Send Email
Nov 1, 2004
5:50 pm
12245
... Whenever you run your unit tests, the test results are reported back. Different runners report back the results in different ways, from the GUI with the...
Paul Hodgetts
agilelogic
Offline Send Email
Nov 2, 2004
6:02 am
12246
Anyone have the following bizarre problem in Eclipse w/Junit? Have some test cases, all with the proper public constructors that take one string as a...
Rod Gonzaga
rgonzaga@...
Send Email
Nov 2, 2004
7:30 pm
12247
... Please show us the source for one of those TestCase classes. Thanks. -- J. B. (Joe) Rainsberger Diaspar Software Services http://www.diasparsoftware.com ::...
J. B. Rainsberger
nails762
Offline Send Email
Nov 3, 2004
2:13 am
12248
... The exact stacktrace would help, too... Cheers, Ilja...
Ilja Preuss
ipreussde
Offline Send Email
Nov 3, 2004
10:52 am
12249
it is quite straight to test java classes with JUnit by writing input data to methods and asserting output. but how can i generate input data to JSP and then...
hujd_cn
Offline Send Email
Nov 4, 2004
3:40 pm
12250
... Check out jWebUnit -- http://jwebunit.sourceforge.net/ -- (and indirectly HttpUnit) It allows a JUnit test to send http requests to the server and handle ...
Erik Husby
mehusby
Offline Send Email
Nov 4, 2004
8:38 pm
12251
try cactus ... From: hujd_cn To: junit@yahoogroups.com Sent: Thursday, November 04, 2004 6:54 AM Subject: [junit] how can i test JSP with JUnit? it is quite...
Tomer
tomiiii
Offline Send Email
Nov 5, 2004
4:00 am
12252
use HttpUnit http://httpunit.sourceforge.net/ For e.g. you can add input to form fields, submit and check the response text. ... From: hujd_cn...
pam withnall
p_withnall
Offline Send Email
Nov 5, 2004
4:00 am
12253
Hi, Currently I am writing JUnit to test our business methods on EJBs. Is there a framework exists exclusively for testing EJBs? Thank you, _Sreenivasa...
skmajji
Offline Send Email
Nov 5, 2004
4:00 am
12254
Check Cactus http://enhydra.objectweb.org/doc/5.1/Tools/Cactus/howto_jsp.html Indira ... From: Erik Husby [mailto:mhusby@...] Sent: Thursday, November 04,...
Meka, Indira, IG
imeka12
Offline Send Email
Nov 5, 2004
4:00 am
12255
  Hello there, It is always better not to pass parameters in junit test cases. Kindly respond to this concept. Regards, Rajeev ... [Non-text portions of this...
Rajeev R
rajeev103_2000
Offline Send Email
Nov 5, 2004
2:52 pm
12256
Hi all, I'm new in JUnit and want to ask a question. Suppose I have a MyRectangle class with this method : public void setWidth(int w) throws...
timotius_pamungkas
timotius_pam...
Offline Send Email
Nov 5, 2004
2:53 pm
12257
... What I do is (and I think I got this from another mailing list): public void testIAEThrown() { MyRectangle rect = new MyRectangle(); boolean...
Alistair A. Israel
aisrael
Offline Send Email
Nov 5, 2004
3:06 pm
12258
... public void testSetWidthBadValue() { MyRectangle rect = new MyRectangle(); try{ rect.setWidth(-5); fail("negative widths are illegal"); } ...
Bob Koss
koss@...
Send Email
Nov 5, 2004
3:06 pm
12259
Hi Timotius, You can do it like this: public void testSetWidth() { MyRectangle rect = new MyRectangle(); Assert.assertNotNull(rect); try { rect.setWidth(-5); ...
John L. Webber
John.Webber@...
Send Email
Nov 5, 2004
3:07 pm
12260
... Don't try. Write two tests. Write a test to ensure that correct width-setting works: public void testValidWidthSetting() { MyRectangle rect = new...
Chris Dollin
anover_alias
Offline Send Email
Nov 5, 2004
3:07 pm
12261
... My comments to this approach (and it seems everybody else does this, as seen by three nearly identical responses to the original post): 1. Empty {} block....
Alistair A. Israel
aisrael
Offline Send Email
Nov 5, 2004
3:19 pm
12262
Hi Sreenivasa, Cactus (http://jakarta.apache.org/cactus) is the closest you'll probably get to an EJB testing framework. The approach it takes is to run the...
Tambascio, Larry
ltambascio@...
Send Email
Nov 5, 2004
3:28 pm
12263
... I have a pass() method in my extending-TestCase-superclass for just this reason. ... I don't find it easy - I know what exception I want to catch, and ...
Chris Dollin
anover_alias
Offline Send Email
Nov 5, 2004
3:34 pm
12264
... Cactus helps you test EJBs on the server. MockEJB helps you test EJBs without a container....
J. B. Rainsberger
nails762
Offline Send Email
Nov 5, 2004
9:22 pm
12265
... http://c2.com/cgi/wiki?CodingJavaUnitExceptionTests If that URL is not exactly correct, Google this: site:c2.com JUnit exception -- J. B. (Joe) Rainsberger...
J. B. Rainsberger
nails762
Offline Send Email
Nov 5, 2004
9:24 pm
12266
... Understood, but don't let being anal be an excuse to turn your brain off. Never trust absolute rules. ... If you see this: catch (Exception expected) {} ...
J. B. Rainsberger
nails762
Offline Send Email
Nov 5, 2004
9:27 pm
12267
If the empty block bothers you (as it does me), make more assertions: catch (SomeException e) { assertTrue("offending field not included in error ...
Kevin Klinemeier
zipwow
Online Now Send Email
Nov 6, 2004
2:07 am
12268
... That's exactly what I do, something like: exceptionWasThrown = e.getMessage().equals("expected error message"); In hindsight, if you do that then yeah, it...
Alistair Israel
aisrael
Offline Send Email
Nov 6, 2004
6:47 am
Messages 12239 - 12268 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help