Class ManageTagGitHubActionTest

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

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

    • ManageTagGitHubActionTest

      ManageTagGitHubActionTest()
  • Method Details

    • setUp

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

      @Test void whenGetInputName_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputNameNotProvided_thenFail

      @Test void whenGetInputNameNotProvided_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
    • whenGetInputFromProvided_thenReturnValue

      @Test void whenGetInputFromProvided_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputFromNotProvided_thenReturnDefaultValue

      @Test void whenGetInputFromNotProvided_thenReturnDefaultValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteCreateTagNotExists_thenTagCreated

      @Test void whenExecuteCreateTagNotExists_thenTagCreated() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteCreateTagAlreadyExists_thenTagUpdated

      @Test void whenExecuteCreateTagAlreadyExists_thenTagUpdated() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteDeleteTagAlreadyExists_thenTagDeleted

      @Test void whenExecuteDeleteTagAlreadyExists_thenTagDeleted() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteDeleteTagNotExists_thenTagDeleted

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

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

      @Test void whenGetTagGHRefExist_thenReturnRef() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetTagGHRefDoesNotExist_thenReturnEmpty

      @Test void whenGetTagGHRefDoesNotExist_thenReturnEmpty() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetTagGHRefRepoHasNoTags_thenReturnEmpty

      @Test void whenGetTagGHRefRepoHasNoTags_thenReturnEmpty() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetTagGHRefNull_thenThrowNullPointerException

      @Test void whenGetTagGHRefNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetAnyGHRefExist_thenReturnRef

      @Test void whenGetAnyGHRefExist_thenReturnRef() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetAnyGHRefDoesNotExist_thenReturnEmpty

      @Test void whenGetAnyGHRefDoesNotExist_thenReturnEmpty() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetAnyGHRefNull_thenThrowNullPointerException

      @Test void whenGetAnyGHRefNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHRefPresentExistingTag_thenUpdateExistingTag

      @Test void whenCreateGHRefPresentExistingTag_thenUpdateExistingTag() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHRefEmptyExistingTag_thenCreateTag

      @Test void whenCreateGHRefEmptyExistingTag_thenCreateTag() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHRefNull_thenThrowNullPointerException

      @Test void whenCreateGHRefNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenDeleteGHRefPresent_thenDeleteGhRef

      @Test void whenDeleteGHRefPresent_thenDeleteGhRef() throws Exception
      Test method.
      Throws:
      Exception
    • whenDeleteGHRefEmpty_thenLogMessage

      @Test void whenDeleteGHRefEmpty_thenLogMessage()
      Test method.
    • whenDeleteGHRefNull_thenThrowNullPointerException

      @Test void whenDeleteGHRefNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenBranchRefNamePresent_thenReturnRefValue

      @Test void whenBranchRefNamePresent_thenReturnRefValue()
      Test method.
    • whenBranchRefNameNull_thenThrowNullPointerException

      @Test void whenBranchRefNameNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenTagRefNamePresent_thenReturnRefValue

      @Test void whenTagRefNamePresent_thenReturnRefValue()
      Test method.
    • whenTagRefNameNull_thenThrowNullPointerException

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