Skip to content

Regression

org.appng.core.controller.rest.openapi.OpenApiActionTest.testAction

Failing for the past 1 build (Since Failed#101 )
Took 70 ms.

Error Message

expected:<...         "value" : "[entity2",
          "fieldType" : "text",
          "readonly" : false,
          "visible" : true,
          "rules" : [ {
            "type" : "org.appng.api.NotBlank",
            "message" : "Field must not be empty",
            "messageKey" : "{validation.notNull}"
          } ]
        }, {
          "name" : "children[0].integerValue",
          "value" : 7,
          "fieldType" : "int",
          "readonly" : false,
          "visible" : true,
          "format" : "#",
          "formattedValue" : "7"
        } ]
      }, {
        "name" : "children[1]",
        "fieldType" : "object",
        "readonly" : false,
        "visible" : true,
        "fields" : [ {
          "name" : "children[1].name",
          "value" : "entity3",
          "fieldType" : "text",
          "readonly" : false,
          "visible" : true,
          "rules" : [ {
            "type" : "org.appng.api.NotBlank",
            "message" : "Field must not be empty",
            "messageKey" : "{validation.notNull}"
          } ]
        }, {
          "name" : "children[1].integerValue",
          "value" : 9,
          "fieldType" : "int",
          "readonly" : false,
          "visible" : true,
          "format" : "#",
          "formattedValue" : "9]"
        } ]
      ...> but was:<...         "value" : "[Lea",
          "fieldType" : "text",
          "readonly" : false,
          "visible" : true,
          "rules" : [ {
            "type" : "org.appng.api.NotBlank",
            "message" : "Field must not be empty",
            "messageKey" : "{validation.notNull}"
          } ]
        }, {
          "name" : "children[0].integerValue",
          "fieldType" : "int",
          "readonly" : false,
          "visible" : true,
          "format" : "#"
        } ]
      }, {
        "name" : "children[1]",
        "fieldType" : "object",
        "readonly" : false,
        "visible" : true,
        "fields" : [ {
          "name" : "children[1].name",
          "value" : "Luke",
          "fieldType" : "text",
          "readonly" : false,
          "visible" : true,
          "rules" : [ {
            "type" : "org.appng.api.NotBlank",
            "message" : "Field must not be empty",
            "messageKey" : "{validation.notNull}"
          } ]
        }, {
          "name" : "children[1].integerValue",
          "fieldType" : "int",
          "readonly" : false,
          "visible" : true,
          "format" : "#]"
        } ]
      ...>

Stacktrace

org.junit.ComparisonFailure: 
expected:<...         "value" : "[entity2",
          "fieldType" : "text",
          "readonly" : false,
          "visible" : true,
          "rules" : [ {
            "type" : "org.appng.api.NotBlank",
            "message" : "Field must not be empty",
            "messageKey" : "{validation.notNull}"
          } ]
        }, {
          "name" : "children[0].integerValue",
          "value" : 7,
          "fieldType" : "int",
          "readonly" : false,
          "visible" : true,
          "format" : "#",
          "formattedValue" : "7"
        } ]
      }, {
        "name" : "children[1]",
        "fieldType" : "object",
        "readonly" : false,
        "visible" : true,
        "fields" : [ {
          "name" : "children[1].name",
          "value" : "entity3",
          "fieldType" : "text",
          "readonly" : false,
          "visible" : true,
          "rules" : [ {
            "type" : "org.appng.api.NotBlank",
            "message" : "Field must not be empty",
            "messageKey" : "{validation.notNull}"
          } ]
        }, {
          "name" : "children[1].integerValue",
          "value" : 9,
          "fieldType" : "int",
          "readonly" : false,
          "visible" : true,
          "format" : "#",
          "formattedValue" : "9]"
        } ]
      ...> but was:<...         "value" : "[Lea",
          "fieldType" : "text",
          "readonly" : false,
          "visible" : true,
          "rules" : [ {
            "type" : "org.appng.api.NotBlank",
            "message" : "Field must not be empty",
            "messageKey" : "{validation.notNull}"
          } ]
        }, {
          "name" : "children[0].integerValue",
          "fieldType" : "int",
          "readonly" : false,
          "visible" : true,
          "format" : "#"
        } ]
      }, {
        "name" : "children[1]",
        "fieldType" : "object",
        "readonly" : false,
        "visible" : true,
        "fields" : [ {
          "name" : "children[1].name",
          "value" : "Luke",
          "fieldType" : "text",
          "readonly" : false,
          "visible" : true,
          "rules" : [ {
            "type" : "org.appng.api.NotBlank",
            "message" : "Field must not be empty",
            "messageKey" : "{validation.notNull}"
          } ]
        }, {
          "name" : "children[1].integerValue",
          "fieldType" : "int",
          "readonly" : false,
          "visible" : true,
          "format" : "#]"
        } ]
      ...>
	at org.appng.core.controller.rest.openapi.OpenApiActionTest.testAction(OpenApiActionTest.java:38)

Standard Output

2022-09-14 16:37:23,306 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-09-14 16:37:23,307 INFO  [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@5722c149, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@58cb1f78, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@44e49229, org.springframework.test.context.support.DirtiesContextTestExecutionListener@3ad9012f, org.springframework.test.context.transaction.TransactionalTestExecutionListener@7bb0b7b4, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@7b004765]
2022-09-14 16:37:23,315 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [applications/application1/beans.xml]
2022-09-14 16:37:23,338 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
2022-09-14 16:37:23,348 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-jpa.xml]
2022-09-14 16:37:23,357 INFO  [main] org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@1b15e7f6: startup date [Wed Sep 14 16:37:23 CEST 2022]; root of context hierarchy
2022-09-14 16:37:23,366 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Found 0 MappingJackson2HttpMessageConverters: 
2022-09-14 16:37:23,366 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Found 0 ObjectMappers: 
2022-09-14 16:37:23,366 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Found 0 Modules: 
2022-09-14 16:37:23,366 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Found 0 @Primary Beans: 
2022-09-14 16:37:23,367 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] No ObjectMapper found in context, creating default.
2022-09-14 16:37:23,367 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] No MappingJackson2HttpMessageConverter found in context, creating default.
2022-09-14 16:37:23,367 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Registering ObjectMapper 'defaultObjectMapper'
2022-09-14 16:37:23,367 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Registering MappingJackson2HttpMessageConverter 'defaultJacksonConverter'
2022-09-14 16:37:23,367 INFO  [main] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2022-09-14 16:37:23,479 INFO  [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Building JPA container EntityManagerFactory for persistence unit 'default'
2022-09-14 16:37:23,479 INFO  [main] org.hibernate.jpa.internal.util.LogHelper: HHH000204: Processing PersistenceUnitInfo [name: default]
2022-09-14 16:37:23,622 INFO  [main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.HSQLDialect
2022-09-14 16:37:23,630 INFO  [main] org.hibernate.envers.boot.internal.EnversServiceImpl: Envers integration enabled? : true
2022-09-14 16:37:23,662 INFO  [main] org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2022-09-14 16:37:23,662 INFO  [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Initialized JPA EntityManagerFactory for persistence unit 'default'
2022-09-14 16:37:23,723 WARN  [main] org.appng.api.support.RequestFactoryBean: invalid value for platform property 'uploadDir', folder 'null/target/uploads' does not exist!
2022-09-14 16:37:23,744 WARN  [main] org.springframework.context.support.ResourceBundleMessageSource: ResourceBundle [messages-demo] not found for MessageSource: Can't find bundle for base name messages-demo, locale en
2022-09-14 16:37:23,744 WARN  [main] org.springframework.context.support.ResourceBundleMessageSource: ResourceBundle [testmessages] not found for MessageSource: Can't find bundle for base name testmessages, locale en
2022-09-14 16:37:23,753 WARN  [main] org.springframework.context.support.ResourceBundleMessageSource: ResourceBundle [messages-demo] not found for MessageSource: Can't find bundle for base name messages-demo, locale en
2022-09-14 16:37:23,753 WARN  [main] org.springframework.context.support.ResourceBundleMessageSource: ResourceBundle [testmessages] not found for MessageSource: Can't find bundle for base name testmessages, locale en