package com.atlassian.stash.internal.notification.pull.handlers;

import com.atlassian.bitbucket.notification.pull.PullRequestReopenedNotification;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.runners.MockitoJUnitRunner;

import java.util.Map;

import static org.mockito.Mockito.mock;

@RunWith(MockitoJUnitRunner.class)
public class PullRequestReopenedNotificationHandlerTest {

    @InjectMocks
    private PullRequestReopenedNotificationHandler notificationHandler;

    @Test
    public void testContextValues() {
        PullRequestReopenedNotification notification = mock(PullRequestReopenedNotification.class);
        PullRequestNotificationTestUtils.setupNotification(notification);

        Map<String, Object> context = notificationHandler.getContext(notification);

        PullRequestNotificationTestUtils.assertNotification(notification, context);
    }
}
