Class ManageMilestoneGitHubActionTest

java.lang.Object
me.julb.applications.github.actions.ManageMilestoneGitHubActionTest

@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) class ManageMilestoneGitHubActionTest extends Object
Test class for ManageMilestoneGitHubAction class.
Author:
Julb.
  • Constructor Details

    • ManageMilestoneGitHubActionTest

      ManageMilestoneGitHubActionTest()
  • Method Details

    • setUp

      @BeforeEach void setUp() throws Exception
      Throws:
      Exception
    • whenGetInputTitle_thenReturnValue

      @Test void whenGetInputTitle_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputTitleNotProvided_thenFail

      @Test void whenGetInputTitleNotProvided_thenFail()
      Test method.
    • whenGetInputStateProvided_thenReturnValue

      @Test void whenGetInputStateProvided_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputStateNotProvided_thenReturnDefaultValue

      @Test void whenGetInputStateNotProvided_thenReturnDefaultValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputDescriptionPresent_thenReturnValue

      @Test void whenGetInputDescriptionPresent_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputDescriptionEmpty_thenReturnEmpty

      @Test void whenGetInputDescriptionEmpty_thenReturnEmpty() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputDueOnPresent_thenReturnValue

      @Test void whenGetInputDueOnPresent_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputDueOnEmpty_thenReturnEmpty

      @Test void whenGetInputDueOnEmpty_thenReturnEmpty() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputDueOnInvalid_thenThrowIllegalArgumentException

      @Test void whenGetInputDueOnInvalid_thenThrowIllegalArgumentException() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteOpenMilestoneExists_thenMilestoneOpened

      @Test void whenExecuteOpenMilestoneExists_thenMilestoneOpened() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteOpenMilestoneNotExists_thenMilestoneOpened

      @Test void whenExecuteOpenMilestoneNotExists_thenMilestoneOpened() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteCloseMilestoneExists_thenMilestoneClosed

      @Test void whenExecuteCloseMilestoneExists_thenMilestoneClosed() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteCloseMilestoneNotExists_thenMilestoneClosed

      @Test void whenExecuteCloseMilestoneNotExists_thenMilestoneClosed() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteDeleteMilestoneExists_thenMilestoneDeleted

      @Test void whenExecuteDeleteMilestoneExists_thenMilestoneDeleted() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteDeleteMilestoneNotExists_thenMilestoneDeleted

      @Test void whenExecuteDeleteMilestoneNotExists_thenMilestoneDeleted() throws Exception
      Test method.
      Throws:
      Exception
    • whenConnectApi_thenVerifyOK

      @Test void whenConnectApi_thenVerifyOK() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetGHMilestoneExist_thenReturnRef

      @Test void whenGetGHMilestoneExist_thenReturnRef() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetGHMilestoneDoesNotExist_thenReturnEmpty

      @Test void whenGetGHMilestoneDoesNotExist_thenReturnEmpty() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetGHMilestoneNull_thenThrowNullPointerException

      @Test void whenGetGHMilestoneNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHMilestoneOpenEmptyMilestone_thenOpenMilestone

      @Test void whenCreateGHMilestoneOpenEmptyMilestone_thenOpenMilestone() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHMilestoneOpenExistingOpenMilestone_thenOpenMilestone

      @Test void whenCreateGHMilestoneOpenExistingOpenMilestone_thenOpenMilestone() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHMilestoneCloseExistingOpenMilestone_thenCloseMilestone

      @Test void whenCreateGHMilestoneCloseExistingOpenMilestone_thenCloseMilestone() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHMilestoneOpenExistingClosedMilestone_thenOpenMilestone

      @Test void whenCreateGHMilestoneOpenExistingClosedMilestone_thenOpenMilestone() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHMilestoneCloseExistingClosedMilestone_thenCloseMilestone

      @Test void whenCreateGHMilestoneCloseExistingClosedMilestone_thenCloseMilestone() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHMilestoneNull_thenThrowNullPointerException

      @Test void whenCreateGHMilestoneNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenDeleteGHMilestonePresent_thenDeleteGhMilestone

      @Test void whenDeleteGHMilestonePresent_thenDeleteGhMilestone() throws Exception
      Test method.
      Throws:
      Exception
    • whenDeleteGHMilestoneEmpty_thenLogMessage

      @Test void whenDeleteGHMilestoneEmpty_thenLogMessage()
      Test method.
    • whenDeleteGHMilestoneNull_thenThrowNullPointerException

      @Test void whenDeleteGHMilestoneNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception