-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v0.12.x_bugfix' into v0.12.x
- Loading branch information
Showing
8 changed files
with
246 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
de.gebit.integrity.tests/integrity/suites/basic/enums/namedResultEnumTests.integrity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
packagedef integrity.basic.enums with | ||
|
||
suitedef namedResultEnumTest with | ||
|
||
test integrity.fixtures.basic.noop.createEnumNamedResultTest firstParameter = "foobar" secondParameter = 100 thirdParameter = VALUE1 | ||
|
||
test integrity.fixtures.basic.noop.createEnumNamedResultTest firstParameter = "foobar" secondParameter = 100 thirdParameter = VALUE2 | ||
|
||
suiteend | ||
|
||
|
||
suitedef namedResultEnumTableTest with | ||
|
||
tabletest integrity.fixtures.basic.noop.createEnumNamedResultTest | ||
| firstParameter = | secondParameter = | thirdParameter = | | ||
| "foobar" | 100 | VALUE1 | | ||
| "foobar" | 100 | VALUE2 | | ||
| "foobar" | 101 | VALUE1 | | ||
| "footbar" | 100 | VALUE1 | | ||
|
||
suiteend | ||
|
||
packageend |
58 changes: 58 additions & 0 deletions
58
...ntegrity.tests/junit/de/gebit/integrity/tests/junit/basic/enums/namedResultEnumStuff.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2013 Rene Schneider, GEBIT Solutions GmbH and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*******************************************************************************/ | ||
package de.gebit.integrity.tests.junit.basic.enums; | ||
|
||
import java.io.IOException; | ||
|
||
import org.jdom.Document; | ||
import org.jdom.JDOMException; | ||
import org.junit.Test; | ||
|
||
import de.gebit.integrity.runner.exceptions.ModelLoadException; | ||
import de.gebit.integrity.tests.junit.IntegrityJUnitTest; | ||
|
||
/** | ||
* JUnit test which checks very simple fixture calls. | ||
* | ||
* | ||
* @author Rene Schneider - initial API and implementation | ||
* | ||
*/ | ||
public class namedResultEnumStuff extends IntegrityJUnitTest { | ||
|
||
/** | ||
* Performs a suite which does simple fixture calls and checks the resulting XML document. | ||
* | ||
* @throws ModelLoadException | ||
* @throws IOException | ||
* @throws JDOMException | ||
*/ | ||
@Test | ||
public void testTest() throws ModelLoadException, IOException, JDOMException { | ||
Document tempResult = executeIntegritySuite( | ||
new String[] { "integrity/suites/basic/enums/namedResultEnumTests.integrity" }, | ||
"integrity.basic.enums.namedResultEnumTest", null); | ||
assertDocumentMatchesReference(tempResult); | ||
} | ||
|
||
/** | ||
* Performs a suite which does simple fixture calls and checks the resulting XML document. | ||
* | ||
* @throws ModelLoadException | ||
* @throws IOException | ||
* @throws JDOMException | ||
*/ | ||
@Test | ||
public void testTableTest() throws ModelLoadException, IOException, JDOMException { | ||
Document tempResult = executeIntegritySuite( | ||
new String[] { "integrity/suites/basic/enums/namedResultEnumTests.integrity" }, | ||
"integrity.basic.enums.namedResultEnumTableTest", null); | ||
assertDocumentMatchesReference(tempResult); | ||
} | ||
|
||
} |
49 changes: 49 additions & 0 deletions
49
de.gebit.integrity.tests/results/integrity.basic.enums.namedResultEnumTableTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<integrity name="Integrity JUnit Testing" timestamp="23.01.14 17:20" isotimestamp="2014-01-23T17:20:05" duration="42.171"> | ||
<variables /> | ||
<suite id="0" name="integrity.basic.enums.namedResultEnumTableTest" timestamp="23.01.14 17:20:05.0303"> | ||
<setup /> | ||
<variables /> | ||
<statements> | ||
<tabletest id="1" line="14" name="createEnumNamedResultTest" description="Creates a named result bean with an enum inside" fixture="de.gebit.integrity.tests.fixtures.basic.NoOpFixture#createEnumNamedResult" timestamp="23.01.14 17:20:05.0319"> | ||
<results duration="23.657" successCount="1" failureCount="3" exceptionCount="0"> | ||
<result duration="1.257" description="Creates a named result bean with an enum inside" type="success"> | ||
<parameters /> | ||
<comparisons> | ||
<comparison name="firstParameter" expectedValue="foobar" value="foobar" type="success" /> | ||
<comparison name="secondParameter" expectedValue="100" value="100" type="success" /> | ||
<comparison name="thirdParameter" expectedValue="VALUE1" value="VALUE1" type="success" /> | ||
</comparisons> | ||
</result> | ||
<result duration="0.832" description="Creates a named result bean with an enum inside" type="failure"> | ||
<parameters /> | ||
<comparisons> | ||
<comparison name="firstParameter" expectedValue="foobar" value="foobar" type="success" /> | ||
<comparison name="secondParameter" expectedValue="100" value="100" type="success" /> | ||
<comparison name="thirdParameter" expectedValue="VALUE2" value="VALUE1" type="failure" /> | ||
</comparisons> | ||
</result> | ||
<result duration="0.800" description="Creates a named result bean with an enum inside" type="failure"> | ||
<parameters /> | ||
<comparisons> | ||
<comparison name="firstParameter" expectedValue="foobar" value="foobar" type="success" /> | ||
<comparison name="secondParameter" expectedValue="101" value="100" type="failure" /> | ||
<comparison name="thirdParameter" expectedValue="VALUE1" value="VALUE1" type="success" /> | ||
</comparisons> | ||
</result> | ||
<result duration="0.836" description="Creates a named result bean with an enum inside" type="failure"> | ||
<parameters /> | ||
<comparisons> | ||
<comparison name="firstParameter" expectedValue="footbar" value="foobar" type="failure" /> | ||
<comparison name="secondParameter" expectedValue="100" value="100" type="success" /> | ||
<comparison name="thirdParameter" expectedValue="VALUE1" value="VALUE1" type="success" /> | ||
</comparisons> | ||
</result> | ||
</results> | ||
</tabletest> | ||
</statements> | ||
<teardown /> | ||
<result duration="34.151" successCount="1" failureCount="3" exceptionCount="0" testExceptionCount="0" callExceptionCount="0" /> | ||
</suite> | ||
</integrity> | ||
|
37 changes: 37 additions & 0 deletions
37
de.gebit.integrity.tests/results/integrity.basic.enums.namedResultEnumTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<integrity name="Integrity JUnit Testing" timestamp="23.01.14 17:20" isotimestamp="2014-01-23T17:20:19" duration="27.017"> | ||
<variables /> | ||
<suite id="0" name="integrity.basic.enums.namedResultEnumTest" timestamp="23.01.14 17:20:19.0822"> | ||
<setup /> | ||
<variables /> | ||
<statements> | ||
<test id="1" line="5" name="createEnumNamedResultTest" description="Creates a named result bean with an enum inside" fixture="de.gebit.integrity.tests.fixtures.basic.NoOpFixture#createEnumNamedResult" timestamp="23.01.14 17:20:19.0837"> | ||
<results duration="1.046" successCount="1" failureCount="0" exceptionCount="0"> | ||
<result duration="1.046" description="Creates a named result bean with an enum inside" type="success"> | ||
<parameters /> | ||
<comparisons> | ||
<comparison name="firstParameter" expectedValue="foobar" value="foobar" type="success" /> | ||
<comparison name="secondParameter" expectedValue="100" value="100" type="success" /> | ||
<comparison name="thirdParameter" expectedValue="VALUE1" value="VALUE1" type="success" /> | ||
</comparisons> | ||
</result> | ||
</results> | ||
</test> | ||
<test id="2" line="7" name="createEnumNamedResultTest" description="Creates a named result bean with an enum inside" fixture="de.gebit.integrity.tests.fixtures.basic.NoOpFixture#createEnumNamedResult" timestamp="23.01.14 17:20:19.0837"> | ||
<results duration="0.883" successCount="0" failureCount="1" exceptionCount="0"> | ||
<result duration="0.883" description="Creates a named result bean with an enum inside" type="failure"> | ||
<parameters /> | ||
<comparisons> | ||
<comparison name="firstParameter" expectedValue="foobar" value="foobar" type="success" /> | ||
<comparison name="secondParameter" expectedValue="100" value="100" type="success" /> | ||
<comparison name="thirdParameter" expectedValue="VALUE2" value="VALUE1" type="failure" /> | ||
</comparisons> | ||
</result> | ||
</results> | ||
</test> | ||
</statements> | ||
<teardown /> | ||
<result duration="22.189" successCount="1" failureCount="1" exceptionCount="0" testExceptionCount="0" callExceptionCount="0" /> | ||
</suite> | ||
</integrity> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters