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.

Messages

  Messages Help
Advanced
Messages 20942 - 20971 of 20971   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
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
20967
[bcc: junit-devel, +junit@yahoogroups.com] Anil, 1) Mocking frameworks like jMock are useful for just this kind of interaction testing. 2) Questions about the...
David Saff
dsaff
Offline Send Email
Oct 13, 2008
10:27 am
20968
I wanted to provide a patch for https://sourceforge.net/tracker/?func=browse&group_id=15278&atid=365278 / ...
Anli Shundi
newkidtown
Offline Send Email
Oct 14, 2008
12:26 am
20969
It's in CVS: http://junit.cvs.sourceforge.net/viewvc/junit/junit/ David Saff...
David Saff
dsaff
Offline Send Email
Oct 14, 2008
5:39 pm
20970
I'm looking at the example in the Parameterized javadoc and from what I can tell the extra "Fibonacci" there is wrong?...
Jason Yip
jchyip2000
Offline Send Email
Oct 15, 2008
11:33 am
20971
I am wondering if it is possible to run an individual test case from a test class from the command line using JUnitCore? I have searched high and low to find...
nom_ah
Offline Send Email
Oct 15, 2008
9:59 pm
Messages 20942 - 20971 of 20971   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