Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 31224
  • Category: Java
  • Founded: Nov 6, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 125 - 154 of 24384   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
125 Robert Sartin
sartin@... Send Email
Dec 18, 2000
9:35 pm
... Boy, is this embarassing. The guy who made the change removed the source rather than archiving it. I just went in to reproduce the change and discovered...
126 Robert Sartin
sartin@... Send Email
Dec 18, 2000
9:44 pm
... So this begs the question: How can I submit suggested patches to junit? The junit.sourceforge.net site isn't really up as a CVS repository. How can I help?...
127 Andreas Heilwagen
andreas.heilwagen@... Send Email
Dec 18, 2000
10:00 pm
My personal offer is that you can take part in the JUnitX project. We can then pipe the changes back to JUnit through a selected person with a peer reviewer to...
128 G Ramasubramani
grama@... Send Email
Dec 19, 2000
6:10 am
Hi, In case I have a method which throws an exception on a particular input, what would be the best way to write a test case which shall succeed in case the...
129 sachin gupta
sachin@... Send Email
Dec 19, 2000
6:29 am
In case Exception is mentioned in the throws clause of method you may try something like this try { method with input that causes the expected Exception to be...
130 G Ramasubramani
grama@... Send Email
Dec 19, 2000
12:08 pm
Hi, I have a test case A. The main method of the test case is the same as most of the test cases - public static void main(String[] args) throws Exception { ...
131 Brian Button
bbutton01@... Send Email
Dec 19, 2000
1:08 pm
I agree with what Sachin said, with one minor change. There is another member function in Assert called fail() which you can use: public void testXXX( ) throws...
132 Robert Sartin
sartin@... Send Email
Dec 19, 2000
3:41 pm
... Here's what I do: try { objectUnderTest.failMethod(); fail("failMethod call did not get exception"); } catch (ExpectedException e) { // Nothing, all is...
133 Paul Michali
pcm@... Send Email
Dec 19, 2000
3:49 pm
... I'm just (re)learning Java and learning JUnit, so take this with a grain of salt... I had a similar problem, where I could not run my class from the GUI. I...
134 Robert Sartin
sartin@... Send Email
Dec 19, 2000
11:08 pm
Yet another variation on exception testing: Try looking at junit.extensions.ExceptionTestCase. Regards, Rob...
135 ashraf.meshal@... Send Email Dec 19, 2000
11:22 pm
I am having trouble having this application function as it should. Although it compiles nicely, there does not appear to be any functionality that is present...
136 sachin gupta
sachin@... Send Email
Dec 20, 2000
1:15 am
Thank you for making me more efficient :) There are so many ways we can do same things in JUnit that I tend to stop discovering as soon as I have something...
137 Sanjay Munjal
smunjal@... Send Email
Dec 20, 2000
1:23 am
I think you are missing the arguments when running tests. Also use reflection to run all the tests in the testcase. Regards, Sanjay ... From:...
138 Erik Meade
emeade@... Send Email
Dec 20, 2000
4:24 am
Here is an example from one of Ant's super test classes which is also pretty sweet: protected void expectBuildException(String taskname, String cause) { try { ...
139 G Ramasubramani
grama@... Send Email
Dec 20, 2000
12:13 pm
Paul, It is not a package problem as I am able to execute it using the textui.TestRunner. The problem appears when I try to cast a particular object as another...
140 Benjamin Schroeder
schroeder@... Send Email
Dec 20, 2000
1:05 pm
on 12/20/00 7:13 AM, G Ramasubramani at grama@... wrote: Paul, It is not a package problem as I am able to execute it using the textui.TestRunner....
141 Benjamin Schroeder
schroeder@... Send Email
Dec 20, 2000
1:07 pm
on 12/20/00 8:05 AM, Benjamin Schroeder at schroeder@... wrote: A non-loading graphical test runner is available -- in JUnit 3.2 and earlier,...
142 G Ramasubramani
grama@... Send Email
Dec 20, 2000
1:28 pm
Ben, Thanks a lot for the information. If I configure the TestRunner to be non-loading then the test succeeds without displaying any of the problems as...
143 Benjamin Schroeder
schroeder@... Send Email
Dec 20, 2000
2:21 pm
on 12/20/00 8:28 AM, G Ramasubramani at grama@... wrote: Ben, Thanks a lot for the information. If I configure the TestRunner to be non-loading then...
144 Todd Jonker
tjonker@... Send Email
Dec 20, 2000
2:49 pm
Hi everyone, I'm looking for hints and advice on how to write unit test for systems built on ATG Dynamo. I've done some very basic droplet tests in JUnit, but...
145 Di Iorio, Matthew (IS...
mdiiorio@... Send Email
Dec 20, 2000
3:24 pm
I think RubyUnit has a great way to test for exceptions. Using RubyUnit you can say: def testFoo ... assert_exception( NoSuchThingyExpception ) {...
146 gilbert.semmer@... Send Email Dec 21, 2000
12:01 am
I will be out of the office starting 20.12.2000 and will not return until 29.12.2000. I will respond to your message when I return....
147 kevinb@... Send Email Dec 21, 2000
12:14 am
You might try simply mimicking the class hierarchy in your test classes. For example, to test an abstract "AbstractNavigator" class, write an...
148 kevinb@... Send Email Dec 21, 2000
12:30 am
I agree with your model for this type of test case.. but why catch unexpected exceptions? Seems much cleaner to just let them propagate and let JUnit take...
149 jphedley@... Send Email Dec 21, 2000
2:06 am
I too have been assigned to write unit tests for abstract classes. Here is how I approached for a few differenct cases: 1)Class declared abstract but with no...
150 jphedley@... Send Email Dec 21, 2000
2:17 am
According to the JUnit 3.4 READ.html, "JUnit can be used with JDK 1.1.* and JDK 1.2.*." We would like to use JUnit 3.4 with Java 1.3. I have run some flame...
151 Robert Sartin
sartin@... Send Email
Dec 21, 2000
4:14 am
... I think it's just a gut level fear and accompanying distaste of declaring methods with "throws Exception" (or including everything in the throws clauses of...
152 Robert Sartin
sartin@... Send Email
Dec 21, 2000
4:15 am
I use with JDK 1.3 every day without problems. Regards, Rob __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of...
153 jphedley@... Send Email Dec 21, 2000
4:57 am
Don't know what happended to this so lets try again. My apologies if I am spamming you. cheers, J.P. ... Subject: Re: [junit] Re: JUnit Abstract Unit Testing ...
154 Nimret Sandhu
nimret@... Send Email
Dec 21, 2000
6:24 am
hello ppl ~ can someone point me to any dox out there on how to write tests for network servers? specifically i am looking to automate testing of server code...
Messages 125 - 154 of 24384   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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