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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 7101 - 7130 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
7101
... (...) I had the same problem previously. So i created a method boolean compareString(s1, s2); That's exactly what I did do, Amit. Great idea! Thanks all...
Shane Niebergall
sniebergall43
Offline Send Email
Mar 1, 2003
6:16 pm
7102
DbUnit is a JUnit extension (also usable from Ant) targeted for database-driven projects that, among other things, puts your database into a known state...
manuel_laflamme <manu...
manuel_laflamme
Offline Send Email
Mar 3, 2003
3:02 pm
7103
Hi, I was trying to look at the junit code after having read the cook's tour, and had a question (or two): What is the significance of the Protectable...
nthali <nilesh.thali@...
nthali
Offline Send Email
Mar 3, 2003
11:15 pm
7104
<snip /> ... Check out junit.extensions.TestSetup. That will show you the motivation for refactoring to Protectable. Perhaps it is not the best name, but I...
J. B. Rainsberger
nails762
Offline Send Email
Mar 3, 2003
11:55 pm
7105
Hello, Is there any tips to test out error handlers? I have a number of exception handling code, let say they are SQLException. In general those code get poor...
TungWaiYip <tungwaiyi...
TungWaiYip
Offline Send Email
Mar 4, 2003
4:35 am
7106
Check out the JUnit FAQ. If you want to test the exception handling code, then the general approach is this: 1. Simulate throwing the SQLException so that the...
J. B. Rainsberger
nails762
Offline Send Email
Mar 4, 2003
4:43 am
7107
... Mock as be used for this. If you can mock the object that can throw the exception, you can configurate to just throw it when called. Then you can test...
Dave Astels <dave@...>
astelsd
Online Now Send Email
Mar 4, 2003
12:43 pm
7108
Hi folks! While using Visual Age I developped code to test software using JUnit. I used the command Testrunner.run(Testtreiber.class) to start JUnit inside my...
wolleontour <wolfgang...
wolleontour
Offline Send Email
Mar 4, 2003
4:21 pm
7109
Hi When Im doing exception testing it may look like this: public void testBadData() { try { object.generateBadData(); fail( "BadDataException should have been...
Erik Mattsson
erikmattsson73
Offline Send Email
Mar 4, 2003
4:21 pm
7110
Hi all, Pleased guide me in writing the JUnit test cases for the methods that does Insert Update and Delete to Databases. There are the methods that brings the...
Patil, Ghanshyam
sachin4u1977
Offline Send Email
Mar 4, 2003
4:22 pm
7111
first of all hello all of frinds of this group. friends, i just joined the company , and working as a soft.testing engg. i m totaly fresh. here is project on...
dnyanesh mankulwar
dnyan123@...
Send Email
Mar 4, 2003
4:23 pm
7112
... This seems to me tantmount to saying that something is wrong with agressive refactoring promoted by the XP process. I change interfaces all the time, but I...
Curt Sampson
cjstokyo
Offline Send Email
Mar 4, 2003
4:23 pm
7113
... should be ... interfaces that ... wrong - either ... something ... don't ... need ... good ... modifiable, ... Also on point is the fact that, as an...
J. B. Rainsberger <jb...
nails762
Offline Send Email
Mar 4, 2003
4:28 pm
7114
... The first step is to read this: http://www.owlriver.com/tips/smart/ If you have a specific question and follow the advice of the above web page, I'm sure...
Erik Hanson
hanson_erik
Offline Send Email
Mar 4, 2003
5:41 pm
7115
Hi Ghanshyam , In Database accessor methods, dont test JDBC API. Hence use mockObject http://.mockobjects.com <http://www.mockobjects.com> . I have been using...
Shailesh Mangal
sxm20
Online Now Send Email
Mar 4, 2003
7:48 pm
7116
... Yup. That's how I do it, too. That tests that an exception is thrown when it should be. I think the question was how to test that exceptions are handled...
Dave Astels <dave@...>
astelsd
Online Now Send Email
Mar 4, 2003
9:58 pm
7117
Can you show us the source of your test? Thanks. So said wolleontour <wolfgang.weber@...> on 3/3/2003 -------------------- ... J. B. Rainsberger, ...
J. B. Rainsberger
nails762
Offline Send Email
Mar 4, 2003
10:57 pm
7118
Steve, I am using Emacs to debug my tests. The key is that you can't use the SwingRunner. Just use the normal non-GUI runner and you can debug your TestCase...
Joerg Schmuecker
java-junit@...
Send Email
Mar 5, 2003
8:30 am
7119
Wolfgang: I use JUnit with Ant. I had encountered a similar error message earlier. I had to add the right classpath. I guess you may have the same problem. You...
Kumar Aravamudhan
aravam
Offline Send Email
Mar 5, 2003
3:08 pm
7120
Let me give a more concrete example. try { // execute my sql query ResultSet rs = sql.executeQuery(); while (rs.next()) { String name = rs.getString("name"); ...
Tung Wai Yip
TungWaiYip
Offline Send Email
Mar 5, 2003
3:08 pm
7121
... be ... I think we need to define terms a little. Interface in this context is a little overloaded. I took it to mean the conceptual boundary between any...
Kevin Klinemeier
zipwow
Online Now Send Email
Mar 5, 2003
3:08 pm
7122
... From: "Curt Sampson" <yahoo_sucks@...> ... Refactoring does not necesarily equate to changing interfaces. ... If change is necessary then it is...
Lauren Bish
gs_nomad
Offline Send Email
Mar 5, 2003
3:08 pm
7123
... How about extracting your error handling code and testing it by itself: public class Foo { public void bar() { try { // execute my sql query ResultSet rs =...
Erik Hanson
hanson_erik
Offline Send Email
Mar 5, 2003
3:30 pm
7124
hi! I'm serialising a class and sending it over a socket to another machine which does not have the classes of the agent. So I'm making two trips, first I'm...
Aditya Yadav
adityayadav76
Offline Send Email
Mar 5, 2003
4:37 pm
7125
... While this is not a bad idea in general (especially to avoid duplicate code, or to test more complex handlers), one may still want to make certain that the...
Kathy Van Stone
KathyVS
Offline Send Email
Mar 5, 2003
4:48 pm
7126
... What you want to mock is probably the statement and connection, not the result set (since you never need the result set to throw an exception). This...
Kathy Van Stone
KathyVS
Offline Send Email
Mar 5, 2003
4:48 pm
7127
... Yes, there are some pre-made mocks for JDBC stuff, including the ability to throw exceptions. If you do need to test handling of exceptions thown by...
Dave Astels
astelsd
Online Now Send Email
Mar 5, 2003
5:33 pm
7128
... I would write a test from the receiving machine's perspective. That is, the classpath used for the test would not include the JAR file. Instead, the test...
Mike Clark
clarkware
Offline Send Email
Mar 5, 2003
5:35 pm
7129
"Could not invoke suite method" could happen for several reasons. As Kumar said, it could be a classpath issue which boils down to a NoClassDefFoundError......
Jason Rogers
jacaetev
Offline Send Email
Mar 5, 2003
5:43 pm
7130
Also, there may be some cross dependancy causing the class to not load properly. Check and make sure that any dependant libraries (jars/classes) are the same...
David D. Lucas
ddlucas
Offline Send Email
Mar 5, 2003
9:44 pm
Messages 7101 - 7130 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