Giter Site home page Giter Site logo

authorjapps / spring-boot-integration-test Goto Github PK

View Code? Open in Web Editor NEW
19.0 8.0 20.0 372 KB

Zerocode based integration-tests for a spring-boot application

Home Page: https://zerocode.io

License: MIT License

Java 100.00%
java spring springboot integration testing rest api inmemory json assertion

spring-boot-integration-test's Issues

Spring boot + spring Data + h2 in-memory DB = hibernate error

I have used E2eJunitRunner from the sample but it's NOT starting spring app when run as JUnit Test
I have built a REST API with spring boot , Spring data and h2 in-memory.

Get the following error when running the app as JUnit Test. Please advise. thanks
I can run test cases by running build with skip tests and run the boot jar.

you could refer to my code here https://gitlab.com/Sidhaye/springboot/tree/SpringBoot-RestAPI-ZeroCode-Integration

�[0;39m2018-10-16 22:14:10,406 �[32m[main]�[0;39m �[31mWARN�[0;39m org.springframework.web.context.support.GenericWebApplicationContext - �[34mException encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.boot.archive.spi.ArchiveException: Could not build ClassFile

POM enable the SpringBoot-Data-RestAPI-H2Db-ZeroCode project

Objective:
Create a POM version of this project from Sidhaye's GitLab
https://gitlab.com/Sidhaye/springboot/tree/SpringBoot-RestAPI-ZeroCode-Integration

TODO things to resolve this ticket:

  • Request @BeTheCodeWithYou to grant contributor access to us (@authorjapps , @macrocks , @officiallysameer )
  • Add a POM file with exact same dependencies of Gradle file, but use latest version of Zerocode(1.2.x)
  • Add a Suite runner to run all the tests at once
    • Via JUnit Suite class
    • Via Zerocode Package Runner
  • Verify mvn clean install works.
    • Tests are happy
    • Reports are generated
  • Share in the README file(specifying Gradle n POM enabled) and close this.
  • Tweet this link/repo

Basically add a POM file, no code changes needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.