-
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.15.x_bugfix' into v0.15.x
- Loading branch information
Showing
10 changed files
with
376 additions
and
184 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
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
63 changes: 33 additions & 30 deletions
63
de.gebit.integrity.tests/integrity/fixtures/BeanFixture.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 |
---|---|---|
@@ -1,31 +1,34 @@ | ||
packagedef integrity.fixtures.basic.beans with | ||
|
||
testdef checkSimpleBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#checkSimpleBean | ||
|
||
testdef checkCollectionBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#checkCollectionBean | ||
|
||
testdef alterPrimitiveBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#alterPrimitiveBean | ||
|
||
testdef checkSimpleBeanUntyped uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#checkSimpleBeanUntyped | ||
|
||
testdef createSimpleBeanUntyped uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createSimpleBeanUntyped | ||
calldef createSimpleBeanUntypedCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createSimpleBeanUntyped | ||
|
||
testdef createMapForSimpleBeanUntyped uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createMapForSimpleBeanUntyped | ||
calldef createMapForSimpleBeanUntypedCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createMapForSimpleBeanUntyped | ||
|
||
testdef echoEnumTestBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoEnumTestBean | ||
calldef echoEnumTestBeanCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoEnumTestBean | ||
|
||
testdef echoEnumValueFromTestBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoEnumValueFromTestBean | ||
calldef echoEnumValueFromTestBeanCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoEnumValueFromTestBean | ||
|
||
testdef echoMap uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoMap | ||
calldef echoMapCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoMap | ||
|
||
calldef createPrimitiveTypeArrayTestBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createPrimitiveTypeArrayTestBean | ||
|
||
testdef createSimpleBeanUntypedEmpty uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createSimpleBeanUntypedEmpty | ||
calldef createSimpleBeanUntypedEmptyCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createSimpleBeanUntypedEmpty | ||
|
||
packagedef integrity.fixtures.basic.beans with | ||
|
||
testdef checkSimpleBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#checkSimpleBean | ||
|
||
testdef checkCollectionBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#checkCollectionBean | ||
|
||
testdef alterPrimitiveBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#alterPrimitiveBean | ||
|
||
testdef checkSimpleBeanUntyped uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#checkSimpleBeanUntyped | ||
|
||
testdef createSimpleBeanUntyped uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createSimpleBeanUntyped | ||
calldef createSimpleBeanUntypedCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createSimpleBeanUntyped | ||
|
||
testdef createMapForSimpleBeanUntyped uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createMapForSimpleBeanUntyped | ||
calldef createMapForSimpleBeanUntypedCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createMapForSimpleBeanUntyped | ||
|
||
testdef echoEnumTestBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoEnumTestBean | ||
calldef echoEnumTestBeanCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoEnumTestBean | ||
|
||
testdef echoEnumValueFromTestBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoEnumValueFromTestBean | ||
calldef echoEnumValueFromTestBeanCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoEnumValueFromTestBean | ||
|
||
testdef echoMap uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoMap | ||
calldef echoMapCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#echoMap | ||
|
||
calldef createPrimitiveTypeArrayTestBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createPrimitiveTypeArrayTestBean | ||
|
||
testdef createSimpleBeanUntypedEmpty uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createSimpleBeanUntypedEmpty | ||
calldef createSimpleBeanUntypedEmptyCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createSimpleBeanUntypedEmpty | ||
|
||
testdef createTransientTestBean uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createTransientTestBean | ||
calldef createTransientTestBeanCall uses de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createTransientTestBean | ||
|
||
packageend |
18 changes: 18 additions & 0 deletions
18
de.gebit.integrity.tests/integrity/suites/basic/beans/beanWithTransientProperty.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,18 @@ | ||
packagedef integrity.basic.beans with | ||
|
||
suitedef beanWithTransientProperty with | ||
|
||
// This should succeed, since we don't check the transient property | ||
test integrity.fixtures.basic.beans.createTransientTestBean = { | ||
normalString: "foo" | ||
} | ||
|
||
// This should fail as we cannot see the transient property here since it's not converted to the map internally | ||
test integrity.fixtures.basic.beans.createTransientTestBean = { | ||
normalString: "foo" | ||
transientString: "bar" | ||
} | ||
|
||
suiteend | ||
|
||
packageend |
43 changes: 43 additions & 0 deletions
43
...ity.tests/junit/de/gebit/integrity/tests/junit/basic/beans/BeanWithTransientProperty.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,43 @@ | ||
/******************************************************************************* | ||
* 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.beans; | ||
|
||
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 bean calls. | ||
* | ||
* | ||
* @author Rene Schneider - initial API and implementation | ||
* | ||
*/ | ||
public class BeanWithTransientProperty extends IntegrityJUnitTest { | ||
|
||
/** | ||
* Performs a suite which does fixture calls with bean values and checks the resulting XML document. | ||
* | ||
* @throws ModelLoadException | ||
* @throws IOException | ||
* @throws JDOMException | ||
*/ | ||
@Test | ||
public void test() throws ModelLoadException, IOException, JDOMException { | ||
Document tempResult = executeIntegritySuite( | ||
new String[] { "integrity/suites/basic/beans/beanWithTransientProperty.integrity" }, | ||
"integrity.basic.beans.beanWithTransientProperty", null); | ||
assertDocumentMatchesReference(tempResult); | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
de.gebit.integrity.tests/results/integrity.basic.beans.beanWithTransientProperty.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,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<integrity name="Integrity JUnit Testing" timestamp="01.06.16 13:21" isotimestamp="2016-06-01T13:21:49" duration="27.521"> | ||
<variables /> | ||
<suite id="0" name="integrity.basic.beans.beanWithTransientProperty" timestamp="01.06.16 13:21:49.0238"> | ||
<setup /> | ||
<variables /> | ||
<statements> | ||
<test id="1" line="6" name="createTransientTestBean" description="creates a transient test bean and returns it" fixture="de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createTransientTestBean" timestamp="01.06.16 13:21:49.0238"> | ||
<results duration="0.830" successCount="1" failureCount="0" exceptionCount="0"> | ||
<result duration="0.830" description="creates a transient test bean and returns it" type="success"> | ||
<parameters /> | ||
<comparisons> | ||
<comparison expectedValue="[FORMATTED]{[NL][T]normalString = foo[NL]}" value="[FORMATTED]{[NL][T]normalString = foo[NL]}" type="success" /> | ||
</comparisons> | ||
</result> | ||
</results> | ||
</test> | ||
<test id="2" line="11" name="createTransientTestBean" description="creates a transient test bean and returns it" fixture="de.gebit.integrity.tests.fixtures.basic.beans.BeanFixture#createTransientTestBean" timestamp="01.06.16 13:21:49.0253"> | ||
<results duration="0.155" successCount="0" failureCount="1" exceptionCount="0"> | ||
<result duration="0.155" description="creates a transient test bean and returns it" type="failure"> | ||
<parameters /> | ||
<comparisons> | ||
<comparison expectedValue="[FORMATTED]{[NL][T]normalString = foo[NL|, ][T][UL][B]transientString = bar[/B][/UL][NL]}" value="[FORMATTED]{[NL][T]normalString = foo[NL]}" type="failure" /> | ||
</comparisons> | ||
</result> | ||
</results> | ||
</test> | ||
</statements> | ||
<returns /> | ||
<teardown /> | ||
<result duration="23.145" successCount="1" failureCount="1" exceptionCount="0" testExceptionCount="0" callExceptionCount="0" /> | ||
</suite> | ||
</integrity> | ||
|
Oops, something went wrong.