hi I'm new to the JUnit approach, and am trying to implement a unit testing methodology for an e-commerce framework that my team has been working on. I have...
606
Michael Silverstein
msilverstein@...
Mar 6, 2001 9:06 pm
SilverMark (www.silvermark.com) is currently preparing for release of its extensions to Test Mentor – Java Edition to collaborate more closely with JUnit....
605
Michael Finney
mfinney@...
Mar 6, 2001 7:19 pm
hmmmm your test class extends the class it is testing. Interesting. Michael Finney Sun Certified Programmer for the Java 2 Platform Sun Certified Developer...
604
Herrick, Chuck
chuck.herrick@...
Mar 6, 2001 7:12 pm
1. why does it have to be uniform? In other words, how do you know that what you need is what I need? 2. why should this uniformity effort be a responsibility...
603
balakrishnan sengodan
bsengodan@...
Mar 6, 2001 6:35 pm
Joshua is correct. Though the command "java junit.textui.TestRunner your.Class > filename " helps us to create test reults in a file, we need to have a uniform...
602
Keith Ray
keith.ray@...
Mar 6, 2001 6:27 pm
... Simple factory methods are just an application of "once and only once". interface BInterface { ... }; class B implements BInterface { ... }; class A { ...
601
Joshua Levy
joshualevy@...
Mar 6, 2001 5:11 pm
... I'll ask the more specific question: I'm often expecting a complex text result for a test case. I would like these "right answers" stored in a text file, ...
600
Erik Meade
emeade@...
Mar 6, 2001 7:11 am
The JUnit task in Ant can also log to a file. -- Erik Meade emeade@... Senior Consultant Object Mentor, Inc. http://www.junit.org...
599
Kevin Bourrillion
kevinb@...
Mar 5, 2001 9:17 pm
Yes. java junit.textui.TestRunner your.Class > filename Kevin PS. If you were looking for a more specific answer... just ask a more specific question! :-) ......
598
balakrishnan sengodan
bsengodan@...
Mar 5, 2001 9:10 pm
Hi Everyone: Is there any easy way to write test results in a file __________________________________________________ Do You Yahoo!? Get email at your own...
597
Brian Button
bbutton01@...
Mar 5, 2001 5:18 pm
I personally do, but I view this added complexity as the cost of adding flexibility to my system. I'm willing to pay for testability with a little complexity,...
596
Michael Finney
mfinney@...
Mar 5, 2001 5:01 pm
"need a factory" Do you find that factories which exist to switch between test and non-test code make the design of the system more complex? Michael Finney ...
595
Hugo Garcia
elhugonyc@...
Mar 5, 2001 2:10 pm
Well if class B's method is still not implemented then how about you have Class B method return a predifined value to class A. If class B method is implemented...
594
Dave Dench
d.j.dench@...
Mar 5, 2001 1:49 pm
Sorry if this is a FAQ, but is anyone using JUnit from J(P)ython. If so any simple gotchas or demos to get me going ? Thanks, David ...
593
Johannes Link
john.link@...
Mar 5, 2001 7:14 am
... Extract class B's public methods as an interface and provide a dummy implementation for that; this should be easy since you know what value to return. Now...
592
selena su
selena.su@...
Mar 5, 2001 3:45 am
Hi There: Just a question, scenario: Let say, i have class A and class B. I would like to write a test case for class A which later will then link to class B...
591
Mike Clark
mike@...
Mar 3, 2001 3:47 pm
JUnitPerf is a collection of JUnit test decorators used to measure the performance and scalability of functionality contained within existing JUnit tests. The...
590
Ilja PreuĂź
I.Preuss@...
Mar 2, 2001 2:48 pm
RE: [junit] What's delta?Finally, of course, there's the simplistic answer that floating point operations aren't precise. You can't always be 100% certain that...
589
Van Dooren, Damian
VanDoorenD@...
Mar 2, 2001 12:04 pm
You can black box test Servlets and JSPs with HttpUnit (http://www.httpunit.org ). For white box testing of Servlets I believe J2EEUnit will allow that...
588
selena su
selena.su@...
Mar 2, 2001 7:12 am
Hi There: Is there any methodologies to test on Servelt and JSP using JUnit ? Another words, how am i going to test on Servlet and JSP ? cheers,...
587
Robert Watkins
robertw@...
Mar 1, 2001 10:48 pm
One use of delta can be thought of like this: Imagine a piece of code that monitors some value (say, Machine Operating Temperature). If the temperature is out...
586
Herrick, Chuck
chuck.herrick@...
Mar 1, 2001 7:38 pm
Of course, I meant .equals(Object). And, for completeness, see BigDecimal.compareTo(BigDecimal) ... ...
585
Herrick, Chuck
chuck.herrick@...
Mar 1, 2001 7:17 pm
Does 7.1 == 7.10 return true? If you are a java.math.BigDecimal, and someone sends you .equal(), you won't think so. This is a precision issue ... and yes, if...
584
Blum, Robert
rblum@...
Mar 1, 2001 7:06 pm
The reason for this is that floating point computations are usually not exact. Choose a delta that still satisfies your correctness requirement. If you think...
583
Matt Munz
matt@...
Mar 1, 2001 6:57 pm
Hi all, The obvious answer: That triangle-shaped Greek letter commonly used to represent change (sometimes variance) in math-speak. The less confusing (for me)...
582
Herrick, Chuck
chuck.herrick@...
Mar 1, 2001 4:11 pm
It can be an interesting experience to select your C:\ drive, choose Find ... files and search for occurrences of java.exe. ... ...
581
Dinwiddie, George
George.Dinwiddie@...
Mar 1, 2001 4:05 pm
Try also giving an explicit path to the java interpreter. I've run into problems before when another java.exe existed earlier in the path. - George ... From:...
580
tsmets@...
Mar 1, 2001 3:46 pm
OK, this is what I've come to with the problem. My command line is now %runner% -cp %cp%;%classes_root%ejb;%classes_root%kernel junit.swingui.TestRunner...
579
Brian Button
bbutton01@...
Mar 1, 2001 2:34 pm
See if starting running junit with the -noloading flag fixes the problem. If it does, then you need to make additional changes to your excluded.properties...
578
tsmets@...
Mar 1, 2001 9:45 am
I've done an program that uses some infos defined in XML files. As I'm Trying NOW to make the code bug - free I'm writting the Junit test cases for that class....