Class ManageBranchGitHubActionTest

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

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

    • ManageBranchGitHubActionTest

      ManageBranchGitHubActionTest()
  • 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
    • whenExecuteCreateBranchNotExists_thenBranchCreated

      @Test void whenExecuteCreateBranchNotExists_thenBranchCreated() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteCreateBranchAlreadyExists_thenBranchUpdated

      @Test void whenExecuteCreateBranchAlreadyExists_thenBranchUpdated() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteDeleteBranchAlreadyExists_thenBranchDeleted

      @Test void whenExecuteDeleteBranchAlreadyExists_thenBranchDeleted() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteDeleteBranchNotExists_thenBranchDeleted

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

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

      @Test void whenGetBranchGHRefExist_thenReturnRef() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetBranchGHRefDoesNotExist_thenReturnEmpty

      @Test void whenGetBranchGHRefDoesNotExist_thenReturnEmpty() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetBranchGHRefNull_thenThrowNullPointerException

      @Test void whenGetBranchGHRefNull_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
    • whenCreateGHRefPresentExistingBranch_thenUpdateExistingBranch

      @Test void whenCreateGHRefPresentExistingBranch_thenUpdateExistingBranch() throws Exception
      Test method.
      Throws:
      Exception
    • whenCreateGHRefEmptyExistingBranch_thenCreateBranch

      @Test void whenCreateGHRefEmptyExistingBranch_thenCreateBranch() 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