<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://www.prom-auto.ru/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.prom-auto.ru/wiki/feed.php">
        <title>ПромАвтоматика dev:java:junit</title>
        <description></description>
        <link>https://www.prom-auto.ru/wiki/</link>
        <image rdf:resource="https://www.prom-auto.ru/wiki/lib/tpl/arctic/images/favicon.ico" />
       <dc:date>2026-08-22T01:01:37+03:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:parametrized&amp;rev=1349163518&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:run-from-code&amp;rev=1349163488&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:run-from-terminal&amp;rev=1349163449&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.prom-auto.ru/wiki/lib/tpl/arctic/images/favicon.ico">
        <title>ПромАвтоматика</title>
        <link>https://www.prom-auto.ru/wiki/</link>
        <url>https://www.prom-auto.ru/wiki/lib/tpl/arctic/images/favicon.ico</url>
    </image>
    <item rdf:about="https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:parametrized&amp;rev=1349163518&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-10-02T11:38:38+03:00</dc:date>
        <title>Parametrized test</title>
        <link>https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:parametrized&amp;rev=1349163518&amp;do=diff</link>
        <description>Parametrized test



@RunWith(value = Parameterized.class)
public class InitTest {
	private double expected;
	private double valueOne;
	private double valueTwo;

	@Parameters
	public static Collection dataParameters() {
		return Arrays.asList(new Object[][] { 
				{ 2, 1, 1 }, 
				{ 3, 2, 1 }, 
				{ 5, 3, 1 }, });
	}

	public InitTest(double expected, double valueOne, double valueTwo) {
		this.expected = expected;
		this.valueOne = valueOne;
		this.valueTwo = valueTwo;
	}

	@Test
	public void …</description>
    </item>
    <item rdf:about="https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:run-from-code&amp;rev=1349163488&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-10-02T11:38:08+03:00</dc:date>
        <title>Run test from code</title>
        <link>https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:run-from-code&amp;rev=1349163488&amp;do=diff</link>
        <description>Run test from code


import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;

public class TestPlayGround {
	  public static void main(String[] args) {
		    Result result = JUnitCore.runClasses(InitTest.class);
		    for (Failure failure : result.getFailures()) {
		      System.out.println(failure.toString());
		    }
		  }
}</description>
    </item>
    <item rdf:about="https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:run-from-terminal&amp;rev=1349163449&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-10-02T11:37:29+03:00</dc:date>
        <title>Run test from terminal</title>
        <link>https://www.prom-auto.ru/wiki/doku.php?id=dev:java:junit:run-from-terminal&amp;rev=1349163449&amp;do=diff</link>
        <description>Run test from terminal

java  -cp ./java:./test:junit-4.10.jar  org.junit.runner.JUnitCore promauto.jroboplc.core.TagBaseTest  promauto.jroboplc.core.TagBoolTest</description>
    </item>
</rdf:RDF>
