Skip to content

An OracleLocal instance for unit testing DAO Layer. Can be used for integration testing as well

Notifications You must be signed in to change notification settings

nnarendravijay/embeddedOracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem Statement:

For DAO Layer unit testing, there isn't an embedded simulation of Oracle. There is H2, but there are several differences between the H2 simulation and Oracle.

Solution:

This project solves the problem by providing the Oracle instance as a Docker Image and spinning up a container with Oracle in it.

<dependency>
    <groupId>com.nnarendravijay</groupId>
    <artifactId>embeddedOracle</artifactId>
    <version>0.0.1</version>
</dependency>

More Details:

It nealy takes about a minute of two for starting up the default VM and caching the Docker Image you first run this on a machine (but, completely depends on the network bandwidth). After the first run, the Docker image is cached and it takes a maximum of 15 seconds for the container and Oracle to startup and available for accepting connections.

Prerequisites:

Docker installed on your machine.

Database Versioning/Migrations:

You can use your own migrations and could use Flyway or Liquibase, whichever you prefer for setting up your data.

About

An OracleLocal instance for unit testing DAO Layer. Can be used for integration testing as well

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published