GithubHelp home page GithubHelp logo

hibernate-wildfly-test-case-templates's Introduction

Hibernate WildFly Test Case Templates

When trying to reproduce an issue for a project involving hibernate deployed in WildFly or EAP, in order to spot if the root cause of the issue comes from Hibernate it's extremely helpful to have a test case that does involve only Hibernate with all the configuration settings toggled on as WildFly/EAP does.

The aim of this project is to help to create such a test cases.

To reproduce an issue related to WildFly using Hibernate ORM 5.1 a test should be added to the ORM51 subproject while for Hibernate ORM 5.3 a test should be added to ORM53 subproject.

Each subproject has 2 folders:

  • src/integration-test for tests that will be run inside WildFly
  • src/test for unit tests.

IntelliJ

Before running/debugging integration tests from IntelliJ :

  • to run a ./gradlew integrationTest
  • select settings>Build Tools>Gradle and check both Build and run using and Run tests using values are equals toIntelliJ IDEA

To debug an integration test in IntelliJ it is also required:

  • in the arquilliam.xml file comment the code <property name="javaVmArguments">-Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1</property> and uncomment <property name="javaVmArguments">-Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y</property> (Remember to revert the changes made to arquilliam.xmlin order to run and not debug the integration tests)
  • in Run>Edit Configurations ... add a new Remote configuration
  • run the integration test
  • select the created remote config and run debug

hibernate-wildfly-test-case-templates's People

Contributors

dreab8 avatar gbadner avatar

Watchers

 avatar

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.