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.
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 19937 - 19966 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
19937
Hi Tood, I do not know any tools help we solve this issue in advance but in JUnit we have the solution. JUnit allows us change the approach of running testing...
Nguyen Phuc Hai
haiphucnguyen
Offline Send Email
Oct 1, 2007
7:20 am
19938
Hi All, I'm new to Junit testing and have been able to do some basic testing etc. What I want to do now is test for objects that are returned in random order....
sam.gribbles
Offline Send Email
Oct 1, 2007
8:42 am
19939
Hi all; I have a question about running junit tests with a build tool. Some people say maven is the best choise to use with junit and some say ant is the best...
ibrahim demir
ibrahimdemire
Offline Send Email
Oct 1, 2007
8:44 am
19940
... people say maven is the best choise to use with junit and some say ant is the best for that. But I there is no real metric about the performance. ... if...
Harald Walker
harald.walker
Offline Send Email
Oct 1, 2007
10:03 am
19941
... Sam, When faced with a question like this, I always ask, "What are you trying to test?" Are you trying to test your randomness algorithm or trying to test...
Brian Button
bbutton
Offline Send Email
Oct 1, 2007
11:47 am
19942
... Testing random (or more generally, non-deterministic) behavior is an interesting question, and one I like to ask during interviews. We could talk for...
albsavoia
Offline Send Email
Oct 1, 2007
2:29 pm
19943
Yeah, I don't really want to get into classloader shenanigans too much, personally, if it means the low level Java interface. But has anyone (like the Apache...
Bradley, Todd
todd404
Offline Send Email
Oct 1, 2007
4:49 pm
19944
... The key is to take control. Mock out your random number generator. Michael Feathers www.objectmentor.com...
Michael Feathers
mfeathers256
Offline Send Email
Oct 1, 2007
8:37 pm
19945
... testing ... random ... array of ... me ... trying ... that ... be random. ... fortunes, you ... set up ... up a ... and ... Thanks Brian, I've posted a...
sam.gribbles
Offline Send Email
Oct 2, 2007
3:33 am
19946
... testing ... random ... array of ... me ... Hi all, Thanks for your efforts in attempting to answer my question. I'll try and be more clear: The task I've...
sam.gribbles
Offline Send Email
Oct 2, 2007
3:33 am
19947
... How about public String getFortuneCookieQuote(Random r){ return fortuneCookieQuote[r.nextInt(4)]; } then provide an implemenation of Random r that provide...
Carfield Yim
c8133594
Offline Send Email
Oct 2, 2007
3:27 pm
19948
... ANT tasks are very simple to write, and typically a lot simpler than classloaders. ... I was going to suggest that if you can't do it via ANT, since I...
James Abley
taboozizi
Offline Send Email
Oct 2, 2007
7:32 pm
19949
... I see this as similar to the "how do I test console output?" question. The answer there is to depend on an abstract stream, then plug in the console stream...
J. B. Rainsberger
nails762
Offline Send Email
Oct 2, 2007
8:21 pm
19950
Two rules of unit testing is 'Test your code not library code' and 'Evident data'. For method that the values are not defined until running as random, or takes...
Nguyen Phuc Hai
haiphucnguyen
Offline Send Email
Oct 3, 2007
2:33 am
19951
Hello, I want to do perform action once for a testing process (db connection and so on). So all my test classes derive from an abstract HibernateTest class...
bpuzon
kpt_puzon
Offline Send Email
Oct 3, 2007
2:33 am
19952
How did you code the suite?...
Ilja Preuss
ipreussde
Offline Send Email
Oct 3, 2007
7:13 am
19953
... I added this to all test classes: public static junit.framework.Test suite() { return new junit.framework.JUnit4TestAdapter(SimpleTest.class); }, created...
bpuzon
kpt_puzon
Offline Send Email
Oct 3, 2007
10:28 am
19954
That's a JUnit 3 style test suite. To use such a suite with JUnit 4, you need to annotate the class with @Runwith(AllTests.class) Or you could instead use a...
Ilja Preuss
ipreussde
Offline Send Email
Oct 3, 2007
10:32 am
19955
Hi all, I wrote a pile of tests for my current project. Tests are running OK when I run each of them individually. Every time I run a testSuite I got a summary...
diego_pino_garcia
diego_pino_g...
Offline Send Email
Oct 3, 2007
3:42 pm
19956
Which version of JUnit are you using? How do you run your tests? Through ant, Eclipse, or something else?...
Bradley, Todd
todd404
Offline Send Email
Oct 3, 2007
3:53 pm
19957
... A nice to express it. For me, the Evident Data is a stream of numbers, which is why I'd rather depend on interface NumberStream, implemented by ...
J. B. Rainsberger
nails762
Offline Send Email
Oct 3, 2007
10:21 pm
19958
You are right. I just want to make it general by statements ;-) Regards, Hai ... A nice to express it. For me, the Evident Data is a stream of numbers, which...
Nguyen Phuc Hai
haiphucnguyen
Offline Send Email
Oct 4, 2007
3:41 am
19959
Hi Todd, I am running Junit through NetBeans 5.5.1 I am using junit-3.8.1 I organized my tests in several TestSuites. Every TestSuite inherites from a more...
diego_pino_garcia
diego_pino_g...
Offline Send Email
Oct 4, 2007
1:24 pm
19960
Hi, Diego. From your description, it sounds to me like the issue is related to NetBeans' JUnit test runner. I've never used NetBeans, so I don't have any...
Bradley, Todd
todd404
Offline Send Email
Oct 4, 2007
2:29 pm
19961
... I think that duplication between test production code *is* a smell - if perhaps not an as strong one. When I seen duplication such as in your example, I...
Ilja Preuss
ipreussde
Offline Send Email
Oct 5, 2007
11:30 am
19962
... Now I've got sth like that: @RunWith(Suite.class) @SuiteClasses({package1.AllTests.class, package2.AllTests.class}) class MasterTest {} And in packages 1...
bpuzon
kpt_puzon
Offline Send Email
Oct 5, 2007
11:11 pm
19963
... Of course, @BeforeClass methods should be defined in Suite class, NOT in my abstract class. -- View this message in context:...
bpuzon
kpt_puzon
Offline Send Email
Oct 5, 2007
11:11 pm
19964
Hi Todd, You were right, it was related to NetBeans (or maybe something else...who knows) Instead of writing and isolated ant file for compiling the tests as ...
diego_pino_garcia
diego_pino_g...
Offline Send Email
Oct 5, 2007
11:11 pm
19965
Hi! Maybe some of you folks know ClasspathSuite (http://johanneslink.net/cpsuite.html) a JUnit4 extension for executing test suites in Eclipse across several...
Johannes Link
jlinkyh
Offline Send Email
Oct 6, 2007
3:16 pm
19966
A good resource site http://question2answer.googlepages.com thanks. ... the past 3 ... deliver to ... cases ... as a ... source code ... setUp() to ... ...
tryquestions
Offline Send Email
Oct 8, 2007
11:40 am
Messages 19937 - 19966 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