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 10551 - 10580 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
10551
Dear All, In my current project I am responsible for writing a UI client to respond to a number of different events sent to it from some server. Earlier today...
Jonathan Oddy
jonathanoddy
Offline Send Email
Mar 1, 2004
5:38 pm
10552
On Mon, 2004-03-01 at 17:38, Jonathan Oddy wrote: [snip] I have worked in situations in the past like this (the fix is dependent on another team, internally or...
Jason Rogers
jacaetev
Offline Send Email
Mar 1, 2004
6:53 pm
10553
Jonathan Oddy wrote: <snip /> ... One possibility is to build an alternative production implementation that compensates for the defect, then use /that/ in...
J. B. Rainsberger
nails762
Offline Send Email
Mar 1, 2004
8:01 pm
10554
If you don't mind using another (beta) runner, you can check the JUnit-addons runner (junit-addons @ sf). You can omit a test by appending '_ignored' to its ...
Vladimir Ritz Bossicard
vbossica
Offline Send Email
Mar 1, 2004
9:39 pm
10555
Hi, everyone. I am a freshman of JUnit. I meet a question and nedd your help. I write a testXXX() and beginXXX() in my test case. But beginXXX cannot be...
yanbing_yu
Offline Send Email
Mar 2, 2004
12:33 am
10556
I have a class that use TCP (java.net.Socket), and I fear that the way the TCP errors are handled are not correct. I have tried to write a unit test that...
gscokart
Offline Send Email
Mar 2, 2004
12:33 am
10557
Thanks for your response. When I run the tests in the same JVM (from the IDE), it does NOT chew up memory. Therefore, I don't think it's a problem with my...
Daniel Rabe
danrabe
Offline Send Email
Mar 2, 2004
12:33 am
10558
Thanks - I wasn't aware of this bug. Unfortunately, I've tried my experiment under ant 1.6.1, and the same thing happens there... --Dan _____ From: Galen...
Daniel Rabe
danrabe
Offline Send Email
Mar 2, 2004
12:33 am
10559
Hi Jonathan, I remember when this same sort of question (as I've distilled it below) came up a few months ago. I'm sure the archives have more, but here's one...
Kevin Klinemeier
zipwow
Offline Send Email
Mar 2, 2004
12:33 am
10560
Hi, tring to run the junit tests for hibernate. When I turn on debug logging, I get an out of memory error. Trying to add a jvmarg to in crease the heap fails...
Ray Tayek
rwtfg
Offline Send Email
Mar 2, 2004
12:34 am
10561
... The beginXXX() methods are part of Cactus (the J2EE in-container testing package that extends JUnit), and not part of "plain" JUnit. As for JUnit...
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2004
12:35 am
10562
... Hm. Then I'm sorry I don't know what to tell you. If you figure it out, please tell us, since we get this question every so often and I've never seen a...
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2004
12:38 am
10563
... Let me see whether I understand: you're writing code that uses Socket and you want to check how it reacts to errors from a Socket object. Either extract an...
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2004
12:39 am
10564
Dear All, Thanks for your, as always, informed responses. Kevin hit the nail on the head with his observation that the server-side fix doesn't/won't require...
Jonathan Oddy
jonathanoddy
Offline Send Email
Mar 2, 2004
11:17 am
10565
... I liked Kevin's idea. Clear, succint, and it should break when the server guys fix their bug (or did I misunderstand you there). -- Jason Rogers "Where...
Jason Rogers
jacaetev
Offline Send Email
Mar 2, 2004
2:17 pm
10566
Hi, I have this package that requires a lot of test files, so I put them in com/foo/package/testfiles. I then use class.getresource and decode url or open as...
Ray Tayek
rwtfg
Offline Send Email
Mar 2, 2004
3:33 pm
10567
I have tried that, and it didn't help. I also used -verbose:gc to verify that it wasn't spending all its time in garbage collection. I know that ant has its...
Daniel Rabe
danrabe
Offline Send Email
Mar 2, 2004
3:33 pm
10568
... I have a "test" directory structure, with "source", "classes" and "data". The directories are self-documenting, I think. :) Now you can either load files...
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2004
3:47 pm
10569
... This isn't easy to answer without knowing more about your Ant script. Can you post your Ant script? I'd suspect the Ant scripting more than Ant itself. ...
Stirling, Scott
stirlingdev
Offline Send Email
Mar 2, 2004
3:47 pm
10570
... In that case, just code the client to match the server's weird behavior, but include documentation with the tests/production code that makes that clear....
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2004
3:48 pm
10571
... This happens when there is a lot of console output. One hack is to use the "noframes" stylesheet, which does not display console output. (Of course, if you...
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2004
3:52 pm
10572
Hi, This is my positive testcase. is there any make sense of below statement in following testcase? is it require? assertTrue(e instanceof CustomerException ||...
khatrihemant
Offline Send Email
Mar 2, 2004
3:57 pm
10573
Hi all, I am using the JUnit plugin for ant to run through all my tests, but one of the tests accesses some native code over the JNI. If there is an exception...
jdplawler
Offline Send Email
Mar 2, 2004
4:00 pm
10574
lets say i am a bit new on the workings of junit..so how is it that one can test a private method...just to make sure it does what it is supposed to do. ...
dguv200
Offline Send Email
Mar 2, 2004
4:03 pm
10575
... [code snipped] ... IMHO the assertion is not required here, after all you do fail anyway, so why bother with the exception type? You could as well remove...
Robert Wenner
robertwenner
Online Now Send Email
Mar 2, 2004
4:22 pm
10576
... Google JUnitX. Even better, recognize that if you want to test a private method, then that method is /probably/ in the wrong class: it might belong to...
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2004
4:37 pm
10577
... Yes, but I recommend implementing it differently. See http://c2.com/cgi/wiki?CodingJavaUnitExceptionTests. -- J. B. Rainsberger, Diaspar Software Services ...
J. B. Rainsberger
nails762
Offline Send Email
Mar 2, 2004
5:10 pm
10578
From: "Ray Tayek" <rtayek@...> ... in ... copy ... within ... I do exactly the same for hard coded test data files. The other alternative is to...
Neil Swingler
neil_swingler
Online Now Send Email
Mar 2, 2004
6:46 pm
10579
... Great ideas, I will try them Thanks for your prompt assistance....
Ray Tayek
rwtfg
Offline Send Email
Mar 3, 2004
3:28 am
10580
Hello, I thought the code below would work, but it doesn't. Is there a way to do something along these lines, or am I barking up the wrong tree? Thanks! Nate ...
natemc47
Offline Send Email
Mar 3, 2004
3:29 am
Messages 10551 - 10580 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