Hi, Can you explain what information you need. Creating the report is not difficult: You run your testsuite with Ant's JUnit task, and create a report with the...
Hey, there! I'm hoping someone on this end of the world can answer a question for me. I tried posting this on the Maven mailing list but haven't gotten any...
Eh... we did reply with the answer: http://www.nabble.com/JUnit-tests-requiring-j2ee.jar-fail-when-running-mvn-surefire%3Atest-td15060503.html Did you not get...
Hi, ... I'm not sure what you mean by "unique to this class" but the static field initialized by a @BeforeClass method is accessible by all instances of the...
Hello, I am trying to test a parser class I wrote. In my test method I invoke the parser method I want to test with a string of data. However , the method...
Hi Sytze, ... Through the Sourceforge project's tracker: http://sourceforge.net/projects/junit/ Lasse -- Lasse Koskela * Author of "Test Driven" (Manning...
... By substituting a test double (a spy) for the listener in your unit test, effectively giving you access to the interactions between the parser and the...
You need to create a object that implements the Listener interface, and use that in your test. These are generally known Mocks, Stubs,Fakes... e.g interface...
... When parsing structured data, the parameters and precise sequence of calls to the listener will be important. If you write your mock objects by hand it...
... Not necessarily, we don't know what the parsing algorithm is, so can't make this call. ... Don't get me wrong, Jmock and the other mocking frameworks are...
Thanks everyone for the replies :) I wound up searching the archives with the word asynchronous and found mention of FutureResult. Pretty cool class :) That...
Hi, if I may rewrite my question, when I run this "Test" class, how many instances of this class are created and runned ?! -- Thx, Milan. ... From: Lasse...
I am trying to use <junit> target in ANT 1.6 and have class loader issues as described in this FAQ. http://ant.apache.org/faq.html#delegating-classloader I am...
... Well, I just did a little experiment, which confirmed my intuitive understanding of how it works. public class TestBeforeClass { public static MyClass ins;...
Hi, I am interested in gathering insight into executing and managing tests where the environment is a possibly large set of virtualized (ie, VMWare) machines...
The answer to what I think is Milan's question is "one for each method annotated with @Test". The order, James, is as you have pointed out. Regards, Kent Beck ...
Does anyone have any recommendations on how they arrange/group their jUnit tests? I've poked around the net but haven't gotten much in this category... The...
... Try the JUnit FAQ. This entry might be a good place to start: http://junit.sourceforge.net/doc/faq/faq.htm#tests_15 There are many good pieces of...
Simon, ... Definitely, and started there first! It gave me some really good pointers and make me rethink some of my strategy! ... behaviours. ... for ... ...
Dear Mr. Beck, that's exactly what I needed to know. Instance of Test class is created for every @Test method. Thank you. _____________________________ Best...
... I also make the experience to think in terms of behaviors of the class under test and the methods. For myself I think thats the best way to test the...
I ran diagnostics on the ant i am using. I see junit : Missing dependency junit.framework.Test for junit.. I didnt quite follow the instructions on how to go ...
Hello Everyone, I am interested if the "annotated description" feature can get the javadoc method description and adding a textual description to its relative...
... Well, in the meanwhile I solved my needs picking directly the source code of the Ant JUnit task and patching :p So if my little patch solution can be...