Campers, We are using JUnit 3.7 and mock objects to do our unit testing. We are having some issues whereby the static variables in the mock objects are being...
5286
sudipto chattopadhyay
c_sudipto2002@...
Jul 1, 2002 1:06 pm
i'm trying to design a web based testing client using junit, where all results are stored in database. this client will be helpfull for mainly regrassion test....
5287
Jason Rogers
jacaetev
Jul 1, 2002 1:10 pm
What else do you expect to happen with the static class variables. There will ever only be one instance of them in the JVM, period. Why not reset them to their...
5288
Jason Rogers
jacaetev
Jul 1, 2002 1:17 pm
Without doing your design for you? Seriously, search the archive for web based testing client. You will probably find something there. Also, look at Vlad's...
5289
Johannes Link
jlinkyh
Jul 1, 2002 1:41 pm
... To what aim are you using static variables in mock objects in the first place? Maybe there's another (better) solution... Johannes -- GMX - Die...
5290
andrew.beacock@...
abeacock
Jul 1, 2002 6:02 pm
Raju, I wanted to do the same thing a while back, so I modified the XSL in junit-noframes.xsl. You need to modify the junit-noframes.xsl and so I have...
5291
shasler@...
Jul 2, 2002 1:01 am
I will be out of the office starting 07/01/2002 and will not return until 07/06/2002. I will respond to your message when I return....
5292
Amardeep Singh Bhatia
amar_junit@...
Jul 2, 2002 4:07 am
Hi all, I am new to junit, so can anyone tell me how to generate testresults using junit's TestResult class. Also can any body tell me from where to get notes...
5293
J. B. Rainsberger
nails762
Jul 2, 2002 2:11 pm
... Instantiate a TestResult and call its methods to add failures and errors and so on. Is there something more specific you need to know about it? ... ...
5294
Daniel Barclay
dbarclay@...
Jul 2, 2002 4:53 pm
... Unless you're using class loaders, right? Daniel...
5295
Daniel Barclay
dbarclay@...
Jul 2, 2002 4:53 pm
... How can the absence of a test specify anything reliably? (How does the user know that you're trying to say that the behavior is undefined and that you...
5296
Steven Morgan
xerafin
Jul 2, 2002 5:18 pm
... Bzzt. Wrong, folks! A static class variable occurs only once per *class*, not once per JVM! If you happen to load a class twice, such as through two...
5297
Daniel Barclay
dbarclay@...
Jul 2, 2002 6:15 pm
... (Is that code correct? Is there an assertTrue(String) method?) Your call to fail(...) says that the method must throw an IllegalArgumentException when...
5298
J. B. Rainsberger
nails762
Jul 2, 2002 8:22 pm
... The user should assume, in my opinion, that unspecified behavior is -- well -- unspecified. I would assume it. If I am unsure what your code does under...
5299
J. B. Rainsberger
nails762
Jul 2, 2002 8:22 pm
... Never. "Intentionally undefined" means, by definition, that no test case has been conceived for that codepath, let alone written. ... One should not. If...
5300
J. B. Rainsberger
nails762
Jul 2, 2002 8:22 pm
... I prefer not to use class loaders, where possible. I consider it an annoyance. That's just my opinion. If I feel the need to use class loaders to write a...
5301
J. B. Rainsberger
nails762
Jul 2, 2002 8:22 pm
... particularly ... class ... that ... Perhaps your problem is that you need class variables in the first place. Perhaps you can easily refactor the code to...
5302
Eric Heikkila
ericheikkila
Jul 3, 2002 2:44 am
Hmmm....another question...why are they static? -Eric ... __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First...
5303
Mark Meyers
markm@...
Jul 3, 2002 11:58 am
... should be assertTrue("...", true), sorry. ... That is correct, I think if you are concerned about illegal input generating exceptions, you should handle...
5304
Mark Meyers
markm@...
Jul 3, 2002 12:57 pm
... Agreed, I learned about Smalltalk whitout the benefit of SUnit. Typing some fragments of code and executing them ("inspect it...", or "do it..."). When...
5306
Amardeep Singh Bhatia
amar_junit@...
Jul 3, 2002 1:13 pm
Thnax for doc JB Amardeep ... _________________________________________________________ There is always a better job for you at Monsterindia.com. Go now...
5307
J. B. Rainsberger
nails762
Jul 3, 2002 1:15 pm
Please unsubscribe yourself, according to the instructions at the bottom of every single message on this group. You signed up yourself; you signed yourself...
5308
J. B. Rainsberger
nails762
Jul 3, 2002 1:50 pm
... Poor man. ... offers ... I like the scrapbook in VAJ. Always did. ... typed ... language... An interpreter is best: I liked that when a first started with...
5309
Mike Clark
clarkware
Jul 3, 2002 4:13 pm
... That FAQ was updated recently: http://junit.sourceforge.net/doc/faq/faq.htm#runners_1 Does that help? If not, what would help? Mike...
5310
Mike Clark
clarkware
Jul 3, 2002 4:32 pm
... The excluded.properties file must be in the same package as it is in the junit.jar file. So you could put it in mystuff/junit/runner/excluded.properties ...
5311
vdanucon
Jul 3, 2002 8:52 pm
I am testing a method "changeSignOnPassword" which takes (userid, oldpw, newpw) as parameters. When userid is not found the method will throw...
5312
Oren Gross
ogross@...
Jul 3, 2002 8:55 pm
I am extending CactusStrutsTestCase to test my action in Struts. Without even referring to anything in my Struts, I am getting the following errors: In the...
5313
Oren Gross
ogross@...
Jul 3, 2002 8:59 pm
Though I founf my question answered in the following, the answer dows not help/work. Any one with other options... I GET A CLASSNOTFOUNDEXCEPTION WHEN I USE...
5314
Oren Gross
ogross@...
Jul 3, 2002 8:59 pm
Thanks Mike, but this is actually what I used... so, no it doesn't help. I edited the excluded.properties, and put it in the classpath before the junit.jar (as...
5315
Oren Gross
ogross@...
Jul 3, 2002 8:59 pm
Well actually, the two following answer contridicts each other in the scence of one is caousing the other problem, i.e.: When the excluded.properties file is...