Skip to content

Failed

org.example.EmployeesTest.testShowEmployees

Failing for the past 1 build (Since Failed#25 )
Took 2.3 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '2' but was '3' - comparing <datasource...> at /datasource[1] to <datasource...> at /datasource[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="employees">
    <config>
        <title id="employees">employees</title>
        <meta-data bindClass="org.example.Employee">
            <field name="name" type="text" binding="name">
                <label id="name">name</label>
            </field>
            <field name="lastname" type="text" binding="lastname">
                <label id="lastname">lastname</label>
            </field>
        </meta-data>
    </config>
    <messages ref="employees"/>
    <data paginate="false">
        <resultset chunk="0" chunkname="employees" chunksize="1" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="1">
            <result>
                <field name="name" type="text">
                    <value>John</value>
                </field>
                <field name="lastname" type="text">
                    <value>Doe</value>
                </field>
            </result>
        </resultset>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '2' but was '3' - comparing <datasource...> at /datasource[1] to <datasource...> at /datasource[1]

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '2' but was '3' - comparing <datasource...> at /datasource[1] to <datasource...> at /datasource[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="employees">
    <config>
        <title id="employees">employees</title>
        <meta-data bindClass="org.example.Employee">
            <field name="name" type="text" binding="name">
                <label id="name">name</label>
            </field>
            <field name="lastname" type="text" binding="lastname">
                <label id="lastname">lastname</label>
            </field>
        </meta-data>
    </config>
    <messages ref="employees"/>
    <data paginate="false">
        <resultset chunk="0" chunkname="employees" chunksize="1" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="1">
            <result>
                <field name="name" type="text">
                    <value>John</value>
                </field>
                <field name="lastname" type="text">
                    <value>Doe</value>
                </field>
            </result>
        </resultset>
    </data>
</datasource>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '2' but was '3' - comparing <datasource...> at /datasource[1] to <datasource...> at /datasource[1]

	at org.example.EmployeesTest.testShowEmployees(EmployeesTest.java:52)

Standard Output

2022-05-17 15:02:33,979 INFO  [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2022-05-17 15:02:34,006 INFO  [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@49070868, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6385cb26, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@38364841, org.springframework.test.context.support.DirtiesContextTestExecutionListener@28c4711c, org.springframework.test.context.transaction.TransactionalTestExecutionListener@59717824, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@146044d7]
2022-05-17 15:02:35,594 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:application-home/beans.xml]
2022-05-17 15:02:35,898 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
2022-05-17 15:02:35,988 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-jpa.xml]
2022-05-17 15:02:36,119 INFO  [main] org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@36f0f1be: startup date [Tue May 17 15:02:36 CEST 2022]; root of context hierarchy
2022-05-17 15:02:37,116 INFO  [main] org.appng.api.config.RestConfig: [localhost:myapp] Found 1 MappingJackson2HttpMessageConverters: org.springframework.http.converter.json.MappingJackson2HttpMessageConverter#0
2022-05-17 15:02:37,117 INFO  [main] org.appng.api.config.RestConfig: [localhost:myapp] Found 0 ObjectMappers: 
2022-05-17 15:02:37,118 INFO  [main] org.appng.api.config.RestConfig: [localhost:myapp] Found 0 Modules: 
2022-05-17 15:02:37,131 INFO  [main] org.appng.api.config.RestConfig: [localhost:myapp] Found 0 @Primary Beans: 
2022-05-17 15:02:37,131 INFO  [main] org.appng.api.config.RestConfig: [localhost:myapp] No ObjectMapper found in context, creating default.
2022-05-17 15:02:37,137 INFO  [main] org.appng.api.config.RestConfig: Found org.springframework.http.converter.json.MappingJackson2HttpMessageConverter 'org.springframework.http.converter.json.MappingJackson2HttpMessageConverter#0'
2022-05-17 15:02:37,164 INFO  [main] org.appng.api.config.RestConfig: [localhost:myapp] Registering ObjectMapper 'defaultObjectMapper'
2022-05-17 15:02:37,167 INFO  [main] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2022-05-17 15:02:38,137 INFO  [HSQLDB Server @16afbd92] hsqldb.db.HSQLDB80D21D020F.ENGINE: Checkpoint start
2022-05-17 15:02:38,138 INFO  [HSQLDB Server @16afbd92] hsqldb.db.HSQLDB80D21D020F.ENGINE: checkpointClose start
2022-05-17 15:02:38,197 INFO  [HSQLDB Server @16afbd92] hsqldb.db.HSQLDB80D21D020F.ENGINE: checkpointClose synched
2022-05-17 15:02:38,210 INFO  [HSQLDB Server @16afbd92] hsqldb.db.HSQLDB80D21D020F.ENGINE: checkpointClose script done
2022-05-17 15:02:38,226 INFO  [HSQLDB Server @16afbd92] hsqldb.db.HSQLDB80D21D020F.ENGINE: checkpointClose end
2022-05-17 15:02:38,226 INFO  [HSQLDB Server @16afbd92] hsqldb.db.HSQLDB80D21D020F.ENGINE: Checkpoint end - txts: 1
2022-05-17 15:02:38,521 INFO  [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Building JPA container EntityManagerFactory for persistence unit 'default'
2022-05-17 15:02:38,558 INFO  [main] org.hibernate.jpa.internal.util.LogHelper: HHH000204: Processing PersistenceUnitInfo [name: default]
2022-05-17 15:02:38,646 INFO  [main] org.hibernate.Version         : HHH000412: Hibernate ORM core version 5.4.32.Final
2022-05-17 15:02:38,935 INFO  [main] org.hibernate.annotations.common.Version: HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2022-05-17 15:02:39,705 INFO  [main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.HSQLDialect
2022-05-17 15:02:39,840 INFO  [main] org.hibernate.envers.boot.internal.EnversServiceImpl: Envers integration enabled? : true
2022-05-17 15:02:40,277 INFO  [main] org.hibernate.validator.internal.util.Version: HV000001: Hibernate Validator 6.2.0.Final
2022-05-17 15:02:40,774 INFO  [main] org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2022-05-17 15:02:40,794 INFO  [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Initialized JPA EntityManagerFactory for persistence unit 'default'
2022-05-17 15:02:41,661 WARN  [main] org.appng.api.support.RequestFactoryBean: invalid value for platform property 'uploadDir', folder 'null/target/uploads' does not exist!

Standard Error

May 17, 2022 3:02:37 PM ch.sla.jdbcperflogger.Logger info
INFO: Using config file jdbcperflogger-fallback.xml