All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gsrs.substances.tests.AbstractSubstanceJpaFullStackEntityTest Maven / Gradle / Ivy

There is a newer version: 3.1.1.2
Show newest version
package gsrs.substances.tests;

//import example.GsrsModuleSubstanceApplication;

import gsrs.startertests.GsrsFullStackTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.DirtiesContext;

import javax.persistence.EntityManager;

//@SpringBootTest(classes = {GsrsModuleSubstanceApplication.class})
//@SpringBootTest
@GsrsFullStackTest(dirtyMode = DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD)
public abstract class AbstractSubstanceJpaFullStackEntityTest extends AbstractSubstanceJpaEntityTestSuperClass {
    @Autowired
    protected EntityManager entityManager;

    @Override
    protected EntityManagerFacade getEntityManagerFacade() {
        return EntityManagerFacade.wrap(entityManager);
    }

    public AbstractSubstanceJpaFullStackEntityTest(){
        super();
    }
    public AbstractSubstanceJpaFullStackEntityTest(boolean createAdminUserOnInit){
        super(createAdminUserOnInit);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy