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 Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
setUp()
(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.(package private) void
Test method.
-
Constructor Details
-
ManageBranchGitHubActionTest
ManageBranchGitHubActionTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
whenGetInputName_thenReturnValue
Test method.- Throws:
Exception
-
whenGetInputNameNotProvided_thenFail
@Test void whenGetInputNameNotProvided_thenFail()Test method. -
whenGetInputStateProvided_thenReturnValue
Test method.- Throws:
Exception
-
whenGetInputStateNotProvided_thenReturnDefaultValue
Test method.- Throws:
Exception
-
whenGetInputFromProvided_thenReturnValue
Test method.- Throws:
Exception
-
whenGetInputFromNotProvided_thenReturnDefaultValue
Test method.- Throws:
Exception
-
whenExecuteCreateBranchNotExists_thenBranchCreated
Test method.- Throws:
Exception
-
whenExecuteCreateBranchAlreadyExists_thenBranchUpdated
Test method.- Throws:
Exception
-
whenExecuteDeleteBranchAlreadyExists_thenBranchDeleted
Test method.- Throws:
Exception
-
whenExecuteDeleteBranchNotExists_thenBranchDeleted
Test method.- Throws:
Exception
-
whenConnectApi_thenVerifyOK
Test method.- Throws:
Exception
-
whenGetBranchGHRefExist_thenReturnRef
Test method.- Throws:
Exception
-
whenGetBranchGHRefDoesNotExist_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetBranchGHRefNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetAnyGHRefExist_thenReturnRef
Test method.- Throws:
Exception
-
whenGetAnyGHRefDoesNotExist_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetAnyGHRefNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenCreateGHRefPresentExistingBranch_thenUpdateExistingBranch
Test method.- Throws:
Exception
-
whenCreateGHRefEmptyExistingBranch_thenCreateBranch
Test method.- Throws:
Exception
-
whenCreateGHRefNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenDeleteGHRefPresent_thenDeleteGhRef
Test method.- Throws:
Exception
-
whenDeleteGHRefEmpty_thenLogMessage
@Test void whenDeleteGHRefEmpty_thenLogMessage()Test method. -
whenDeleteGHRefNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenBranchRefNamePresent_thenReturnRefValue
@Test void whenBranchRefNamePresent_thenReturnRefValue()Test method. -
whenBranchRefNameNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenTagRefNamePresent_thenReturnRefValue
@Test void whenTagRefNamePresent_thenReturnRefValue()Test method. -
whenTagRefNameNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-