package com.braintree.customersupportbackoffice.actions.braintreePluginConfiguration.importConfiguration;

import com.hybris.cockpitng.actions.ActionContext;
import com.hybris.cockpitng.actions.ActionResult;
import com.hybris.cockpitng.engine.impl.ComponentWidgetAdapter;
import de.hybris.bootstrap.annotations.UnitTest;
import de.hybris.platform.core.model.BraintreePluginConfigurationModel;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

import static org.junit.Assert.assertEquals;

@UnitTest
@RunWith(MockitoJUnitRunner.class)
public class BraintreeImportConfigurationTest {
    @Mock
    private ComponentWidgetAdapter componentWidgetAdapter;

    @InjectMocks
    private BraintreeImportConfiguration unit;

    @Mock
    private ActionContext<BraintreePluginConfigurationModel> actionContext;

    @Test
    public void shouldSuccessfullyPerform() {
        ActionResult<BraintreePluginConfigurationModel> result = unit.perform(actionContext);

        assertEquals(ActionResult.SUCCESS, result.getResultCode());
    }

}