
eu.drus.jpa.unit.mongodb.DataSeedStrategyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa-unit-mongodb Show documentation
Show all versions of jpa-unit-mongodb Show documentation
JUnit extension for simple testing of JPA entities and components
The newest version!
package eu.drus.jpa.unit.mongodb;
import eu.drus.jpa.unit.api.DataSeedStrategy.StrategyProvider;
import eu.drus.jpa.unit.mongodb.operation.MongoDbOperation;
import eu.drus.jpa.unit.mongodb.operation.MongoDbOperations;
public class DataSeedStrategyProvider implements StrategyProvider {
@Override
public MongoDbOperation insertStrategy() {
return MongoDbOperations.INSERT;
}
@Override
public MongoDbOperation cleanInsertStrategy() {
return MongoDbOperations.CLEAN_INSERT;
}
@Override
public MongoDbOperation refreshStrategy() {
return MongoDbOperations.REFRESH;
}
@Override
public MongoDbOperation updateStrategy() {
return MongoDbOperations.UPDATE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy