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...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 20937 - 20966 of 20966   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
20937
Hi- The following is my Test class import org.junit.Test; public class Test2 { public Test2() { System.out.println("Inside zero arg con"); } public...
raj_sharath
Offline Send Email
Oct 3, 2008
9:47 am
20938
... What would you estimate that the propability that it's a 2 in this case?...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Oct 3, 2008
1:42 pm
20939
Hi, How can I know when a beforeclass is starting? Today with the listener I can know when test start but I need to also know when @BeforeClass method and...
idan72
ishai@...
Send Email
Oct 6, 2008
9:11 am
20940
Hello Sharath. I don't see any point to have a constructor with argument for test case. Could you please share why would this kind of constructor is needed ? ...
nat_tul
Offline Send Email
Oct 6, 2008
9:12 am
20941
Hi How can I handle exception in a theory of JUnit UnitTest? I wrote a @Theory and I want use it in UnitTest repeatedly? Please help me....
yosefshariat
Offline Send Email
Oct 6, 2008
1:26 pm
20942
Could you elaborate a bit? A therory should behave the same for all datapoints - assumptions. Do you expect all cases to throw an exception or only some of...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Oct 6, 2008
2:08 pm
20943
I saw that the mail was unfortunately line-broken. The first assumeTrue should say /assumeThat/ and the second assumeTrue belongs to the comment. Sorry about...
Joakim Ohlrogge
j0hlrogge
Offline Send Email
Oct 6, 2008
2:11 pm
20944
It's a real hack, but in 4.5 and following, you can use @Theory @Test(expected=SomeClass.class) public void myTest() { ... } Thanks, David Saff...
David Saff
dsaff
Offline Send Email
Oct 6, 2008
2:57 pm
20945
... excellent ... messaging ... am ... ask. ... I think the book "Test-Driven Development by Example" is a good start point....
wennnnke
Offline Send Email
Oct 7, 2008
8:04 am
20946
... I used new version of Junit(JUnit 4.5) but I can't use @Theory and @ Test together Or @Theory with "expected=AnyException.class". Also I don't want use...
yosefshariat
Offline Send Email
Oct 7, 2008
8:04 am
20947
... Tanks, but how can I add parameter to this Theory? I can't add any input parameter to this theory. If I add a parameter to this theory, then it throws the...
yosefshariat
Offline Send Email
Oct 7, 2008
8:04 am
20948
wennnnke wrote: I think the book "Test-Driven Development by Example" is a good start point. Thanks, I think I should add that the most successful...
John van V.
john_van_v
Offline Send Email
Oct 7, 2008
4:49 pm
20949
Hello, I'm interested in exploring the use of JUnit's theories. What is the status and future plans for this experimental feature? I noticed the Java src code...
Leo Uzcategui
leouzc
Offline Send Email
Oct 7, 2008
4:49 pm
20950
Good day. I am new to JUnit annotations. I have a need to execute a set of classic account registration tests: register a user by [email, password], verify...
Mark Petrovic
graminae
Offline Send Email
Oct 8, 2008
2:10 am
20951
The short and sweet answer Mark is that, while someone else here may post a way to do it, we generally strive mightily to make our tests entirely independent...
Mike Hill
uly562000
Offline Send Email
Oct 8, 2008
2:58 am
20952
Thank you. I'll consider this, which is similarly to how I proceeded after my original post. Mark ... [Non-text portions of this message have been removed]...
Mark Petrovic
graminae
Offline Send Email
Oct 8, 2008
6:42 am
20953
The theory classes should be in junit-4.5.jar. Are you using the version from the website? Theories will continue to be supported. As a matter of fact,...
David Saff
dsaff
Offline Send Email
Oct 8, 2008
1:59 pm
20954
John, It sounds like you've had some really frustrating weeks. I've known many people who have gotten ramped up with Eclipse and JUnit without a lot of pain,...
David Saff
dsaff
Offline Send Email
Oct 8, 2008
2:02 pm
20955
Hmm. This sounds like a bug in JUnit. Can you post the exact code as a bug report? In the meantime, you may have to workaround with try {} catch {}....
David Saff
dsaff
Offline Send Email
Oct 8, 2008
2:04 pm
20956
Context: I am writing code that monitors the frequency, timing, and results of tests, and the code needs must run from eclipse, intellij, etc, relatively...
uly562000
Offline Send Email
Oct 8, 2008
4:21 pm
20957
P.S. Or, alternatively, is there some way to identify the core object from inside a custom runner?...
Mike Hill
uly562000
Offline Send Email
Oct 8, 2008
4:23 pm
20958
Hill, There's nothing super easy. You can also add a listener from the RunNotifier passed to run(). We're looking at some similar issues. Ideally, would you...
David Saff
dsaff
Offline Send Email
Oct 8, 2008
5:26 pm
20959
Hi David, Would there be a way to use a custom TestResult to make this work? We're ideally looking for a solution that also works with 3.8.x. best jk ...
Joshua Kerievsky
jlk112067
Offline Send Email
Oct 8, 2008
5:50 pm
20960
In my ideal world I'd like to install a listener on any/all tests being run. Anything that makes that happen would be a good thing. A fairly simple fix would...
Mike Hill
uly562000
Offline Send Email
Oct 8, 2008
6:14 pm
20961
Hill, This is similar to work we are doing to support more time-efficient testing. We don't have a general, pluggable solution. One of the problems is that ...
kentb
kentlbeck
Offline Send Email
Oct 8, 2008
8:23 pm
20962
Karl, I'm sorry no one ever responded to this. Did you find an answer? It looks like you're using Guice. Could that be a problem? Thanks, David Saff...
David Saff
dsaff
Offline Send Email
Oct 8, 2008
8:38 pm
20963
Hi I have a problem with "Expected In @Theory". But unfortunately no one understands my problem or maybe I can't descript it. Any way, I want use @Theory with...
yosefshariat
Offline Send Email
Oct 8, 2008
11:23 pm
20964
Good evening! I'm searching a system for administrating my JUnit tests on a server. I am developing a Framework on my local machine and commit it to a ...
daniel.pomrehn
Offline Send Email
Oct 8, 2008
11:24 pm
20965
... Yes, but I downloaded it again and found the theory classes this time. ... David, thanks for the info. Can you point me to some examples of how to use...
leouzc
Offline Send Email
Oct 9, 2008
11:38 am
20966
... Yosef, A similar request was made recently. @Theory @Test(expected=ExceptionName.class) should do it, but may be broken in JUnit 4.5. Can you log a bug,...
David Saff
dsaff
Offline Send Email
Oct 9, 2008
5:11 pm
Messages 20937 - 20966 of 20966   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

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