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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 14353 - 14382 of 24392   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
14353 Prasad
varaprasad_1261 Send Email
Aug 12, 2005
5:06 am
Hello everybody, Iam having a void method.(say x()) In which it calls another void method.(say y()) I have to test whether y() is called in x() or not using...
14354 Asif Sattar
sattar_asif Send Email
Aug 12, 2005
2:57 pm
createLogFile() is private static because I want there to be only one instance of the logger class , the class createLogFile() belongs to (it's a singleton). ...
14355 Asif Sattar
sattar_asif Send Email
Aug 12, 2005
2:58 pm
Great tip Joe, thanks! Just one question about it, my printstream variable is a global private static one. Therefore, once it's set in the log rotation method...
14356 Asif Sattar
sattar_asif Send Email
Aug 12, 2005
2:58 pm
Hi everyone, I have a method that takes a throwable as a parameter and uses the stack trace to write to a log. I'm trying to write a tester class for this so...
14357 J. B. Rainsberger
nails762 Send Email
Aug 12, 2005
3:50 pm
... JMock's web site has excellent examples. Have you tried following them? In English, we expect x() to invoke y() with some parameters, returning some value....
14358 Cedric Beust
cbeust Send Email
Aug 12, 2005
4:00 pm
... J. B. Rainsberger ... Since these two methods are void, this is probably not going to work. y() is most likely changing something in the class, so just...
14359 Andrew McDonagh
andy_ipaccess Send Email
Aug 12, 2005
6:45 pm
... by making the createLogFile static, it becomes a Class method - it is not bound to any Instance (i.e. object) of that class type- regardless of the class...
14360 Stephen Smith
steve@... Send Email
Aug 12, 2005
10:28 pm
Create a chained exception within your test fixture and assert that your stack trace writer method creates the desired output. -- Stephen Smith, MEng (Wales). ...
14361 J. B. Rainsberger
nails762 Send Email
Aug 15, 2005
3:09 am
... It's not wise to implement a singleton with all class-level methods. Have /one/ class-level method to obtain the singleton instance: public Singleton...
14362 J. B. Rainsberger
nails762 Send Email
Aug 15, 2005
3:10 am
... You can ask a Throwable for its stack trace and examine its contents; just check the API for Throwable. As for what to check, I recommend checking the...
14363 J. B. Rainsberger
nails762 Send Email
Aug 15, 2005
3:11 am
... I'm not sure what you mean. What are you worried would break? Could you write a test for that? -- J. B. (Joe) Rainsberger Diaspar Software Services ...
14364 J. B. Rainsberger
nails762 Send Email
Aug 15, 2005
3:12 am
... I have no idea why that would matter. If the goal is to know whether x() invokes y(), it doesn't matter what they return. My suggestion stands. Your...
14365 dans
dans_19 Send Email
Aug 15, 2005
7:19 pm
I have to test a class that is calling a stored procedure in a local database . Is there a method to populate the database from the junit other than the dbunit...
14366 J. B. Rainsberger
nails762 Send Email
Aug 16, 2005
3:57 am
... If your test uses the real database, then I don't see how you can avoid this situation: you need the real data to be there. If you only want to verify that...
14367 Elliotte Harold
elharo@... Send Email
Aug 16, 2005
3:41 pm
... If someone were to port the JUnit 3 runners forward, would you be interested in including them? I often find myself teaching or writing in situations where...
14368 Praveen AH
praveen_maduray Send Email
Aug 17, 2005
9:17 am
Hi Swathi, Junit is basically a unit testing tool. It is a open source tool. It is very interesting to work with Junit once you are familiar with that. it has...
14369 Paul King
paulk@... Send Email
Aug 18, 2005
10:54 am
And if mocking isn't what you are after, then sqlunit is an alternative to consider in addition to dbunit. SqlUnit is often attractive if you wish to be...
14370 venkat9985 Send Email Aug 18, 2005
12:26 pm
HI, can anyone helps me how to set class path for junit....and how to run.....iam able to compile but i cann't run the junit prgm.....iam getting the following...
14371 Jason Rogers
jacaetev Send Email
Aug 18, 2005
2:01 pm
... Well, without knowing your setup I would suggest this: java -cp . junitfaq.SimpleTest This is not a JUnit problem though. It sounds like you need to...
14372 Kent Beck
kentlbeck Send Email
Aug 18, 2005
4:07 pm
Elliotte, Thank you for the offer, but we are fairly certain that we do not want to include the graphical runners in JUnit 4. I can see that they might be...
14373 balusamy ramasamy
r_balusamy Send Email
Aug 18, 2005
4:34 pm
Hi Venkat Use the followinf steps : Step 1: Install JUnit First, download the latest version of JUnit, referred to below as junit.zip. Then install JUnit on...
14374 arujay2002 Send Email Aug 18, 2005
4:35 pm
Hi, Myself Jaya & working in Junit as a part of my research and a beginner in using this testing tool. I am working in a inventory system and testing the same....
14375 java2test Send Email Aug 18, 2005
4:36 pm
hi Im new to testing, Im testing EJB's using Junit and MockEJB Im using JBoss, MySQL as Back end while deploying this program Im getting the following error. ...
14376 mukta shetye
mukta_shetye Send Email
Aug 18, 2005
4:37 pm
hi, the problem is the JUnit task is unable to find the java program in the Test directory specified. <property name="tst-dir"...
14377 TFRooney Send Email Aug 18, 2005
4:43 pm
I'd like to extend TestResult to record the elapsed time from startTest to endTest. I'm testing the performance of an app. I'm not a java expert and am...
14378 Jason Rogers
jacaetev Send Email
Aug 18, 2005
5:36 pm
... Depending on what you want to do with the timing results, you could just subclass TestCase and override runBare(), then make your test cases subclass your...
14379 Asif Sattar
sattar_asif Send Email
Aug 18, 2005
6:16 pm
Hi everyone I'm trying to get my unit test that tests log rotation functionality to work and it doesn't seem to do it properly...the log rotation method itself...
14380 berndq
bernd_q Send Email
Aug 18, 2005
7:18 pm
... this is by intention: there should be no output on the console, you really don't want to read/understand/check all that output. Your test runner should...
14381 TFRooney Send Email Aug 19, 2005
12:21 am
... just ... Thanks, I can see how that would work. I'm still curious as to how to replace the TestResult with a subclassed version. It seems that TestRunner...
14382 Radiya
rad_pune Send Email
Aug 19, 2005
12:21 am
Hi, I have written a method which displays integers on the screen (its a for loop and i have a println statement in it). can i create a junit test case for...
Messages 14353 - 14382 of 24392   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