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

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

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

import gsrs.legacy.structureIndexer.StructureIndexerService;
import gsrs.startertests.GsrsJpaTest;
import ix.seqaln.service.SequenceIndexerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager;
import org.springframework.boot.test.mock.mockito.MockBean;

@GsrsJpaTest
public abstract class AbstractSubstanceJpaEntityTest extends AbstractSubstanceJpaEntityTestSuperClass {

    @Autowired
    protected TestEntityManager entityManager;


    @MockBean
    protected SequenceIndexerService mockSequenceIndexerService;

    @MockBean
    protected StructureIndexerService mockStructureIndexerService;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy