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....
... 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...
... 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@...
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...
... 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...
... 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...
... 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...
[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...
... 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...
... 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...
... 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...
... 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,...
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...
... 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@...
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...
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...
... 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...
... 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...
... 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@...
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...
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,...
... 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...
... 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...
... These are the lines in junits TestSuite causing the problem: if (! isPublicTestMethod(m)) { if (isTestMethod(m)) addTest(warning("Test method isn't public:...
hi shawn, You can always limit your test case method using your test suite. See the following example: TestSuite suite= new TestSuite(MoneyTest.class); ...
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...