If your job will be gone before you can write a test case / anyone notices, no one cares about test case ... From: Mike Forsberg To: junit@yahoogroups.com ...
22808
Bruce
brewsterw
Jul 15, 2010 2:06 am
Hi, I want to use the Assume class to dynamically turn off some tests. There are tests I want run when we run full regression but not at other times. I have...
22809
David Saff
dsaff
Jul 15, 2010 7:41 pm
Bruce, What you've done looks good from the JUnit side at first glance. I wonder if the ant team is maintaining their own copy of part of the JUnit...
22810
J. B. Rainsberger
nails762
Jul 15, 2010 9:12 pm
... You're most welcome. ... I err on the side of one data set to test (method), however if a handful (six?) of tests share a data set, I can live with that....
22811
J. B. Rainsberger
nails762
Jul 15, 2010 9:15 pm
... JUnit started this way. I recommend you google a paper by Kent Beck with the keywords "smalltalk testing patterns". ... JUnit provides framework extension...
22812
Trenton D. Adams
trenton_adam...
Jul 15, 2010 10:22 pm
... You can also easily exclude or include tests using profiles in maven, if you happen to use maven as a build tool. You would need to write code for this if...
22813
Bruce Wobbe
brewsterw
Jul 16, 2010 12:09 am
Thanks David, I don't think it's ant as I am getting the same issue with eclipse ... [Non-text portions of this message have been removed]...
22814
J
jxracer007
Jul 21, 2010 12:01 am
Hello to all, I am completely new to all this so please forgive my ignorance, i have a small question i am trying to find documentation regarding the initial...
22815
bill.shannon@...
bs00011
Jul 21, 2010 12:01 am
[This is a recording.] I'm on vacation until July 29, 2010. I'll be reading mail occasionally. Bill...
22816
offlineman78
Jul 23, 2010 12:43 am
I am having a problem where the JUnit 4 runner isn't waiting for the @BeforeClass method to finish before running some of the tests contained within the class....
22817
Kent Beck
kentlbeck
Jul 23, 2010 1:43 pm
Matt, Thank you for exploring this before reporting. I was waiting to see if someone else jumped in on this because I don't have any experience with EJBs. The...
22818
David Saff
dsaff
Jul 23, 2010 7:43 pm
Bruce, Sorry to be a while getting back to you. Can you post the stack trace that you get in Eclipse? David Saff...
22819
David Saff
dsaff
Jul 23, 2010 7:49 pm
I'm not sure yet the right way to do this. Is there a feature request on github yet? David Saff...
22820
kk_oop
Jul 26, 2010 6:38 pm
Hi. I have a JUnit 4 TestCase, let's call it MyTestCase. I want to initialize some state once prior to running any of MyTestCase39;s tests. I see my options...
22821
David Saff
dsaff
Jul 26, 2010 6:49 pm
@BeforeClass runs only once ever, whereas the constructor runs once per test method. Does that help? David...
22822
kk_oop
Jul 26, 2010 11:47 pm
Hi. I see! Thanks for clearing that up! That being said, is there a time I should use the test case's constructor instead of @Before? Thanks again, Ken ... ...
22823
David Saff
dsaff
Jul 27, 2010 2:42 am
There's a slight difference between constructors and @Before: an exception thrown from the constructor permanently kills the test, without further cleanup...
22824
offlineman78
Jul 27, 2010 5:14 am
I have solved the issue of it not waiting for @BeforeClass to finish, it turns out that it was, but my BeforeClass method was finishing before I wanted it to...
22825
contactantelink
Jul 27, 2010 10:59 pm
Antelink launches a new metric for the Open Source Community after a first metric of how many times a library is reused in the Open Source Community.Thanks to...
22826
glennindevelopment
glennindevel...
Jul 29, 2010 2:21 pm
Symptoms: a project in Eclipse 3.5, with which I have been successfully using a JUnit 4 test suite all along. This morning suddenly when I run a test class...
22827
Colin Vipurs
zodiac_zx6
Jul 29, 2010 3:24 pm
This has happened to me several times - usually just restarting Eclipse solves it ... -- Maybe she awoke to see the roommate's boyfriend swinging from the...
22828
bill.shannon@...
bs00011
Jul 29, 2010 3:29 pm
[This is a recording.] I'm on vacation until July 29, 2010. I'll be reading mail occasionally. Bill...
22829
GLENN HOLLIDAY
glennindevel...
Jul 29, 2010 4:59 pm
... I overlooked that one when I was trying simple things. I'm still interested in why this problem develops, but I'm happy to have it solved. Thanks Colin. ...
22830
Simon Chappell
spchappell
Jul 31, 2010 11:39 am
Once again, it's time for a little reminder of some of the finer points of JUnit mailing list etiquette. This will be posted now and then; not often enough to...
22831
Simon Chappell
spchappell
Jul 31, 2010 12:13 pm
I'm doing some spring cleaning on my hard drive and found a few example code projects that I used when teaching "Getting started with JUnit" sessions at ...
22832
Brett Daniel
brettddaniel
Aug 1, 2010 12:53 am
Thanks, Simon. These projects would be very useful for me when teaching unit testing to undergrads. How do the other projects compare in size and complexity to...
22833
Simon Chappell
spchappell
Aug 1, 2010 1:06 am
Brett, The next one is a representation of a fraction and has two fields and validation. After that I have a U.S. Social Security Number with three fields and...
22834
David Saff
dsaff
Aug 1, 2010 1:26 am
Simon, Thanks for this. I'd like to learn more. For example, why do you initialize three aliases to the same immutable TRUE value? Thanks, Dvid On Sat, Jul...
22835
Simon Chappell
spchappell
Aug 1, 2010 2:10 am
David, For the test, I created three objects for the equality tests. Your point about them being the same physical object is a good one, I should actually use...
22836
roele2003
Aug 2, 2010 1:12 pm
I tried extending JUnit for my own needs with several Annotations. Because i have an own Ignore Annotation which i want to use on method and class level i...