-
Type: Bug
-
Status: Done
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: 1.14.1
-
Fix Version/s: 1.14.2
-
Component/s: appng-archetype-application
-
Labels:None
% mvn archetype:generate -DgroupId=mygroupid -DartifactId=myartifactid -DarchetypeGroupId=org.appng -DarchetypeArtifactId=appng-archetype-application -DarchetypeVersion=1.14.1 -DinteractiveMode=false % cd myartifactid % mvn package 2017-07-07 22:10:51,860 DEBUG [main] org.appng.el.ExpressionEvaluator: /index/update/${current.id} = /index/update/4 [(current = mygroupid.Person@7c2b58c0), (i18n = org.appng.api.support.I18n@23706db8)] 2017-07-07 22:10:51,860 DEBUG [main] org.appng.api.support.field.FieldConversionFactory: datafield 'actions' is null 2017-07-07 22:10:51,935 TRACE [main] org.springframework.test.context.TestContextManager: afterTestMethod(): instance [mygroupid.PersonDataSourceTest@4ad3d266], method [public void mygroupid.PersonDataSourceTest.testPersons() throws org.appng.api.ProcessingException,java.io.IOException], exception [junit.framework.AssertionFailedError: XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected text value 'actions' but was 'Actions' - comparing <label ...>actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] to <label ...>Actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <datasource xmlns="http://www.appng.org/schema/platform" id="persons"> <config> <title id="Persons">Persons</title> <params> <param name="selected"/> </params> <meta-data bindClass="mygroupid.Person" result-selector="${current.id eq selected}"> <field name="lastname" type="text" binding="lastname"> <label id="lastname">Lastname</label> </field> <field name="name" type="text" binding="name"> <label id="name">Name</label> </field> <field name="actions" type="linkpanel" binding="actions"> <label id="actions">Actions</label> </field> </meta-data> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/${current.id}"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> <linkpanel id="create" location="both"> <link id="edit" mode="intern" target="/index/create"> <label id="person.create">New Person</label> <icon>new</icon> </link> </linkpanel> </config> <data> <resultset chunk="0" chunkname="persons" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="4"> <result> <field name="lastname" type="text"> <value>Skywalker</value> </field> <field name="name" type="text"> <value>Luke</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/1"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>Solo</value> </field> <field name="name" type="text"> <value>Han</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/2"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>D2</value> </field> <field name="name" type="text"> <value>R2</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/3"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>P0</value> </field> <field name="name" type="text"> <value>C3</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/4"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> </resultset> </data> </datasource> , org.custommonkey.xmlunit.Diff [different] Expected text value 'actions' but was 'Actions' - comparing <label ...>actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] to <label ...>Actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] ] 2017-07-07 22:10:51,936 DEBUG [main] org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener: After test method: context [DefaultTestContext@38018b62 testClass = PersonDataSourceTest, testInstance = mygroupid.PersonDataSourceTest@4ad3d266, testMethod = testPersons@PersonDataSourceTest, testException = junit.framework.AssertionFailedError: XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected text value 'actions' but was 'Actions' - comparing <label ...>actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] to <label ...>Actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <datasource xmlns="http://www.appng.org/schema/platform" id="persons"> <config> <title id="Persons">Persons</title> <params> <param name="selected"/> </params> <meta-data bindClass="mygroupid.Person" result-selector="${current.id eq selected}"> <field name="lastname" type="text" binding="lastname"> <label id="lastname">Lastname</label> </field> <field name="name" type="text" binding="name"> <label id="name">Name</label> </field> <field name="actions" type="linkpanel" binding="actions"> <label id="actions">Actions</label> </field> </meta-data> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/${current.id}"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> <linkpanel id="create" location="both"> <link id="edit" mode="intern" target="/index/create"> <label id="person.create">New Person</label> <icon>new</icon> </link> </linkpanel> </config> <data> <resultset chunk="0" chunkname="persons" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="4"> <result> <field name="lastname" type="text"> <value>Skywalker</value> </field> <field name="name" type="text"> <value>Luke</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/1"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>Solo</value> </field> <field name="name" type="text"> <value>Han</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/2"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>D2</value> </field> <field name="name" type="text"> <value>R2</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/3"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>P0</value> </field> <field name="name" type="text"> <value>C3</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/4"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> </resultset> </data> </datasource> , org.custommonkey.xmlunit.Diff [different] Expected text value 'actions' but was 'Actions' - comparing <label ...>actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] to <label ...>Actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] , mergedContextConfiguration = [MergedContextConfiguration@ce9b9a9 testClass = PersonDataSourceTest, locations = '{file:application-home/beans.xml, classpath:org/appng/testsupport/application-testcontext.xml}', classes = '{}', contextInitializerClasses = '[class mygroupid.PersonDataSourceTest]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]], class annotated with @DirtiesContext [true] with mode [AFTER_CLASS], method annotated with @DirtiesContext [false] with mode [null]. 2017-07-07 22:10:51,949 TRACE [main] org.springframework.test.context.TestContextManager: afterTestClass(): class [mygroupid.PersonDataSourceTest] 2017-07-07 22:10:51,950 DEBUG [main] org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener: After test class: context [DefaultTestContext@38018b62 testClass = PersonDataSourceTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@ce9b9a9 testClass = PersonDataSourceTest, locations = '{file:application-home/beans.xml, classpath:org/appng/testsupport/application-testcontext.xml}', classes = '{}', contextInitializerClasses = '[class mygroupid.PersonDataSourceTest]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]], class annotated with @DirtiesContext [true] with mode [AFTER_CLASS]. 2017-07-07 22:10:51,950 INFO [main] org.springframework.context.support.GenericApplicationContext: Closing org.springframework.context.support.GenericApplicationContext@3533df16: startup date [Fri Jul 07 22:10:51 CEST 2017]; root of context hierarchy 2017-07-07 22:10:51,950 TRACE [main] org.springframework.context.support.GenericApplicationContext: Publishing event in org.springframework.context.support.GenericApplicationContext@3533df16: org.springframework.context.event.ContextClosedEvent[source=org.springframework.context.support.GenericApplicationContext@3533df16: startup date [Fri Jul 07 22:10:51 CEST 2017]; root of context hierarchy] 2017-07-07 22:10:51,950 DEBUG [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Returning cached instance of singleton bean 'lifecycleProcessor' 2017-07-07 22:10:51,951 DEBUG [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@507b79f7: defining beans [personAction,personDataSource,personService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,org.springframework.beans.factory.config.CustomScopeConfigurer#0,org.springframework.mock.web.MockHttpServletRequest#0,servletContext,resourceLoader,conversionService,applicationMarshallService,marshallService,environment,request,selectionFactory,messageSource]; root of factory hierarchy [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.638 s <<< FAILURE! - in mygroupid.PersonDataSourceTest [ERROR] testPersons(mygroupid.PersonDataSourceTest) Time elapsed: 0.014 s <<< FAILURE! junit.framework.AssertionFailedError: XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected text value 'actions' but was 'Actions' - comparing <label ...>actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] to <label ...>Actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <datasource xmlns="http://www.appng.org/schema/platform" id="persons"> <config> <title id="Persons">Persons</title> <params> <param name="selected"/> </params> <meta-data bindClass="mygroupid.Person" result-selector="${current.id eq selected}"> <field name="lastname" type="text" binding="lastname"> <label id="lastname">Lastname</label> </field> <field name="name" type="text" binding="name"> <label id="name">Name</label> </field> <field name="actions" type="linkpanel" binding="actions"> <label id="actions">Actions</label> </field> </meta-data> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/${current.id}"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> <linkpanel id="create" location="both"> <link id="edit" mode="intern" target="/index/create"> <label id="person.create">New Person</label> <icon>new</icon> </link> </linkpanel> </config> <data> <resultset chunk="0" chunkname="persons" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="4"> <result> <field name="lastname" type="text"> <value>Skywalker</value> </field> <field name="name" type="text"> <value>Luke</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/1"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>Solo</value> </field> <field name="name" type="text"> <value>Han</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/2"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>D2</value> </field> <field name="name" type="text"> <value>R2</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/3"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>P0</value> </field> <field name="name" type="text"> <value>C3</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/4"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> </resultset> </data> </datasource> , org.custommonkey.xmlunit.Diff [different] Expected text value 'actions' but was 'Actions' - comparing <label ...>actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] to <label ...>Actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] at mygroupid.PersonDataSourceTest.testPersons(PersonDataSourceTest.java:29) [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] PersonDataSourceTest.testPersons:29 XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected text value 'actions' but was 'Actions' - comparing <label ...>actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] to <label ...>Actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <datasource xmlns="http://www.appng.org/schema/platform" id="persons"> <config> <title id="Persons">Persons</title> <params> <param name="selected"/> </params> <meta-data bindClass="mygroupid.Person" result-selector="${current.id eq selected}"> <field name="lastname" type="text" binding="lastname"> <label id="lastname">Lastname</label> </field> <field name="name" type="text" binding="name"> <label id="name">Name</label> </field> <field name="actions" type="linkpanel" binding="actions"> <label id="actions">Actions</label> </field> </meta-data> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/${current.id}"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> <linkpanel id="create" location="both"> <link id="edit" mode="intern" target="/index/create"> <label id="person.create">New Person</label> <icon>new</icon> </link> </linkpanel> </config> <data> <resultset chunk="0" chunkname="persons" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="4"> <result> <field name="lastname" type="text"> <value>Skywalker</value> </field> <field name="name" type="text"> <value>Luke</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/1"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>Solo</value> </field> <field name="name" type="text"> <value>Han</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/2"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>D2</value> </field> <field name="name" type="text"> <value>R2</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/3"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> <result> <field name="lastname" type="text"> <value>P0</value> </field> <field name="name" type="text"> <value>C3</value> </field> <linkpanel id="actions" location="inline"> <link id="edit" mode="intern" target="/index/update/4"> <label id="edit">Edit</label> <icon>edit</icon> </link> </linkpanel> </result> </resultset> </data> </datasource> , org.custommonkey.xmlunit.Diff [different] Expected text value 'actions' but was 'Actions' - comparing <label ...>actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] to <label ...>Actions</label> at /datasource[1]/config[1]/meta-data[1]/field[3]/label[1]/text()[1] [INFO] [ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23.381 s [INFO] Finished at: 2017-07-07T22:10:52+02:00 [INFO] Final Memory: 26M/255M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project myartifactid: There are test failures.
- duplicates
-
APPNG-2006 Test failure in application generated with appng-archetype-application
- Done