I am trying to fix the Class Path for JUnit so I can run some tests by way of Ant. I have been to many sites on setting the path, but have come up with the ...
Hi, I have 2 objectives for my testcase below 1) to test the registration process 2) to test the duplicated user when I run the test, I am getting either a...
I believe you need to have the junit.jar in $ANT_HOME/lib ... -- Jason Rogers "Where there is no vision, the people perish..." Bible, Proverbs 29:18...
... Not with this information. Can you show us the specific test failures? We have no idea how your code actually behaves (was MHHERegistrar does, for...
... don't know about this, but I do have a comment. Don't initialize those variables at init time. Any shared variable you want your tests to access should...
... Yay! Ron Jeffries www.XProgramming.com Scientists discover the world that exists; engineers create the world that never was. -- Theodore von Karman...
Congratulations, JB! Can't wait to see it. Scott Stirling Workscape, Inc. ________________________________ From: J. B. Rainsberger [mailto:jbrains@...]...
... [both variables are Strings] ... Strings are immutable, so I don't see that this can happen. What am I missing? [Amusingly, the only Google hit I got for...
... Sounds like you need to read up on references... The simple version is that "ABC" may be living at slot A in memory. You then set your variable newLoginId...
Yes. This is true. The reason is to do with classloaders. Both Ant and JUnit employ their own custom classloaders and they don't play well together! (There is...
Chappell, Simon P
simon.chappell@...
Apr 5, 2004 3:34 pm
10756
Dear All, I've noticed a pattern I have slipped into recently when writing a number of units. A lot of my work revolves around using immutable data types ...
Hello, In jUnit framework, there is a class called Protectable. What is the purpose of this class? I know that TestResult use a subclass of Protectable to...
Hi, I am using HTTPUnit for unit testing of some of my web applications. Currently any comment I write using System.out.println("")is not visible when any of...
... Simon, I've never had trouble running JUnit tests via Ant on Windows. Is the classloader problem that you mention specific to Mac OS X? I haven't tried ...
... Thank you, but that will not be necessary. I just need my brain defogging. Is the claim that the original code depends on the reference value of the login...
Hello, I have installed junit and am using ant to run it. I am new to junit and ant and have the following target declared in the buildfile. <target...
I have lost the context of the test code... The comment I wrote was just to clear up the fog with the immutable string business. ... -- Jason Rogers "Where...
... Yes. Show us the content of your <classpath> entry with id "classpath". -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com ::...
... <snip /> Protectable was born when they removed duplication between TestCase and TestSetup. See the source for TestSetup for details. -- J. B. Rainsberger,...
... Yes, but if that object is guaranteed never to change (which is true of Strings), what is the harm? This is the type of aliasing that is considered ...
We have a hanging unit test suite -- is there a TextRunner that will output the name of each test class (and possibly test method) as it's being run so we can...
... (more precisely, textui.TestRunner...) BTW, we're in J++, so swingui is not an option (though awtui would be, if there's some help inside there...) -- ...
Check the value of the <path id="classpath"/> element in your build file. It doesn't have the class in question in there. ... -- Jason Rogers "Where there is...
... System.out.println("") only prints an empty line, so it probably /looks/ like it's doing nothing. As for your problem, that depends on your web container....
... JUnit-addons Test Runner can do this: add a TestListener that spits out the name. The alternate is to tack it on to the JUnit TextUI source. (Not hard.) --...
While that is true, it is irrelevant to his example test (unless I missed something about my "simple" explanation and your correction) because he wasn't...
... Are you sure? Check the bytecode. The last I saw, the Java compiler took care of this, and declaring the variable outside the loop didn't make a ...