I am new to JUnit.Entire project has developed using spring and JSPs. Now my job is review code and notice whether it follows coding standards or not.They...
23805
Georg Thimm
le_garcon_en...
Feb 1, 2012 1:32 pm
Hi! Please feel fre to take some code for this out of "unofficialjunit" on sourceforge. Regards, Georg [Non-text portions of this message have been removed]...
23806
wensi liu
juky.liu@...
Feb 7, 2012 2:24 am
Hi All, Is there a way to get more detail info after running test cases? like spend how many time for each test case? list all passed test cases other than ...
23807
Wayne
wdtj
Feb 15, 2012 10:48 pm
Forgive me if this is a FAQ, but I have tried digging through the documentation and the answer was not apparent. I am writing some test cases. As part of the...
23808
Dawid Weiss
dawid.weiss@...
Feb 15, 2012 11:05 pm
You should write a @Rule that will intercept the Description associated with the current test case and store it somewhere (or use it directly). Check out the...
23809
David Saff
dsaff
Feb 16, 2012 2:32 am
See also https://github.com/KentBeck/junit/blob/master/src/main/java/org/junit/rules/TestName.java...
23810
coretek89
Feb 16, 2012 12:35 pm
Hello, I wan't to ask for a solution to stop and/or destroy a JUnitCore. Like pleaseStop() on the RunNotifier. I already tried ExecutorsService with no...
23811
nirh20
Feb 22, 2012 2:38 pm
Hi all I would like to know how to set an order in Junit, Details: the Junit tests are executing from quickbuild. Thanks...
23812
Matthew Farwell
mjfarwell
Feb 22, 2012 3:54 pm
Hi, If you're asking about the ordering of tests, it's discouraged in JUnit. For more information, see this stackoverflow Answer: ...
23813
nirh20
Feb 23, 2012 1:03 pm
Thank you very much! I will look on it...
23814
mjfarwell
Feb 25, 2012 12:29 pm
Hi, I've submitted a pull request for this https://github.com/KentBeck/junit/pull/386. @SortMethodsWith(MethodSorters.NAME_ASC) public class MyTest { } There...
23815
anu smina
anu_rose45
Feb 26, 2012 12:29 pm
I dont know how to install and run junit. I tried different methods given in the web. Nothing works. So please help me to run the program 1. Java is...
23816
Malte Finsterwalder
maltefinster...
Feb 27, 2012 3:01 pm
JUnit is a jar file, which needs to be added to your classpath. So you can install it anywhere. The easiest way to run junit is actually in an IDE (Eclipse,...
23817
mihir jhala
mihirjhala
Feb 27, 2012 11:55 pm
Hello, Â Better way to work with Juint is to have IDE like eclipse.It allready has Juint in-built in it.So you can download eclipse and when you go to ...
23818
mjfarwell
Feb 28, 2012 11:22 am
Hi, I've submitted a pull request to make private the methods JUnitCore#runMainAndExit and JUnitCore#runMain ...
23819
saurav
sauravkr
Feb 28, 2012 11:23 am
You can put anything at any place just classpath for jars and path for java command should be defined. Regards, Saurav From: junit@yahoogroups.com...
23820
sk_smile5n
Feb 29, 2012 1:09 pm
I have multiple products/applications. Some are running on Java background and some on .NET background. Correspondingly unit test cases are written for both...
23821
Matthew Farwell
mjfarwell
Feb 29, 2012 6:06 pm
Salut, You can probably use jenkins for this, although I haven't done it myself. I found the following references on the net: Jenkins – TFS and MSBuild:...
23822
sk_smile5n
Mar 1, 2012 5:00 pm
Hi Matthew, Thanks for your immediate response. I basically need to integrate both Junit and Nunit test cases in a common platform. Else will put it in this...
23823
Hunter Hegler
jhhegler
Mar 19, 2012 1:17 pm
Hey Everybody, What are some naming conventions you practice for naming unit tests? I'm Particularly interested in how you name unit tests for overloaded...
23824
Malte Finsterwalder
maltefinster...
Mar 19, 2012 3:05 pm
I usually don't name my tests after methods I test, but rather after the functionality to test and the result to expect. Some examples: ...
23825
Colin Vipurs
zodiac_zx6
Mar 19, 2012 4:13 pm
The same as this but with the added part that we name our tests so that class name (-Test) + test name form a coherent sentence about the behaviour, e.g. ...
23826
Tomek Kaczanowski
kaczanowski.tomek@...
Mar 19, 2012 4:13 pm
Rule of a thumb: do not test methods, tests classes responsibility/behaviour. If you follow this rule, you won't have to find names for overloaded methods, but...
23827
Georg Thimm
le_garcon_en...
Mar 20, 2012 10:48 am
Hi! I try to describe the expected behaviour (much like the other posts). At some point, I included method names and aded a digit or tested behaviour, but that...
23828
Aslak
aslak_hellesoy
Mar 26, 2012 1:43 am
Hi all, I'm about to release Cucumber-JVM 1.0.0. (a pure Java implementation for the popular Ruby BDD tool). Cucumber-JVM has some decent JUnit integration (a...
23829
mphilipp1982
Mar 30, 2012 7:11 pm
Hi, we are currently working on making JUnit use and work with the latest version of Hamcrest (1.3.RC2). All but one matcher that used to be provided by...
23830
Dale Emery
dhemery...
Mar 30, 2012 8:37 pm
I've been using 1.3RC2 since it came out. I haven't noticed any problems, but I probably haven't used any of the moved matchers other than is(). Dale -- Dale...
23831
zekey99854
Apr 3, 2012 1:06 pm
Hello, I recently migrated 4.10 and I've got the following warning in a class that extends BlockJUnit4ClassRunner: The method withBefores(FrameworkMethod,...
23832
KandiSweetie7330
santhu_12ka4
Apr 5, 2012 1:48 am
I have a Mockito code, String[] activeGroupName = {"activeJob1", "activeJob2"}; ...
23833
David Saff
dsaff
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 ... ...