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...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 21919 - 21949 of 24384   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
21919 Alistair Israel
aisrael Send Email
Sep 2, 2009
8:50 am
Hi, list. Been playing around a bit with JUnit 4.7's new interceptors (rules) feature and in some cases, turning a @Before method (and a base class) into a...
21920 David Saff
dsaff Send Email
Sep 2, 2009
1:31 pm
Alistair, Thanks for the feedback! Glad the method-level rules are working out for you. We're hearing loud and clear, from you and others, that class-level ...
21921 Alistair Israel
aisrael Send Email
Sep 3, 2009
3:39 am
... In my case, I was able to extend ExternalResource to provide a lightweight HTTP server test harness (using the HTTP server API in Java 6) that could...
21922 Alistair Israel
aisrael Send Email
Sep 3, 2009
7:00 am
... Hi Regan. In this case I'd personally test and implement from the "outside in". Meaning, I'd actually try and verify the end result we're after. ...
21923 David Saff
dsaff Send Email
Sep 3, 2009
10:53 am
... Thanks for writing that up! (Indeed, an HTTP server was also my first "in the wild" ExternalResource.) David Saff...
21924 Srivalli Arkalgud
sarkalgud Send Email
Sep 4, 2009
4:25 pm
Hello, How can tests be grouped in JUnit? I am for grouping tests based on test coverage as in Sanity tests, Smoke tests, Regression tests. Thanks! [Non-text...
21926 Forsberg, Mike
mike.forsber... Send Email
Sep 4, 2009
5:26 pm
Have you looked into TestSuitesin 4.5 or the Suite annotation in the latest version? 4.5: http://junit.org/junit/javadoc/4.5/junit/framework/TestSuite.html ...
21927 Alistair Israel
aisrael Send Email
Sep 9, 2009
2:45 am
Hi, Kent/David. Just did some testing and it seems that the execution chain with interceptors is actually: - @Before - ExternalResource#before() - @Test -...
21928 tris_0011 Send Email Sep 10, 2009
7:58 pm
Hi! Thanks for your answer! I uploaded the picture here: http://s3.directupload.net/images/090910/u5fr8z34.png "testAltPrepCompPlainText_tabelle" is the one...
21929 Chris Dollin
anover_alias Send Email
Sep 14, 2009
11:16 am
... I don't know if it's related, but if `assertEquals(A, B)` does an `A.equals(B)`, your assertTrue is doing a B.equals(A), and if B isn't a String and has...
21930 kentb
kentlbeck Send Email
Sep 14, 2009
4:06 pm
Thanks for the note. We've had a couple of comments that people expected rules to run before @Before. We placed them where we did not for any particular...
21931 Bogdan
bogdanmocanu... Send Email
Sep 18, 2009
9:00 pm
Hello, I am using JUnit 4.7 and used the new Rules mechanism, with TempFolder. What I needed was to have a temporary folder where the CUT could create some...
21932 tris_0011 Send Email Sep 18, 2009
9:01 pm
Hi! Yes, i think that's the answer. 'assertEquals ("5", testObject.feedbackText);' doesn't work, but 'assertEquals ("5", testObject.feedbackText.toString());'...
21933 kentb
kentlbeck Send Email
Sep 18, 2009
10:17 pm
Bogdan, You are seeing the currently expected behavior. It's clear that we need to at least experiment with moving @Rules before @Before methods. Kent _____ ...
21934 beckymc22 Send Email Sep 19, 2009
10:23 pm
Hi, I recently upgraded to JUnit 4 and started exploring Matchers. I found that the org.junit.Assert.assertThat() method doesn't allow my Matcher's...
21935 Bogdan
bogdanmocanu... Send Email
Sep 19, 2009
10:24 pm
Hello Kent, thanks for answering. Only after sending the question, I saw that another user had a similar problem with TestName. Next time I will search the...
21936 Chris Dollin
anover_alias Send Email
Sep 21, 2009
8:04 am
... I would deduce that `testObject.feedbackText` is not a String. ... If `testObject.feedbackText` "should be" a String, then either it has type String (in...
21937 veena_kris2003 Send Email Sep 23, 2009
12:43 pm
http://junit.sourceforge.net/doc/faq/faq.htm#organize_1 Using this article I followed the instrunctions under Running Tests: In step 3 I have the full package...
21938 kentb
kentlbeck Send Email
Sep 23, 2009
10:38 pm
All, I have changed the code on GitHub to run rules before running @Befores and after running @Afters. It required one test change and moving one line of ...
21939 kentb
kentlbeck Send Email
Sep 23, 2009
10:39 pm
Can you file this as a defect? We'd appreciate the test that, when passing, will demonstrate that we're doing the right thing. Kent _____ From:...
21940 Alistair Israel
aisrael Send Email
Sep 25, 2009
4:16 am
Hi, Kent. Pulled from GitHub and built Junit locally (calling it "junit-4.8-SNAPSHOT&quot;, following Maven conventions). I can confirm that the test execution...
21941 le_garcon_enerve
le_garcon_en... Send Email
Sep 26, 2009
12:32 am
... Maybe - which class is missing? Georg...
21942 Prathibha G
prathibha_g2k4 Send Email
Sep 26, 2009
12:32 am
Hi Veena,   Looks like simple problem.   You need to specify the class to be executed directly. In ant script $"" refers to some variable whose value is set...
21943 ruplah Send Email Sep 27, 2009
5:13 am
Hi, What would be the best way to separate test data in the form of text files, excel or xml to keep the test data. The test code should pick the test data...
21944 Nat Pryce
nat_pryce Send Email
Sep 27, 2009
7:32 pm
I find it easiest to store files alongside the class itself so that it can be loaded as a resource with the getClass().getResource(...) or ...
21945 ashishsoni2u Send Email Sep 27, 2009
9:53 pm
Hi Is anyone knows how to get the current executing test method name in the setup method before executing the test method in Junit 3.8. Thanks in Advance. ...
21946 Sampo Niskanen
samponiskanen Send Email
Sep 27, 2009
9:53 pm
Hi, I'm having trouble running my JUnit tests from an Ant script, and haven't been able to find any solution in the FAQ or on the net. Though the classpath is...
21947 michaellufhl Send Email Sep 28, 2009
9:19 am
... Call this.getName() in setUp method. Michael...
21948 Mike Forsberg
bigmike_f Send Email
Sep 28, 2009
9:19 am
My first suggestion is to run ant with the -v command option. This will list the command line execution to the junit call. (I think :) ) Once you have the...
21949 Mike Forsberg
bigmike_f Send Email
Sep 28, 2009
9:20 am
You really should upgrade... Here is the code, hope I'm not doing your homework. package org.junit.sample3_8_2; import junit.framework.TestCase; public class...
Messages 21919 - 21949 of 24384   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