package com.braintree.actions.consignment;

import de.hybris.bootstrap.annotations.UnitTest;
import de.hybris.platform.ordersplitting.model.ConsignmentProcessModel;
import de.hybris.platform.processengine.action.AbstractSimpleDecisionAction;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

@UnitTest
@RunWith(MockitoJUnitRunner.class)
public class BrainTreeWaitBeforeTransmissionActionTest {

    @InjectMocks
    private BrainTreeWaitBeforeTransmissionAction unit;

    @Mock
    private ConsignmentProcessModel process;

    @Test
    public void shouldExecuteAction() {
        //when
        AbstractSimpleDecisionAction.Transition result = unit.executeAction(process);

        //then
        Assert.assertEquals(AbstractSimpleDecisionAction.Transition.OK, result);
    }

}
