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

import com.atlassian.stash.internal.notification.handlers.AbstractMentionNotificationHandlerTest;
import com.atlassian.stash.internal.notification.handlers.AbstractNotificationHandler;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.runners.MockitoJUnitRunner;

import static org.junit.Assert.assertEquals;

@RunWith(MockitoJUnitRunner.class)
public class CommentRepliedPullRequestMentionNotificationHandlerTest {
    @InjectMocks
    private CommentRepliedPullRequestMentionNotificationHandler notificationHandler;

    @Test
    public void testDelegate() {
        AbstractNotificationHandler handler = AbstractMentionNotificationHandlerTest.getHandlerDelegate(notificationHandler);
        assertEquals("Same delegate", CommentRepliedPullRequestNotificationHandler.class, handler.getClass());
    }
}
