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

Messages

Advanced
Messages Help
Messages 23832 - 23861 of 24384   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
23832 KandiSweetie7330
santhu_12ka4 Send Email
Apr 5, 2012
1:48 am
I have a Mockito code, String[] activeGroupName = {"activeJob1&quot;, "activeJob2&quot;}; ...
23833 David Saff
dsaff Send Email
Apr 6, 2012
7:43 pm
santhoshjoy, JUnit does not have a built-in mocking framework. You can use Mockito with JUnit, so you don't need to give up your Mockito code. David Saff ... ...
23834 David Saff
dsaff Send Email
Apr 12, 2012
7:08 pm
Steve, I think we over-aggressively deprecated withBefores. It is unlikely to be truly removed any time soon. Thanks, David Saff ... [Non-text portions of...
23835 Steve Hostettler
zekey99854 Send Email
Apr 12, 2012
7:57 pm
David, thanks for the answer. In that case, I'll stick to the current solution. Best Regards =========== Steve Hostettler ... [Non-text portions of this...
23836 Marc Philipp
mphilipp1982 Send Email
Apr 16, 2012
7:45 pm
All, there's now a beta snapshot available on https://github.com/KentBeck/junit/downloads Direct link:...
23837 Dawid Weiss
dawid.weiss@... Send Email
Apr 18, 2012
8:20 am
Hi everyone, So, AllDefaultPossibilitiesBuilder has ignoredBuilder() before annotated builder as shown here: @Override public Runner runnerForClass(Class<?>...
23838 David Saff
saffatgoogle Send Email
Apr 18, 2012
6:30 pm
Dawid, Which of these situations are you targeting? Situation 1: @RunWith(MyCustomSuite.class) @SuiteClasses({A.class, B.class, ...}) public class Suite { ......
23839 Dawid Weiss
dawid.weiss@... Send Email
Apr 18, 2012
10:55 pm
This would be Situation 2. I have a custom runner (not descending from JUnit) specifically to target things like reporting (that is -- I would like to know...
23840 David Saff
saffatgoogle Send Email
Apr 20, 2012
10:28 pm
Dawid, If there was a way to attach a listener implementation to a suite, would that give you what you're looking for? Runner is a fairly heavy-weight ...
23841 David Saff
saffatgoogle Send Email
Apr 20, 2012
10:28 pm
k.l, These are important and common questions, so often a Google search reveals some helpful resources. For example, you might want to start with ...
23842 Dawid Weiss
dawid.weiss@... Send Email
Apr 20, 2012
10:49 pm
Hi David, Yeah, well... I already wrote my Runner implementation -- http://labs.carrotsearch.com/randomizedtesting.html There are benefits of having a custom,...
23843 Kevin Cooney
kevincooney2000 Send Email
Apr 20, 2012
11:01 pm
Not a perfect solution, but you could add your own custom annotation for this purpose. Your custom runner would check if the target class has this annotation,...
23844 Dawid Weiss
dawid.weiss@... Send Email
Apr 21, 2012
7:32 am
Thanks. Yes, I could do this, like I did with other things (for example I support meta-annotation @TestGroup which allows one to define custom annotations like...
23845 Andres Olarte
olarte.andres@... Send Email
Apr 22, 2012
6:15 pm
Hello all, I'm looking for a good way to keep scenarios stored outside of the unit tests. Basically I'm thinking of some way to do black box testing based on...
23846 Matthew Farwell
mjfarwell Send Email
Apr 22, 2012
11:13 pm
A CSV/Excel file? Matthew Farwell. ... [Non-text portions of this message have been removed]...
23847 David M
jokerdmgmail Send Email
Apr 22, 2012
11:13 pm
Hello Andres. Maybe an XML file could be the simplest and easy way. <data> <value> <input1>1</input1> <input2>2</input2> <output1>3</output1>; </value> <value> ...
23848 Gerard Meszaros
gmkayaker Send Email
Apr 23, 2012
1:10 am
This problem has been solved many times already. For example, take a look at JBehave. It uses JUnit to run tests that are specified in Given/When/Then format....
23849 Dawid Weiss
dawid.weiss@... Send Email
Apr 23, 2012
5:37 am
Parameterized test runner is probably what you're after. The default one in JUnit does not support naming parameters (several folks provided patches, they're...
23850 Georg
le_garcon_en... Send Email
Apr 23, 2012
12:09 pm
Hi! Alternativly, use getData methods in CSVParametrized form the unofficialjunit project in sourceforge. Cheers, Georg...
23851 David Saff
saffatgoogle Send Email
Apr 23, 2012
7:30 pm
Dawid, Imagine a developer being dropped into a new project. There are JUnit tests using custom runners she's never seen, and some of those are failing. She'd...
23852 Dawid Weiss
dawid.weiss@... Send Email
Apr 23, 2012
7:44 pm
... Like I mentioned I can understand this rationale but I still differ in opinion. If there are custom runners that fail to comply with @Ignore contract they...
23853 David Saff
saffatgoogle Send Email
Apr 23, 2012
8:11 pm
... Ah, I'd forgotten that you wanted a description of all the contents. Does your scheme allow you to use a RunnerBuilder other than the default ...
23854 Dawid Weiss
dawid.weiss@... Send Email
Apr 23, 2012
8:29 pm
... See, that's the problem -- I have no control over what the use case of invoking the suite class is. It can be invoked from Ant, Eclipse or somewhere else....
23855 David Saff
saffatgoogle Send Email
Apr 23, 2012
9:02 pm
So, with an extra suite-wrapping step, you can use whatever ordering of builders you want: @RunWith(MyCustomBuiltSuite.class) ...
23856 Dawid Weiss
dawid.weiss@... Send Email
Apr 23, 2012
9:14 pm
... they get upset at every spurious keystroke (even at the @Test annotation). That's fine, thanks for trying to help, David. I'll just live with this behavior...
23857 Patricia
patricia_e_m... Send Email
Apr 25, 2012
10:27 pm
Hi :) I'm working on a project for university, which is about a website to teach the basics of Java programming. It'll have some programming lessons and then...
23858 Malte Finsterwalder
maltefinster... Send Email
Apr 26, 2012
7:17 am
That's a very general question. JUnit does not do much more than execute a bunch of tests and give you assertions to test. (It does give you some more "fancy"...
23859 yaswanth
spartonking478 Send Email
Apr 26, 2012
1:53 pm
Hi All, I am new to junit. I am confused how to run the parameterized method. Ex: @Test public void add(int a,int b){ System.out.println("Result = "+(a+b)); } ...
23860 David M
jokerdmgmail Send Email
Apr 26, 2012
8:06 pm
"Must" read this: http://www.mkyong.com/unittest/junit-4-tutorial-6-parameterized-test/ It´s a good and simple explain by example. Greetings -- M.P.7.O. ...
23861 Colin Vipurs
zodiac_zx6 Send Email
Apr 26, 2012
8:06 pm
You need to use the ParameterizedTestRunner. Here's a blog on how to do that: https://blogs.oracle.com/jacobc/entry/parameterized_unit_tests_with_junit ... -- ...
Messages 23832 - 23861 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