Search the web
Sign In
New User? Sign Up
junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 19215 - 19244 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
19215
Ok. Here is whats happening. Junit has a samples directory under org/junit/samples. I modified the file called SimpleTest.java and tried to compile it using...
fstatovci
Offline Send Email
Apr 1, 2007
6:23 pm
19216
... [snip] ... The faq (in particular):- http://junit.sourceforge.net/doc/faq/faq.htm#started_2 includes information about setting your classpath to include...
Mark Salter
mark_l_salter
Offline Send Email
Apr 1, 2007
6:39 pm
19217
Has someone successfully used JUnitPerf with JUnit4 test classes? If so, please post example(s), either here or on ...
Thomas L Roche
tlroche
Offline Send Email
Apr 1, 2007
11:43 pm
19218
Hi, I'm using a Parameterized test and would like to perform a single setup state (like @BeforeClass) for all test methods to use. This setup method needs to...
cliveborrageiro
Offline Send Email
Apr 2, 2007
10:54 am
19219
Mark, thanks for the response. I believe that my class path is setup correctly, since when i run java org.junit.runner.JUnitCore org.junit.tests.AllTests it...
fstatovci
Offline Send Email
Apr 2, 2007
5:40 pm
19220
Hello, I have observed that both setup() and the constructor for the test class are called once for each test method. I have put an example below. Why is the...
Adrian Parker
adrian_l_parker
Offline Send Email
Apr 3, 2007
2:58 am
19221
... Although JUnit invokes each test it in its own instance of TestCase, it reserves the right to pool instances if it wanted to. NUnit, for example, pools...
J. B. Rainsberger
nails762
Offline Send Email
Apr 3, 2007
3:53 am
19222
David, with System.getProperty("var"); I am able to get the value assigned, I want to know how long that variable will be available for me, But my question is...
Shubha B S
mailtoshubha
Offline Send Email
Apr 3, 2007
10:58 am
19223
... I imagine the data is available for only the lifetime of the JVM. Is the value likely to change during the test run, between JVM instances? Why? Perhaps...
J. B. Rainsberger
nails762
Offline Send Email
Apr 3, 2007
11:44 am
19224
... What is the distinction between setup() and the constructor? They both seem to provide the same functionality (they are both called anew before every test...
Adrian Parker
adrian_l_parker
Offline Send Email
Apr 3, 2007
2:10 pm
19225
... I'm not sure if this is test runner specific behavior, but in my experience the constructors are all called at the same time, before any tests are run....
Bradley, Todd
todd404
Offline Send Email
Apr 3, 2007
3:56 pm
19226
... JB's imagination parallels reality. Java system properties only exist within the context of a single JVM instance, just like how environment variables...
Bradley, Todd
todd404
Offline Send Email
Apr 3, 2007
4:00 pm
19227
... Yes, but this doesn't answer Adrian's original question... (which I've always found hard to answer as well). Then again, I am in the camp of people who...
Cédric Beust 
cbeust
Offline Send Email
Apr 3, 2007
4:09 pm
19228
... For JUnit 3.8, that's correct. Also, exceptions thrown from the constructor will prevent the individual test method from being reported, while exceptions...
David Saff
dsaff
Offline Send Email
Apr 3, 2007
7:50 pm
19229
... When you get to this version, you'll see that both the setUp() and the test class constructor is called before every test....
Adrian Parker
adrian_l_parker
Offline Send Email
Apr 3, 2007
10:32 pm
19230
... People who have been on the list a while have seen some good answers to that question, but I'm happy to take another swipe at it. JUnit is built on the ...
David Saff
dsaff
Offline Send Email
Apr 3, 2007
11:05 pm
19231
... I don't understand how maintaining read-only state trades off safety? If the state is read-only, the test methods are still completely independent from...
Cédric Beust 
cbeust
Offline Send Email
Apr 3, 2007
11:18 pm
19232
... a) Not all of my state is read-only. What doesvTestNG do to prevent me from making mistakes when using mutable state? b) I have occasionally made mistakes...
David Saff
dsaff
Offline Send Email
Apr 4, 2007
1:32 am
19233
... 1. setUp() reveals intent better, both on its own and as a counterpart to tearDown() 2. set up code in setUp() means JUnit reserves the right to pool ...
J. B. Rainsberger
nails762
Offline Send Email
Apr 4, 2007
2:51 am
19234
hi all, Am generating test cases for Java files with some sample input and expecting the output. i have created classes which extends Test Case class, in turn...
shunmugam609
Offline Send Email
Apr 4, 2007
10:50 am
19235
... And let's not forget this one: [...] exceptions thrown from the constructor will prevent the individual test method from being reported, while exceptions...
Alexandru Popescu ...
alexpopescu7...
Offline Send Email
Apr 4, 2007
10:59 am
19236
We're currently targeting Eclipse 3.2 as our target platform - but I wanted all of the shiny goodness that is Eclipse 3.3. However I find when I try to run my...
Mark Levison
marklevison
Offline Send Email
Apr 4, 2007
2:10 pm
19237
... That's only applicable to JUnit 3.8, and I did word it badly originally. Exceptions thrown from the constructor will indicate a problem with the class--I...
David Saff
dsaff
Offline Send Email
Apr 4, 2007
11:54 pm
19238
... I can't automatically translate this to valid Java. Can you give a more explicit example? Thanks, David Saff [Non-text portions of this message have been...
David Saff
dsaff
Offline Send Email
Apr 4, 2007
11:57 pm
19239
f.s., Maybe your runtime and JDK have different versions? What does javac -version give you? David Saff ... [Non-text portions of this message have been...
David Saff
dsaff
Offline Send Email
Apr 5, 2007
12:22 am
19240
Clive, You're the second person to request this in two weeks, so it looks like a good feature to consider for JUnit 4.4. Right now, unfortunately, you may be...
David Saff
dsaff
Offline Send Email
Apr 5, 2007
12:25 am
19241
Clive, Can you make sure a feature request has already been opened on SourceForge? Thanks, David Saff ... [Non-text portions of this message have been removed]...
David Saff
dsaff
Offline Send Email
Apr 5, 2007
12:27 am
19242
What are the design patterns embodied in JUnit? How do they work together to provide a generic test framework?...
ntphucs
Offline Send Email
Apr 5, 2007
1:23 pm
19243
I was creating tests, when in any test I dont understand a behaviour of the framework. The Junit framework executes Before and BeforeClass test methods in...
jonhnnyweslley
Offline Send Email
Apr 5, 2007
2:16 pm
19244
... Kent Beck and Erich Gamma describe the patterns and design decisions for the original JUnit in the following: ...
albsavoia
Offline Send Email
Apr 5, 2007
2:21 pm
Messages 19215 - 19244 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help