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...
Want to share photos of your group with the world? Add a group photo to Flickr.

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 19518 - 19547 of 22044   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
19518
... code ... Thanks for your reply. Actually, it has no problem to expand\  concrete class to the interface for method. But if it have other...
ÍõÁ軪
wanglinghua2008
Online Now Send Email
Jul 2, 2007
5:14 am
19519
... It is totally relevant. A few weeks (maybe months) after you start using JUnit seriously, you'll realize you need to use data driven test design to...
Bradley, Todd
todd404
Online Now Send Email
Jul 2, 2007
3:14 pm
19520
This is exactly the sort of thing that the Parameterised Test pattern is for. ... Stephen Smith, MEng (Wales). http://www.stephen-smith.co.uk/...
Stephen Smith
steve@...
Send Email
Jul 2, 2007
7:06 pm
19521
I have a feeling I'm about to bring up a much discussed topic, however, I wasn't able to find any related topics by searching this mailing list. My apologies...
Christian Nelson
xianpants
Offline Send Email
Jul 3, 2007
7:54 pm
19522
... FYI, TestNG also supports class-level annotations: @Test(groups = "database") public class DatabaseTests { } In this case, all the methods in this class...
Cédric Beust 
cbeust
Offline Send Email
Jul 3, 2007
8:05 pm
19523
Here's an ABC sample for JUnit and Eclipse. Included snapshots and source code. I need your comments. ...
Mohammad Abou-Basha
midoladido
Offline Send Email
Jul 4, 2007
4:27 pm
19524
I have been playing with Hamcrest a little and I keep running across a problem with generic type being mismatched in assertThat(). Example: Object actual = "a...
Kevin Lawrence
kevinwilliam...
Online Now Send Email
Jul 5, 2007
8:16 pm
19525
Kevin, I don't see why 'actual' is declared as Object? It looks like Hamcrest is written correctly in this respect. Cheers, David ... Matcher<String>) ... ...
David Vydra
dvydra2
Offline Send Email
Jul 5, 2007
10:22 pm
19526
... I don't see why 'actual' is declared as Object? It looks like Hamcrest ... How about this example: JTable table = new JTable(); table.setValueAt("a...
Kevin Lawrence
kevinwilliam...
Online Now Send Email
Jul 6, 2007
12:48 am
19527
Kevin, Yep, that can be a pain. I've only gotten bit by it once every couple weeks, which is about half as often as I appreciate the fact that quick-fix on ...
David Saff
dsaff
Offline Send Email
Jul 6, 2007
2:04 am
19528
I've created a new feature request describing what I think better suite/group support would look like: ...
Christian Nelson
xianpants
Offline Send Email
Jul 6, 2007
8:50 pm
19529
Hello, I have been reading about mock objects and I would like to use them to develop junits tests for a servlet that I have recently coded . Where would I...
tksri2000
Offline Send Email
Jul 8, 2007
9:12 am
19530
There are a number of different mock frameworks out there, each of which has good points and bad points. If you're using Spring to develop your web application...
Stephen Smith
steve@...
Send Email
Jul 8, 2007
10:12 am
19531
How about this hack? package org.hamcrest; public class MyMatcherAssert { public static <T> void assertThat(Object actual, Matcher<T> matcher) { assertThat("",...
David Vydra
dvydra2
Offline Send Email
Jul 8, 2007
5:15 pm
19532
Christian, Thank you for the feature request. Let's discuss further here, and then summarize to the bug posting--I've indicated as such to the tracker...
David Saff
dsaff
Offline Send Email
Jul 9, 2007
4:17 pm
19533
... This approach breaks down quickly as soon as you want one of your test methods to belong to more than just one group. For example, how do you express the...
Cédric Beust 
cbeust
Offline Send Email
Jul 9, 2007
4:30 pm
19534
... Thanks Davids, My question was about 30% grumbling and 70% wondering if I was missing something really obvious. I too have been delighted when the quickfix...
Kevin Lawrence
kevinwilliam...
Online Now Send Email
Jul 9, 2007
4:33 pm
19535
Hi, I've been looking into in-container testing and the tools out there look a bit dated - Cactus and Junitee. They handle well junit 3.8.1 but not junit 4.3....
Martin Sommer
sommermartin
Offline Send Email
Jul 9, 2007
5:42 pm
19536
Hi, I've been looking at tools for integration testing for ejb30 applications (container agnostic) and the two tools I bumped into looked a bit dated Cactus...
Martin Sommer
sommermartin
Offline Send Email
Jul 9, 2007
7:16 pm
19537
... As Cedric pointed out, this only works if a test is a member of only one group. As so many others do, many of my tests are annotated to be in multiple...
Bradley, Todd
todd404
Online Now Send Email
Jul 10, 2007
4:55 pm
19538
David, In order to support older JUnit execution environments (Ant, Eclipse) which need the 3.8 hooks, our classes have suite() methods. This appears to be the...
Michael Schechter
mlschechter
Offline Send Email
Jul 10, 2007
8:46 pm
19539
Hello All, We are trying to use the times reported by JUnit as a benchmark value. Is that reasonable? We understand that the setUp() Time is included and have...
Dennis
dennisk1718
Offline Send Email
Jul 10, 2007
9:12 pm
19540
Hi Dennis, ... I guess that depends on what you mean by "use as a benchmark value"? ... If setUp() is included then I'd say it's almost certain that tearDown()...
Lasse Koskela
lassekoskela
Offline Send Email
Jul 11, 2007
1:26 am
19541
hi... Iam using the JUnit version3.8.1 to test the Struts application version1.2.2,while testing my action class which consist of database connectivity its...
pnprathil
Offline Send Email
Jul 12, 2007
5:48 am
19542
Hello pnprathil, ... Is the directory containing "WEB-INF/struts-config.xml" in classpath while running the unit tests? Otherwise, the Javadocs for ...
Lasse Koskela
lassekoskela
Offline Send Email
Jul 12, 2007
7:15 am
19543
Michael, The suite() method is another ball of wax. Given a class that has some JUnit 3 characteristics and some JUnit 4 characteristics, we've been trying to...
David Saff
dsaff
Offline Send Email
Jul 12, 2007
3:58 pm
19544
... I agree your situation requires multiple groups. It also seems that Christian's original need can be met with what's currently in the current version of...
David Saff
dsaff
Offline Send Email
Jul 12, 2007
7:12 pm
19545
... build) ... etc) Those are definitely nice benefits. I'm having a hard time visualizing what Nightly.java is, though. A test suite which runs anything ...
Bradley, Todd
todd404
Online Now Send Email
Jul 12, 2007
7:50 pm
19546
@RunWith(Category.class) public class Nightly { } Would be a start--if we have a classpath scanner, that should be enough. From there: ...
David Saff
dsaff
Offline Send Email
Jul 12, 2007
8:03 pm
19547
... Interesting thought, but an advantage of string groups is that you can run your tests by specifying group regexps (very powerful). For example, some of our...
Cédric Beust 
cbeust
Offline Send Email
Jul 12, 2007
8:23 pm
Messages 19518 - 19547 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