Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 31224
  • Category: Java
  • Founded: Nov 6, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

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

Messages

Advanced
Messages Help
Messages 20345 - 20374 of 24386   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Simplify | Expand Author Sort by Date v
20374 Stefan Schulze
docbanzai99 Send Email
Mar 13, 2008
10:28 pm
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...
20373 toalexsmail Send Email Mar 13, 2008
10:28 pm
... 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...
20372 toalexsmail Send Email Mar 13, 2008
10:27 pm
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...
20371 Ilja Preuss
ipreussde Send Email
Mar 12, 2008
9:38 pm
... Oh. I thought that Stefan was talking about a complex *production* method that he wanted to test, not a complex test method. Cheers, Ilja...
20370 toalexsmail Send Email Mar 12, 2008
9:23 pm
... Thank you very match! I am try to figure out what to do....
20369 toalexsmail Send Email Mar 12, 2008
9:23 pm
want to correct my last e-mail in this Thread. Test method of calculator should be public void testNegativeInput() { try { calc.sqrt(-1); ...
20368 Cédric Beust 
cbeust Send Email
Mar 12, 2008
8:24 pm
... 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. ...
20367 Ilja Preuss
ipreussde Send Email
Mar 12, 2008
6:58 pm
Did you take a look at http://junit.sourceforge.net/#Developer ?...
20366 toalexsmail Send Email Mar 12, 2008
1:43 pm
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...
20365 toalexsmail Send Email Mar 12, 2008
1:43 pm
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...
20364 toalexsmail Send Email Mar 12, 2008
1:42 pm
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...
20363 toalexsmail Send Email Mar 12, 2008
1:42 pm
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...
20362 toalexsmail Send Email Mar 12, 2008
1:42 pm
In JUnit 3.8 there was difference between assertion error (assertTrue(flag) fails, for example) and exception (unexpected exception thrown). It was indicated...
20361 toalexsmail Send Email Mar 12, 2008
1:42 pm
Currently TextListener on every event simply writes to standard output (or to PrintWriter). If junits or application aslo writes its logs to standard output...
20360 toalexsmail Send Email Mar 12, 2008
1:42 pm
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); ...
20359 toalexsmail Send Email Mar 12, 2008
1:42 pm
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....
20358 toalexsmail Send Email Mar 12, 2008
1:42 pm
I have some ideas of little improvements of JUnit. See, topics "Filter improvement", "TextListener improvement", "FailedBefore exception", "Parameterized and...
20357 toalexsmail Send Email Mar 12, 2008
1:42 pm
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...
20356 Ilja Preuss
ipreussde Send Email
Mar 12, 2008
7:52 am
... 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...
20355 Stefan Schulze
docbanzai99 Send Email
Mar 12, 2008
7:39 am
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...
20354 Nat Pryce
nat_pryce Send Email
Mar 5, 2008
8:18 am
... 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...
20353 name zero
namezero911 Send Email
Mar 5, 2008
12:37 am
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...
20352 justingordon Send Email Mar 3, 2008
11:43 pm
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...
20351 Ilja Preuß
ipreussde Send Email
Mar 3, 2008
8:45 am
... Works just fine for me, without any special attribute or something. What does your task look like? Cheers, Ilja...
20350 Veera Raghav Reddy
veerapulagam Send Email
Mar 3, 2008
7:33 am
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 ...
20349 Dennis Lloyd Jr
dennis_lloyd_jr Send Email
Mar 2, 2008
8:29 pm
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 ...
20348 Ilja Preuss
ipreussde Send Email
Mar 2, 2008
4:11 pm
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...
20347 Dennis Lloyd Jr
dennis_lloyd_jr Send Email
Mar 1, 2008
6:42 pm
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 ...
20346 Veera Raghav Reddy
veerapulagam Send Email
Mar 1, 2008
6:42 pm
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...
20345 Alexandru Popescu ...
alexpopescu7... Send Email
Mar 1, 2008
2:04 pm
... 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...
Messages 20345 - 20374 of 24386   Newest  |  < Newer  |  Older >  |  Oldest
Add to My Yahoo!      XML What's This?

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