I know exactly what you're talking about, Anthony. We ran into the same problem. We had to jump through hoops and make our own getName() method that worked...
20403
sateeshkumar.soundara...
tamilan_tami...
Mar 26, 2008 1:38 pm
Hi Kamal, We are now not in the timeline of using other tools like XPath, XQuery. Please let me tell which is better 1. Go with JUnit even it is cumbersome...
20402
MULLER Anthony
onlytoine
Mar 26, 2008 12:41 pm
I talk about this method: http://junit.sourceforge.net/javadoc/junit/framework/TestCase.html#getName() The getName() method is specific to JUnit 3, it doesn't...
20401
Kamal
kamal2222ahmed
Mar 26, 2008 12:15 pm
Anthony, Maybe i misunderstood , but as far as i know, the logging mechanism works for Junit 4 as well as Junit 3 and requires minimal plumbing of old code....
20400
MULLER Anthony
onlytoine
Mar 26, 2008 11:26 am
I think my question was not clear enough. In fact, I have many testcases written with JUnit 3. Now, I'm trying to move on JUnit4. But I have the following...
20399
Joel Neely
joelneely
Mar 26, 2008 11:14 am
Sateesh, Lets suppose, for the sake of discussion, that the time required to build test cases is equal to the time required to perform manual testing. Once. ...
20398
Kamlesh Kumar
kamlesh2366
Mar 26, 2008 11:13 am
Sateesh, You can use DBUnit with JUnit and in-memory database (i.e.HSQLDB) to test your functionality of fetching, inserting, updating data in the database ...
20397
Kamal
kamal2222ahmed
Mar 26, 2008 10:46 am
Anthony, In your Base Test setUp() , do something like logger.info("Running Test: " + this.getClass() + "." + this.getName() + "\n"); use log4j or common...
20396
Kamal
kamal2222ahmed
Mar 26, 2008 10:04 am
Sateesh, try a combination of XQuery and Xpath, using JUnit as an assert structure, and you have yourself a frame work to test your application. -Kamal. ... ...
20395
Sateesh
tamilan_tami...
Mar 26, 2008 9:54 am
Hi, In our application, we planned to use JUnit. but our application is like fetching, inserting, updating data in the databases. there is no domain bussiness...
20394
MULLER Anthony
onlytoine
Mar 26, 2008 9:54 am
Hello! What is the equivalent method to TestCase.getName() previously in Junit3 ? This method returned the method name during the test execution. Thanks! ...
20393
Sunburned Surveyor
sunburned_su...
Mar 26, 2008 1:06 am
Ilja, That is some help. I'll revisit my situation with your suggestions in mind. The Sunburned Surveyor...
20392
Ilja Preuss
ipreussde
Mar 25, 2008 7:27 am
What I've found works best (at least in the situations I have encountered) is to have the main parser actually delegate to a number of sub-parsers. That is, if...
20391
sunburned.surveyor
sunburned.su...
Mar 25, 2008 3:16 am
I'm still rather new to JUnit (although I've purchased at least two (2) JUnit books)and I'm finally getting around to actually using unit tests for my code. ...
20390
toalexsmail
Mar 23, 2008 11:00 pm
... @RunWith(Parameterized.class) public class ParserTest { @Parameters public static Collection<?> testParser(){ return Arrays.<Object[]>asList(new...
20389
toalexsmail
Mar 23, 2008 11:00 pm
... Yes, you are write. There are also one-time setUp and tearDown methods that was in TestSetup object in JUnit 3.8. See code examples above. ... You can do...
20388
highwind_th
Mar 22, 2008 8:36 pm
... - You can separate initializing code to setup/teardown method, this will eleminate some duplication. (about setup and teardown method, look here ...
20387
Joakim Ohlrogge
j0hlrogge
Mar 22, 2008 12:31 pm
If you are using JUnit 4.4 you could do this with theories or a parameterized runner. With theories it would look something like this: @RunWith(Theories) ...
20386
Kamal Ahmed
kamal2222ahmed
Mar 20, 2008 10:33 pm
James, Thanks, The config WAS set to WARN I am getting the log messages now. -Kamal. ... From: James Abley <james.abley@...> To: junit@yahoogroups.com ...
20385
techstuff1971
Mar 20, 2008 10:33 pm
Hi, I am new to JUNIT and although I've read all of the docs (save the javadoc) it's not entirely clear to me how to proceed or even if JUNIT is appropriate...
20384
Kent Beck
kentlbeck
Mar 20, 2008 2:44 pm
Dear Cas, We got out of the UI business because 1) the user interface was covered by the IDEs and Ant and 2) user interfaces required a lot of support work. ...
20383
James Abley
taboozizi
Mar 20, 2008 10:28 am
... Use a debugger? Change to use System.out (might be the logging config is set to WARN, for example). Cheers, James...
20382
cas_nixster
Mar 20, 2008 7:37 am
... I would use the word "gone" instead of deprecated. JUnit 4 does not ship with either the swingui or the awtui runners. (I am not going to miss the...
20381
hovh03
Mar 19, 2008 10:20 pm
Is this package deprecated? I couldn't find information anywhere about this. Please tell me what is going on....
20380
Böhm, Martin
martinboehms...
Mar 19, 2008 9:24 am
Hi Kamal, are you sure your log4j-Logger is well configured? First try a system.out.println. If you get the right output, then I certainly suppose, that your...
20379
Kamal Ahmed
kamal2222ahmed
Mar 18, 2008 9:26 pm
Hi, I have a BaseTest Class with the log4j logger as: protected void setUp() { sLog.info("Now Running the testcase : " + this.getClass().getSimpleName() + "."...
20378
Kamal
kamal2222ahmed
Mar 18, 2008 9:25 pm
Re: [junit] test for super() ... From: Kamal To: junit@yahoogroups.com Sent: Friday, March 14, 2008 2:06 PM Subject: Displaying the Method Being Executed in...
20377
Ilja Preuss
ipreussde
Mar 14, 2008 4:57 pm
... Why would you want to do that. That is, use the parser for setting up your fixture? ... I see. ... Then the next step would probably be reducing the...
20376
toalexsmail
Mar 13, 2008 10:28 pm
I have some related request, see http://tech.groups.yahoo.com/group/junit/message/20357...
20375
toalexsmail
Mar 13, 2008 10:28 pm
... See also related feater request https://sourceforge.net/tracker/?func=detail&atid=365278&aid=1626414&group_id=15278...