
eu.drus.jpa.unit.mongodb.operation.CompositeOperation 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.operation;
import org.bson.Document;
import com.mongodb.client.MongoDatabase;
public class CompositeOperation implements MongoDbOperation {
private MongoDbOperation[] operations;
public CompositeOperation(final MongoDbOperation... operations) {
this.operations = operations;
}
@Override
public void execute(final MongoDatabase connection, final Document data) {
for (final MongoDbOperation operation : operations) {
operation.execute(connection, data);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy