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...
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...
Jonathan Oddy wrote: <snip /> ... One possibility is to build an alternative production implementation that compensates for the defect, then use /that/ in...
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 ...
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...
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...
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...
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...
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...
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...
... 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...
... 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...
... 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...
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...
... 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...
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...
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...
... I have a "test" directory structure, with "source", "classes" and "data". The directories are self-documenting, I think. :) Now you can either load files...
... 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. ...
... 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....
... 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...
Hi, This is my positive testcase. is there any make sense of below statement in following testcase? is it require? assertTrue(e instanceof CustomerException ||...
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...
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. ...
... [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...
... 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...
... Yes, but I recommend implementing it differently. See http://c2.com/cgi/wiki?CodingJavaUnitExceptionTests. -- J. B. Rainsberger, Diaspar Software Services ...
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 ...