package com.avg.zaap.crashlibrary.crashlibmocks;

import android.content.Context;
import android.support.annotation.NonNull;

import com.avg.zaap.crashlibrary.CrashLibTests;
import com.avg.zaap.crashlibrary.provider.CrashProviderException;
import com.avg.zaap.crashlibrary.provider.ICrashSyncProvider;

/**
 * Class used in {@link CrashLibTests} when unit testing annotation.
 */
public class SyncProviderWithInvocationTargetException implements ICrashSyncProvider {

    /**
     * Constructor to simulate InvocationTargetException.
     *
     * @param context android context
     * @throws InstantiationException instantiation exception
     */
    @SuppressWarnings("UnusedParameters")
    public SyncProviderWithInvocationTargetException(Context context) throws InstantiationException {
        throw new InstantiationException();
    }

    @Override
    public String provideData(@NonNull String directory) throws CrashProviderException {
        return null;
    }

}
