• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:docs

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt…
2 <!-- NewPage -->
5 <!-- Generated by javadoc (1.8.0) on Mon Jul 28 12:08:59 CEST 2014 -->
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <title>JUnitParamsRunner (JUnitParams 1.0.3-SNAPSHOT API)</title>
8 <meta name="date" content="2014-07-28">
13 <script type="text/javascript"><!--
15 if (location.href.indexOf('is-external=true') == -1) {
16 parent.document.title="JUnitParamsRunner (JUnitParams 1.0.3-SNAPSHOT API)";
21 //-->
32 <!-- ========= START OF TOP NAVBAR ======= -->
34 <!-- -->
38 <!-- -->
41 <li><a href="../overview-summary.html">Overview</a></li>
42 <li><a href="package-summary.html">Package</a></li>
44 <li><a href="class-use/JUnitParamsRunner.html">Use</a></li>
45 <li><a href="package-tree.html">Tree</a></li>
46 <li><a href="../deprecated-list.html">Deprecated</a></li>
47 <li><a href="../index-all.html">Index</a></li>
48 <li><a href="../help-doc.html">Help</a></li>
61 <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
64 <script type="text/javascript"><!--
72 //-->
91 <!-- -->
93 <!-- ========= END OF TOP NAVBAR ========= -->
94 <!-- ======== START OF CLASS DATA ======== -->
101 <li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title…
136 This is a JUnit runner for parameterised tests that don't suck. Annotate your test class with
138 <code>&#064;Parameters</code> annotation on each test method which requires
139 parameters. Nothing more needed - no special structure, no dirty tricks.
155 to limit the amount of test code when you need to test the same code under
166 You can parameterise your test with values defined in annotations. Just pass
167 sets of test method argument values as an array of Strings, where each string
171 &#064;Test
182 &#064;Test
196 &#064;Test
214 <code>method</code> can take more than one method name - you can pass as many
216 test cases e.g. into categories.
218 &#064;Test
240 test, but prefixed by <code>parametersFor</code>. So our example would look
244 &#064;Test
262 &#064;Test
281 &#064;Test
299 them in test methods defined in superclasses, as well as redefine data
300 providing methods in subclasses to be used by test method defined in a
308 parameters or use more than one method to provide parameters to a single test
312 &#064;Test
339 &#064;Test
349 columns in the same order as test method parameters:
352 &#064;Test
353 &#064;FileParameters("cartoon-characters.csv")
360 test method arguments, you
364 &#064;Test
365 &#064;FileParameters(value = "cartoon-characters.csv", mapper = CartoonMapper.class)
377 result.add(new Object[] { ..... }); // some format edible by the test method
391 &#064;Test
392 &#064;FileParameters(value = "cartoon-characters.xsl", mapper = ExcelCartoonMapper.class)
412 …Sometimes you want to pass some parameter in one form, but use it in the test in another. Dates ar…
413 …s a String like "2013.01.01", but you'd like to use a Jodatime's LocalDate or JDKs Date in the test
414 …without manually converting the value in the test. This is where the converters become handy. It's…
418 &#064;Test
438 Spring's test framework is based on JUnit runners, and JUnit allows only one
441 this to your test class:
453 This lets you use in your tests anything that Spring provides in its test
459 Tests show up in your IDE as a tree with test class name being the root, test
465 If you create a parameterised test, but won't give it any parameter sets, it
467 <h4>Parameterised test with no parameters</h4>
469 If for some reason you want to have a normal non-parameterised method to be
472 parameters to execute properly (parameters are a part of test setup, right?)
475 The runner for parameterised test is trying to keep all the @Rule's running,
476 but if something doesn't work - let me know. It's pretty tricky, since the
481 <h4>Test inheritance</h4>
485 fine with inheritance - you can define a common test in the superclass, and
499 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
502 <!-- -->
511 …nitParamsRunner-java.lang.Class-">JUnitParamsRunner</a></span>(<a href="http://docs.oracle.com/jav…
516 <!-- ========== METHOD SUMMARY =========== -->
519 <!-- -->
529 … class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.…
530 …ramsRunner.html#Z:Z:D-java.lang.Object...-">$</a></span>(<a href="http://docs.oracle.com/javase/6/
536-java.util.List-">collectInitializationErrors</a></span>(<a href="http://docs.oracle.com/javase/6/
539 …lass="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.h…
540 …NameLink"><a href="../junitparams/JUnitParamsRunner.html#computeTestMethods--">computeTestMethods<…
544 …ef="../junitparams/JUnitParamsRunner.html#describeMethod-org.junit.runners.model.FrameworkMethod-"…
548 …mberNameLink"><a href="../junitparams/JUnitParamsRunner.html#getDescription--">getDescription</a><…
552 …unitparams/JUnitParamsRunner.html#methodInvoker-org.junit.runners.model.FrameworkMethod-java.lang.…
553 …="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or…
557 …ams/JUnitParamsRunner.html#runChild-org.junit.runners.model.FrameworkMethod-org.junit.runner.notif…
563 <!-- -->
570 <!-- -->
577 <!-- -->
584 <!-- -->
586 …ited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.…
587docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or …
597 <!-- ========= CONSTRUCTOR DETAIL ======== -->
600 <!-- -->
603 <a name="JUnitParamsRunner-java.lang.Class-">
604 <!-- -->
609 …>public&nbsp;JUnitParamsRunner(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.h…
619 <!-- ============ METHOD DETAIL ========== -->
622 <!-- -->
625 <a name="collectInitializationErrors-java.util.List-">
626 <!-- -->
631docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface …
638 <a name="runChild-org.junit.runners.model.FrameworkMethod-org.junit.runner.notification.RunNotifier
639 <!-- -->
652 <a name="computeTestMethods--">
653 <!-- -->
658 <pre>protected&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-extern…
665 <a name="methodInvoker-org.junit.runners.model.FrameworkMethod-java.lang.Object-">
666 <!-- -->
672 …="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or…
679 <a name="getDescription--">
680 <!-- -->
694 <a name="describeMethod-org.junit.runners.model.FrameworkMethod-">
695 <!-- -->
703 <a name="Z:Z:D-java.lang.Object...-">
704 <!-- -->
709docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interfac…
714 <dd><code>params</code> - Values to be returned in an <code>Object[]</code> array.</dd>
726 <!-- ========= END OF CLASS DATA ========= -->
727 <!-- ======= START OF BOTTOM NAVBAR ====== -->
729 <!-- -->
733 <!-- -->
736 <li><a href="../overview-summary.html">Overview</a></li>
737 <li><a href="package-summary.html">Package</a></li>
739 <li><a href="class-use/JUnitParamsRunner.html">Use</a></li>
740 <li><a href="package-tree.html">Tree</a></li>
741 <li><a href="../deprecated-list.html">Deprecated</a></li>
742 <li><a href="../index-all.html">Index</a></li>
743 <li><a href="../help-doc.html">Help</a></li>
756 <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
759 <script type="text/javascript"><!--
767 //-->
786 <!-- -->
788 <!-- ======== END OF BOTTOM NAVBAR ======= -->