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

Messages

Advanced
Messages Help
Messages 22630 - 22659 of 24405   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
22630 yme0987654321 Send Email Apr 22, 2010
2:05 pm
Max, If that is your use case, what isn't accomplished with the @BeforeClass method?...
22631 Max Bowsher
maxbowsher Send Email
Apr 22, 2010
6:16 pm
... There's nothing you can do with a method @Rule that you can't do with a @Before and @After, but rules allow packaging and re-use of setup/teardown...
22632 tomte_da Send Email Apr 23, 2010
12:11 pm
Hi, when coding assertTrue( this.getClass().getSimpleName() + "Ref ... found to be null: " + anything.toString()) the slow code for the concatenated assertion...
22633 tomte_da Send Email Apr 23, 2010
12:12 pm
Hi, I will not sequentially scroll throw more than 22.000 postings, this way the forum is useless. Please provide a tree view of topics and its replies. Or is...
22634 David Saff
dsaff Send Email
Apr 23, 2010
12:48 pm
tomte, I'm curious about the feature you are asking for. Have you profiled a test run, and found the generation or execution of this code to be a serious...
22635 David Saff
dsaff Send Email
Apr 23, 2010
12:49 pm
"Group by topic"? I see it there at http://tech.groups.yahoo.com/group/junit/ David Saff...
22636 tomte_da Send Email Apr 23, 2010
2:28 pm
Hi, yes, String concatenation is known to be a serious performance lack. And it also blows up the size of the compiled code without use. At least for code to...
22637 yme0987654321 Send Email Apr 23, 2010
3:39 pm
Max, I really don't think that is true. MethodRule allows you to do things based on the specific test name, and intercept and even replace the running of a...
22638 Max Bowsher
maxbowsher Send Email
Apr 23, 2010
8:42 pm
... Your point concerning ExpectedException is valid, but arguing that method rules are even more useful than class rules does not say anything about class...
22639 Bogdan
bogdanmocanu... Send Email
Apr 23, 2010
8:42 pm
Hi tomte, indeed, if you have a multitude of such operations, the difference in the generated compiled code can be of some importance. However, since we are...
22640 oohay1_2005 Send Email Apr 24, 2010
2:25 am
hello, how can i assert the result of the void login method below thanks === testLogin method === public final void testLogin() { try{ String enUser =...
22641 Simon Chappell
spchappell Send Email
Apr 24, 2010
2:29 am
Generally, problems testing a behavior in your code means that it would benefit from simplification or breaking into multiple methods, each of which is easier...
22642 Robert Wenner
robertwenner Send Email
Apr 24, 2010
3:08 am
... It can be, but it is not automatically one. To be honest, I have never seen String manipulation to be the bottle neck in real life. Run a benchmark, don't...
22643 Georg
le_garcon_en... Send Email
Apr 25, 2010
8:02 am
Hi! Though I fully agree with the statements in other posts answering that tests in production code is evil, a possible solution to your problem. In a unit...
22644 David Saff
dsaff Send Email
Apr 27, 2010
4:38 pm
It's somewhat more symmetric if you look at: Before -> BeforeClass After -> AfterClass Rule -> ClassRule David...
22645 David Saff
dsaff Send Email
Apr 27, 2010
4:43 pm
Max, The main obstacle I'm aware of right now is the committers&#39; time. One thing that would help is clear consensus on community opinion. There are currently...
22646 David Saff
dsaff Send Email
Apr 27, 2010
5:46 pm
Todd, I'm afraid I can't. There's no special support in ant that I'm aware of for categories, so I'd be surprised if the XML output looked significantly...
22647 Max Bowsher
maxbowsher Send Email
Apr 27, 2010
7:19 pm
... Thankyou, this I can usefully do. Alistair Israel's patch is a straightforward propagation of the existing concepts of MethodRules to class level. Daniel...
22648 yme0987654321 Send Email Apr 27, 2010
11:39 pm
Hi Max, I guess my question is other than the syntactical sugar, what does a class level rule gain for you? I would expect it to be something more than a way...
22649 Max Bowsher
maxbowsher Send Email
Apr 28, 2010
1:37 pm
... I just explained that in my previous reply. When the boilerplate that is avoided is so excessive, the syntactic sugar itself becomes a valuable feature. ...
22650 rionard_zhao Send Email Apr 28, 2010
1:41 pm
Hi, I'm a developer of my company's test framework. Recently, i'm so interested in the usage of @DataPoint and @Theory. I want to use @DataPoint to provide...
22651 Brett Daniel
brettddaniel Send Email
Apr 28, 2010
1:59 pm
There is an issue open for this feature request: http://github.com/KentBeck/junit/issues/issue/78 Vote up if you agree with the suggested "runDiscretely"...
22652 prettyrlr
rionard_zhao Send Email
Apr 28, 2010
4:56 pm
I have voted up for that. Hope that can be considered. Thank you~ 在2010-04-28 21:51:20,"Brett Daniel" <brettdaniel@...> 写道: There is an issue...
22653 yme0987654321 Send Email Apr 28, 2010
9:25 pm
... I really don't perceive that as excessive boilerplate. YMMV. ... Test instantiation is yes, but I would expect a ClassRule to provide a hook into the...
22654 cbananth Send Email Apr 30, 2010
12:48 pm
Hi, Is it possible to test a runtime scenario using junit? For instance, similar to attaching an eclipse debugger to a running process, attach a junit test...
22655 David Saff
dsaff Send Email
Apr 30, 2010
1:18 pm
Ananth, Needing to change a small area in a large, tangled codebase is an all-too-familiar problem. If you haven't already read Michael Feather's Working...
22656 KARR, DAVID (ATTSI)
davidmichael... Send Email
Apr 30, 2010
6:45 pm
I must be missing something simple, but why is there no "assertNotEquals()" in JUnit? There is "assertNotSame()", but that's not quite the same thing. I...
22657 Kent Beck
kentlbeck Send Email
Apr 30, 2010
7:38 pm
The challenge with assertions is figuring out which ones need to be in org.junit.Assert and which can reasonably be left out. There are potentially thousands...
22658 Ananth
cbananth Send Email
Apr 30, 2010
7:38 pm
Hi David, Thanks for the reply. To answer your question, I need to somehow pass the objects into the Junit test to call the method. Let me explain the scenario...
22659 Kent Beck
kentlbeck Send Email
Apr 30, 2010
7:46 pm
Ananth, The scenario seems clear enough to me, and the short answer is that no, JUnit doesn't do anything like that. Not that it couldn't, but that would be...
Messages 22630 - 22659 of 24405   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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