Skip to content

gyntools/gyntools-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#gyntools-test

##Description Setup tests made easy

##Usage

Integration Tests

  1. Create a new integration tests class extending AbstractDatabaseIntegrationTester

Example:

        @Test
        public class DatabaseIntegrationTesterBuilderIT extends AbstractDatabaseIntegrationTester {
            //ommited
        }
  1. Use the builder

Example:

        @Test
        public void shouldBuildWithDB(){
            DatabaseIntegrationTesterBuilder helper = DatabaseIntegrationTesterBuilder.of(this).withDB(persistenceUnitName);
            assertNotNull(this.getEntityManager());
            logger.info(this.getEntityManager().toString());
        }

Unit tests

Usage:

Create a new unit tests class extending AbstractBaseUnitTest

About

Testing made easy with Java DSL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages