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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 13762 - 13791 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
13762
Even in the JUnit FAQ they use assertTrue(true). http://junit.sourceforge.net/doc/faq/faq.htm#tests_9 The editors of this FAQ should not write such an example....
John Smith
haefeleuser
Offline Send Email
Jun 1, 2005
7:58 am
13763
... Even brilliant inventors can't think of everything first time. ... It makes plenty of sense to me: various kinds of do-nothing are the zeroes of our...
Chris Dollin
anover_alias
Offline Send Email
Jun 1, 2005
8:43 am
13764
... Simon! Move along please, nothing to see here folks...... Andrew...
Andrew McDonagh
andy_ipaccess
Offline Send Email
Jun 1, 2005
9:01 am
13765
Chris Dollin <kers@...> wrote: ... Why not make the pass() method more useful by implementing it like this: protected void pass() { wasHere++; } ...
John Smith
haefeleuser
Offline Send Email
Jun 1, 2005
9:10 am
13766
... Exception messages should not be shown to the end-user, period. They are for developers, not for users. As such it's not nearly as crucial to localize them...
Elliotte Harold
elharo@...
Send Email
Jun 1, 2005
9:13 am
13767
... Good exceptions should have some key features: 1) They should be identifiable - you should know that a given exception has been caused by a particular...
Robert Watkins
robertdw26
Offline Send Email
Jun 1, 2005
9:36 am
13768
... Oh let a guy have a little fun. ;-)...
Simon Chappell
spchappell
Offline Send Email
Jun 1, 2005
12:47 pm
13769
... Depends who your users are. You have probably never used WebLogic or any kind of application server... In these cases, exception messages are the only way...
Cedric Beust
cbeust
Offline Send Email
Jun 1, 2005
1:51 pm
13770
... I would go further and say that asserting against the actual message provides a good unit test for when you refactor to an internationalized design. Kevin...
Kevin Lawrence
kevinwilliam...
Offline Send Email
Jun 1, 2005
4:25 pm
13771
... I am curious about this. Are you arguing that exception messages can be poorly written because they shouldn't be shown to users, or that exception messages...
Kevin Lawrence
kevinwilliam...
Offline Send Email
Jun 1, 2005
4:33 pm
13772
... I just want to restore the proper quotation order here: I am arguing that it makes sense to internationalize exception messages and Elliotte is...
Cedric Beust
cbeust
Offline Send Email
Jun 1, 2005
4:39 pm
13773
[Hopefully, this will be another interesting thread for discussion,...] I'm curious about threshholds for valuable (J)Unit Testing. There has been a lot of...
didoss@...
dijdoss
Offline Send Email
Jun 1, 2005
7:28 pm
13774
... The JUnit FAQ writers differ in opinion. I don't think that one or the other is /wrong/, but rather points to differences in what we find easy to read. I...
J. B. Rainsberger
nails762
Offline Send Email
Jun 1, 2005
7:49 pm
13775
... It's hard to imagine that unit tests for 1500 classes would take that long. Are you writing unit level tests ? Or system level tests ? What proportion of...
Kevin Lawrence
kevinwilliam...
Offline Send Email
Jun 1, 2005
7:49 pm
13776
... We have to translate every exception, which is quite a lot of work. In my experience only very few of our exceptions make sense to translate them. An...
John Smith
haefeleuser
Offline Send Email
Jun 1, 2005
10:46 pm
13777
... it, but it might be worth investigating. Never hear of PL/SQLUnit. But there is utPLSQL : http://utplsql.sourceforge.net/ and it's the business. Cheers,...
Clarke, Andrew
apc9090
Offline Send Email
Jun 1, 2005
10:50 pm
13778
I need to limit the test cases run from a JUnit task in my ANT script. In all of my TestCase subclasses, I make sure the constructor indicates a test method of...
sbertran
Offline Send Email
Jun 1, 2005
10:51 pm
13779
... Though both are true in practice, my real motivation is that the information that's useful to a programmer is usually not what's useful to an end user. For...
Elliotte Harold
elharo@...
Send Email
Jun 1, 2005
11:25 pm
13780
#: on behalf of Cedric Beust :: 6/1/2005 12:45 AM :# ... In fact the users can do anything... with an additional inspiration. At some point, i think we should...
Alexandru Popescu
alexpopescu7...
Offline Send Email
Jun 1, 2005
11:44 pm
13781
Hi JB Hey do you have any reference to Ward's view on public fields? I was trying to find one (as I thought I had seen more than just a reference to a...
Shane Mingins
shanemingins
Offline Send Email
Jun 2, 2005
12:49 am
13782
... So, I am not advocating allowing any low-level exception to bubble up to a user and I agree that programmers and users need different information. It's not...
Kevin Lawrence
kevinwilliam...
Offline Send Email
Jun 2, 2005
12:54 am
13783
... As a datapoint for comparison: Jena has about 1300 classes and about 4000 tests, and running those tests takes about 50s on my machine (a 3GHz Intel beast...
Chris Dollin
anover_alias
Offline Send Email
Jun 2, 2005
7:28 am
13784
... You're still thinking like a programmer. "Match the pattern 999-99-9999". What's that? "Match the pattern" is programmer speak. It's a perfectly good...
Elliotte Harold
elharo@...
Send Email
Jun 2, 2005
10:15 am
13785
... Agreed. The important pieces of information here are: * It's an invalid Social Security Number * The number that was being looked at as AB-1234-XY. The...
Robert Watkins
robertdw26
Offline Send Email
Jun 2, 2005
11:06 am
13786
Praveen, Thanks for the reply. I am aware of the use of TestSuite to limit test cases, but this won't work when test cases are run under the JUnit task in Ant,...
Shawn Bertrand
sbertran
Offline Send Email
Jun 2, 2005
12:07 pm
13787
... This is a pretty good illustration of why annotations are a better way to flag test methods than method names. When you call your method testFoo(), you are...
Cedric Beust
cbeust
Offline Send Email
Jun 2, 2005
2:06 pm
13788
... Jutta Eckstein, who is experienced in team sizes around a hundred of developers, is known for saying that *especiall* for larger teams she finds Agile...
Ilja Preuss
ipreussde
Offline Send Email
Jun 2, 2005
2:14 pm
13789
... These are the lines in junits TestSuite causing the problem: if (! isPublicTestMethod(m)) { if (isTestMethod(m)) addTest(warning("Test method isn't public:...
Ilja Preuss
ipreussde
Offline Send Email
Jun 2, 2005
2:27 pm
13790
hi shawn, You can always limit your test case method using your test suite. See the following example: TestSuite suite= new TestSuite(MoneyTest.class); ...
Praveen AH
praveen_maduray
Offline Send Email
Jun 2, 2005
4:02 pm
13791
Hi, I'm quite new to Junit ant want to use Eclipse to carry out unit testing of modules using AspectJ. However, as far as I understand, when the unit tests...
markhoebeke
Offline Send Email
Jun 2, 2005
4:03 pm
Messages 13762 - 13791 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