Skip to content

Failed

org.appng.core.controller.rest.openapi.OpenApiDataSourceTest.testDataSource

Failing for the past 2 builds (Since Failed#61 )
Took 80 ms.

Error Message

expected:<.../datasource/entities[?param1=&param2=&param3=&param4=4",
    "id" : "entities",
    "title" : "Entities",
    "parameters" : {
      "param3" : "",
      "param4" : "4",
      "param1" : "",
      "param2" : ""
    },
    "user" : {
      "authenticated" : false,
      "locale" : "en",
      "timezone" : "Europe/Berlin",
      "decimalSeparator" : ".",
      "groupingSeparator" : ","
    },
    "fields" : [ {
      "name" : "id",
      "label" : "ID",
      "fieldType" : "int",
      "format" : "#"
    }, {
      "name" : "name",
      "label" : "Name",
      "fieldType" : "text",
      "sort" : {
        "pathAsc" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=name:asc",
        "pathDesc" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=name:desc"
      }
    }, {
      "name" : "integerValue",
      "label" : "integer value",
      "fieldType" : "int",
      "format" : "#"
    }, {
      "name" : "doubleValue",
      "label" : "double value",
      "fieldType" : "decimal",
      "sort" : {
        "pathAsc" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=doubleValue:asc",
        "pathDesc" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=doubleValue:desc"
      },
      "format" : "#.##"
    }, {
      "name" : "booleanValue",
      "label" : "boolean value",
      "fieldType" : "checkbox"
    } ],
    "filterResetPath" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&",
    "page" : {
      "_first" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:25;page:0",
      "_previous" : null,
      "_next" : null,
      "_last" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:25;page:0",
      "number" : 0,
      "size" : 25,
      "totalPages" : 1,
      "totalItems" : 2,
      "isFirst" : true,
      "isLast" : true,
      "pageSizes" : [ {
        "size" : 5,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:5"
      }, {
        "size" : 10,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:10"
      }, {
        "size" : 25,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:25"
      }, {
        "size" : 50,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&]param4=4&sortEntitie...> but was:<.../datasource/entities[/param1=;param2=;param3=;param4=4",
    "id" : "entities",
    "title" : "Entities",
    "parameters" : {
      "param3" : "",
      "param4" : "4",
      "param1" : "",
      "param2" : ""
    },
    "user" : {
      "authenticated" : false,
      "locale" : "en",
      "timezone" : "Europe/Berlin",
      "decimalSeparator" : ".",
      "groupingSeparator" : ","
    },
    "fields" : [ {
      "name" : "id",
      "label" : "ID",
      "fieldType" : "int",
      "format" : "#"
    }, {
      "name" : "name",
      "label" : "Name",
      "fieldType" : "text",
      "sort" : {
        "pathAsc" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4;sortEntities=name:asc",
        "pathDesc" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4;sortEntities=name:desc"
      }
    }, {
      "name" : "integerValue",
      "label" : "integer value",
      "fieldType" : "int",
      "format" : "#"
    }, {
      "name" : "doubleValue",
      "label" : "double value",
      "fieldType" : "decimal",
      "sort" : {
        "pathAsc" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4;sortEntities=doubleValue:asc",
        "pathDesc" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4;sortEntities=doubleValue:desc"
      },
      "format" : "#.##"
    }, {
      "name" : "booleanValue",
      "label" : "boolean value",
      "fieldType" : "checkbox"
    } ],
    "filterResetPath" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4",
    "page" : {
      "_first" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:25;page:0",
      "_previous" : null,
      "_next" : null,
      "_last" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:25;page:0",
      "number" : 0,
      "size" : 25,
      "totalPages" : 1,
      "totalItems" : 2,
      "isFirst" : true,
      "isLast" : true,
      "pageSizes" : [ {
        "size" : 5,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:5"
      }, {
        "size" : 10,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:10"
      }, {
        "size" : 25,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:25"
      }, {
        "size" : 50,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;]param4=4&sortEntitie...>

Stacktrace

org.junit.ComparisonFailure: 
expected:<.../datasource/entities[?param1=&param2=&param3=&param4=4",
    "id" : "entities",
    "title" : "Entities",
    "parameters" : {
      "param3" : "",
      "param4" : "4",
      "param1" : "",
      "param2" : ""
    },
    "user" : {
      "authenticated" : false,
      "locale" : "en",
      "timezone" : "Europe/Berlin",
      "decimalSeparator" : ".",
      "groupingSeparator" : ","
    },
    "fields" : [ {
      "name" : "id",
      "label" : "ID",
      "fieldType" : "int",
      "format" : "#"
    }, {
      "name" : "name",
      "label" : "Name",
      "fieldType" : "text",
      "sort" : {
        "pathAsc" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=name:asc",
        "pathDesc" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=name:desc"
      }
    }, {
      "name" : "integerValue",
      "label" : "integer value",
      "fieldType" : "int",
      "format" : "#"
    }, {
      "name" : "doubleValue",
      "label" : "double value",
      "fieldType" : "decimal",
      "sort" : {
        "pathAsc" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=doubleValue:asc",
        "pathDesc" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=doubleValue:desc"
      },
      "format" : "#.##"
    }, {
      "name" : "booleanValue",
      "label" : "boolean value",
      "fieldType" : "checkbox"
    } ],
    "filterResetPath" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&",
    "page" : {
      "_first" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:25;page:0",
      "_previous" : null,
      "_next" : null,
      "_last" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:25;page:0",
      "number" : 0,
      "size" : 25,
      "totalPages" : 1,
      "totalItems" : 2,
      "isFirst" : true,
      "isLast" : true,
      "pageSizes" : [ {
        "size" : 5,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:5"
      }, {
        "size" : 10,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:10"
      }, {
        "size" : 25,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&param4=4&sortEntities=pageSize:25"
      }, {
        "size" : 50,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities?param1=&param2=&param3=&]param4=4&sortEntitie...> but was:<.../datasource/entities[/param1=;param2=;param3=;param4=4",
    "id" : "entities",
    "title" : "Entities",
    "parameters" : {
      "param3" : "",
      "param4" : "4",
      "param1" : "",
      "param2" : ""
    },
    "user" : {
      "authenticated" : false,
      "locale" : "en",
      "timezone" : "Europe/Berlin",
      "decimalSeparator" : ".",
      "groupingSeparator" : ","
    },
    "fields" : [ {
      "name" : "id",
      "label" : "ID",
      "fieldType" : "int",
      "format" : "#"
    }, {
      "name" : "name",
      "label" : "Name",
      "fieldType" : "text",
      "sort" : {
        "pathAsc" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4;sortEntities=name:asc",
        "pathDesc" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4;sortEntities=name:desc"
      }
    }, {
      "name" : "integerValue",
      "label" : "integer value",
      "fieldType" : "int",
      "format" : "#"
    }, {
      "name" : "doubleValue",
      "label" : "double value",
      "fieldType" : "decimal",
      "sort" : {
        "pathAsc" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4;sortEntities=doubleValue:asc",
        "pathDesc" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4;sortEntities=doubleValue:desc"
      },
      "format" : "#.##"
    }, {
      "name" : "booleanValue",
      "label" : "boolean value",
      "fieldType" : "checkbox"
    } ],
    "filterResetPath" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4",
    "page" : {
      "_first" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:25;page:0",
      "_previous" : null,
      "_next" : null,
      "_last" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:25;page:0",
      "number" : 0,
      "size" : 25,
      "totalPages" : 1,
      "totalItems" : 2,
      "isFirst" : true,
      "isLast" : true,
      "pageSizes" : [ {
        "size" : 5,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:5"
      }, {
        "size" : 10,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:10"
      }, {
        "size" : 25,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;param4=4&sortEntities=pageSize:25"
      }, {
        "size" : 50,
        "path" : "/service/localhost/demo-application/rest/openapi/datasource/entities/param1=;param2=;param3=;]param4=4&sortEntitie...>
	at org.appng.core.controller.rest.openapi.OpenApiDataSourceTest.testDataSource(OpenApiDataSourceTest.java:35)

Standard Output

2022-07-13 14:46:40,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-07-13 14:46:40,307 INFO  [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@43df5cba, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4ba7a9e4, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@25ef4ad5, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6e75a0a6, org.springframework.test.context.transaction.TransactionalTestExecutionListener@57f60b5e, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@21e860cd]
2022-07-13 14:46:40,316 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [applications/application1/beans.xml]
2022-07-13 14:46:40,339 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
2022-07-13 14:46:40,350 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-jpa.xml]
2022-07-13 14:46:40,359 INFO  [main] org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@7e8e2fc7: startup date [Wed Jul 13 14:46:40 CEST 2022]; root of context hierarchy
2022-07-13 14:46:40,369 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Found 0 MappingJackson2HttpMessageConverters: 
2022-07-13 14:46:40,369 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Found 0 ObjectMappers: 
2022-07-13 14:46:40,369 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Found 0 Modules: 
2022-07-13 14:46:40,369 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Found 0 @Primary Beans: 
2022-07-13 14:46:40,369 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] No ObjectMapper found in context, creating default.
2022-07-13 14:46:40,369 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] No MappingJackson2HttpMessageConverter found in context, creating default.
2022-07-13 14:46:40,370 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Registering ObjectMapper 'defaultObjectMapper'
2022-07-13 14:46:40,370 INFO  [main] org.appng.api.config.RestConfig: [localhost:demo-application] Registering MappingJackson2HttpMessageConverter 'defaultJacksonConverter'
2022-07-13 14:46:40,370 INFO  [main] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2022-07-13 14:46:40,483 INFO  [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Building JPA container EntityManagerFactory for persistence unit 'default'
2022-07-13 14:46:40,483 INFO  [main] org.hibernate.jpa.internal.util.LogHelper: HHH000204: Processing PersistenceUnitInfo [name: default]
2022-07-13 14:46:40,651 INFO  [main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.HSQLDialect
2022-07-13 14:46:40,659 INFO  [main] org.hibernate.envers.boot.internal.EnversServiceImpl: Envers integration enabled? : true
2022-07-13 14:46:40,691 INFO  [main] org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2022-07-13 14:46:40,691 INFO  [main] org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean: Initialized JPA EntityManagerFactory for persistence unit 'default'
2022-07-13 14:46:40,753 WARN  [main] org.appng.api.support.RequestFactoryBean: invalid value for platform property 'uploadDir', folder 'null/target/uploads' does not exist!