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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 20345 - 20374 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
20345
... Ilja, I think the original OP is thinking about all possible combination of input (positive/negative values). I am also thinking that he has left aside the...
Alexandru Popescu ...
alexpopescu7...
Offline Send Email
Mar 1, 2008
2:04 pm
20346
Hi Ilja, Thanks for your kind response... Here I am providing the sample test script that we are using, please suggest me the best way to test this kind of...
Veera Raghav Reddy
veerapulagam
Offline Send Email
Mar 1, 2008
6:42 pm
20347
Hi Raghava, You might be interested in looking at some articles on pair-wise testing. Here is a link I found after a quick search on google that explains the ...
Dennis Lloyd Jr
dennis_lloyd_jr
Offline Send Email
Mar 1, 2008
6:42 pm
20348
First, you probably should get rid of a lot of the boiler plate code in your test. The catch block is not needed - just let the exception propagate, JUnit will...
Ilja Preuss
ipreussde
Offline Send Email
Mar 2, 2008
4:11 pm
20349
Hi Raghava, It seems that your test case is just checking whether or not an exception is thrown. Typically when testing, you want to check the behavior of the ...
Dennis Lloyd Jr
dennis_lloyd_jr
Offline Send Email
Mar 2, 2008
8:29 pm
20350
Hi Ilja, Thanks for your kind response. Shall I have to write same method once agian for different set of data(for negative cases) Please answer this query ...
Veera Raghav Reddy
veerapulagam
Offline Send Email
Mar 3, 2008
7:33 am
20351
... Works just fine for me, without any special attribute or something. What does your task look like? Cheers, Ilja...
Ilja Preuß
ipreussde
Offline Send Email
Mar 3, 2008
8:45 am
20352
I just uploaded an update to the Dependent Object Framework (DOF) http://sourceforge.net/projects/dof/ Description: http://www.junit.org/node/308 In a...
justingordon
Offline Send Email
Mar 3, 2008
11:43 pm
20353
Hi there. I know this is not the really correct place for this, but what I actually need is an advice from people who are in the unit testing business in JAVA...
name zero
namezero911
Offline Send Email
Mar 5, 2008
12:37 am
20354
... This will result in very brittle tests because it will overly constrain the number and order of calls and exact parameter values, many of which will be...
Nat Pryce
nat_pryce
Offline Send Email
Mar 5, 2008
8:18 am
20355
Hi... is it possible to mark a testmethod A to depend on (or to be executed after) a testmethod B? Probably by a specific annotation or something else? I'd...
Stefan Schulze
docbanzai99
Offline Send Email
Mar 12, 2008
7:39 am
20356
... In my not so humble opinion, a complex method is a serious design smell - let alone a complex constructor. So I'd rather change the design so that it's not...
Ilja Preuss
ipreussde
Offline Send Email
Mar 12, 2008
7:52 am
20357
AFAIK this feature is replacement to TestSuite in JUnit 3.8. But it is less flexible then TestSuite. In JUnit 3.8 you have an option to add some methods from...
toalexsmail
Offline Send Email
Mar 12, 2008
1:42 pm
20358
I have some ideas of little improvements of JUnit. See, topics "Filter improvement", "TextListener improvement", "FailedBefore exception", "Parameterized and...
toalexsmail
Offline Send Email
Mar 12, 2008
1:42 pm
20359
I was very exciting to know that JUnit 4 has Parameterized feature. I have used almost exact the same mechanism in JUnit 3.8 for making the parametrized test....
toalexsmail
Offline Send Email
Mar 12, 2008
1:42 pm
20360
I want to correct my last e-mail in this Thread. Test method of calculator should be public void testNegative() throws Exception { try { calc.sqrt(-1); ...
toalexsmail
Offline Send Email
Mar 12, 2008
1:42 pm
20361
Currently TextListener on every event simply writes to standard output (or to PrintWriter). If junits or application aslo writes its logs to standard output...
toalexsmail
Offline Send Email
Mar 12, 2008
1:42 pm
20362
In JUnit 3.8 there was difference between assertion error (assertTrue(flag) fails, for example) and exception (unexpected exception thrown). It was indicated...
toalexsmail
Offline Send Email
Mar 12, 2008
1:42 pm
20363
Request class has method public static Request method(Class<?> clazz, String methodName); which suppose to run only methodName from the class. I think it would...
toalexsmail
Offline Send Email
Mar 12, 2008
1:42 pm
20364
In the @Test annotation there is expected() parameters that is used to indicate expected exception. It should be considered to enable check also the cause of...
toalexsmail
Offline Send Email
Mar 12, 2008
1:42 pm
20365
There is 2 runners that did the same work. More precisely, all work that can be done by Parameterized runner can be done by Theories runner. I think it should...
toalexsmail
Offline Send Email
Mar 12, 2008
1:43 pm
20366
Hello Ilja! First of all I want to answer on your direct question - yes you should write different method for negative case because its code is completely...
toalexsmail
Offline Send Email
Mar 12, 2008
1:43 pm
20367
Did you take a look at http://junit.sourceforge.net/#Developer ?...
Ilja Preuss
ipreussde
Offline Send Email
Mar 12, 2008
6:58 pm
20368
... For unit tests, yes. For integration/functional tests, it's pretty common. Stefan, for what it's worth, TestNG lets you specify such dependencies, e.g. ...
Cédric Beust 
cbeust
Offline Send Email
Mar 12, 2008
8:24 pm
20369
want to correct my last e-mail in this Thread. Test method of calculator should be public void testNegativeInput() { try { calc.sqrt(-1); ...
toalexsmail
Offline Send Email
Mar 12, 2008
9:23 pm
20370
... Thank you very match! I am try to figure out what to do....
toalexsmail
Offline Send Email
Mar 12, 2008
9:23 pm
20371
... Oh. I thought that Stefan was talking about a complex *production* method that he wanted to test, not a complex test method. Cheers, Ilja...
Ilja Preuss
ipreussde
Offline Send Email
Mar 12, 2008
9:38 pm
20372
However in JavaDoc of Sortable class is clearly stated that "Test sorting should not be used to cope with order dependencies between tests." So one can...
toalexsmail
Offline Send Email
Mar 13, 2008
10:27 pm
20373
... smell ... pretty common. ... In JUnit 3.8 there is workaround. You should specify method you want to run as first, and dependent method as second in the...
toalexsmail
Offline Send Email
Mar 13, 2008
10:28 pm
20374
Ilja, I think you were right. Currently, I'm working on a simple parser and evaluator. In this example, I have lot's of tests to verify the parsers...
Stefan Schulze
docbanzai99
Offline Send Email
Mar 13, 2008
10:28 pm
Messages 20345 - 20374 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