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

com.lordofthejars.nosqlunit.vault.DefaultVaultInsertionStrategy Maven / Gradle / Ivy

package com.lordofthejars.nosqlunit.vault;

import com.bettercloud.vault.VaultConfig;

import java.io.InputStream;

public class DefaultVaultInsertionStrategy implements com.lordofthejars.nosqlunit.core.InsertionStrategy {

    @Override
    public void insert(VaultClientCallback connection, InputStream dataset) throws Throwable {

        final VaultConfig vaultConfig = connection.vaultConfiguration();
        VaultConnection vaultConnection = new VaultConnection(vaultConfig);
        DataLoader dataLoader = new DataLoader(vaultConnection);
        dataLoader.load(dataset);

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy