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 ...
10745
mcgqa
Apr 2, 2004 7:06 pm
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...
10746
Jason Rogers
jacaetev
Apr 2, 2004 8:13 pm
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...
10747
J. B. Rainsberger
nails762
Apr 2, 2004 10:11 pm
... 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...
10748
Jason Rogers
jacaetev
Apr 2, 2004 11:03 pm
... 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...
10749
J. B. Rainsberger
nails762
Apr 3, 2004 6:20 pm
Everyone: JUnit Recipes: Practical Programmer Testing Methods has hit online book stores. -- J. B. Rainsberger, Diaspar Software Services ...
10750
Ron Jeffries
ronaldejeffries
Apr 3, 2004 7:43 pm
... Yay! Ron Jeffries www.XProgramming.com Scientists discover the world that exists; engineers create the world that never was. -- Theodore von Karman...
10751
Vincent Massol
vmassol
Apr 4, 2004 2:17 pm
Congratulations! -Vincent ... book...
10752
Stirling, Scott
stirlingdev
Apr 4, 2004 2:43 pm
Congratulations, JB! Can't wait to see it. Scott Stirling Workscape, Inc. ________________________________ From: J. B. Rainsberger [mailto:jbrains@...]...
10753
Chris Dollin
anover_alias
Apr 5, 2004 1:04 pm
... [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...
10754
Jason Rogers
jacaetev
Apr 5, 2004 1:36 pm
... 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...
10755
Chappell, Simon P
simon.chappell@...
Apr 5, 2004 3:34 pm
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...
10756
Jonathan Oddy
jonathanoddy
Apr 5, 2004 4:22 pm
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 ...
10757
Endy Tjahjono
q20fch
Apr 5, 2004 4:30 pm
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...
10758
prachi_qa
Apr 5, 2004 4:30 pm
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...
10759
Demyanovich, Craig - ...
demmer12
Apr 5, 2004 4:44 pm
... 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 ...
10760
Chris Dollin
anover_alias
Apr 5, 2004 4:52 pm
... 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...
10761
nathan
nsullins
Apr 5, 2004 6:29 pm
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...
10762
Jason Rogers
jacaetev
Apr 5, 2004 6:36 pm
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...
10763
J. B. Rainsberger
nails762
Apr 5, 2004 7:45 pm
... Yes. Show us the content of your <classpath> entry with id "classpath". -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com ::...
10764
J. B. Rainsberger
nails762
Apr 5, 2004 7:47 pm
... <snip /> Protectable was born when they removed duplication between TestCase and TestSetup. See the source for TestSetup for details. -- J. B. Rainsberger,...
10765
Kathy Van Stone
KathyVS
Apr 5, 2004 7:56 pm
... 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 ...
10766
Chris Morris
workmo
Apr 5, 2004 8:10 pm
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...
10767
Chris Morris
workmo
Apr 5, 2004 8:11 pm
... (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...) -- ...
10768
Chris Morris
workmo
Apr 5, 2004 9:16 pm
... I hacked out my own textui.TestRunner descendant class to use in a verbose mode. Piece of cake, really. -- Chris http://clabs.org...
10769
Jason Rogers
jacaetev
Apr 5, 2004 9:18 pm
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...
10770
J. B. Rainsberger
nails762
Apr 5, 2004 9:26 pm
... 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....
10771
J. B. Rainsberger
nails762
Apr 5, 2004 10:23 pm
... 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.) --...
10772
Jason Rogers
jacaetev
Apr 5, 2004 10:55 pm
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...
10773
J. B. Rainsberger
nails762
Apr 5, 2004 11:54 pm
... 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 ...