Class SemverReleaseVarsGitHubActionTest
java.lang.Object
me.julb.applications.github.actions.SemverReleaseVarsGitHubActionTest
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
class SemverReleaseVarsGitHubActionTest
extends Object
Test class for
SemverReleaseVarsGitHubAction
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.(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
-
SemverReleaseVarsGitHubActionTest
SemverReleaseVarsGitHubActionTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
whenGetInputPackageVersion_thenReturnValue
Test method.- Throws:
Exception
-
whenGetInputPackageVersionWithPrefix_thenReturnValue
Test method.- Throws:
Exception
-
whenGetInputPackageVersionNotProvided_thenReturnEmpty
@Test void whenGetInputPackageVersionNotProvided_thenReturnEmpty()Test method. -
whenGetReleaseBranchNameIsBranch_thenReturnValue
Test method.- Throws:
Exception
-
whenGetReleaseBranchNameIsTag_thenThrowIllegalArgumentException
Test method.- Throws:
Exception
-
whenGetRunReleaseBranchName_thenReturnValue
Test method.- Throws:
Exception
-
whenGetReleaseVersionBranchNameWithoutVersion_thenReturnProvidedVersion
@Test void whenGetReleaseVersionBranchNameWithoutVersion_thenReturnProvidedVersion() throws ExceptionTest method.- Throws:
Exception
-
whenGetReleaseVersionBranchNameWithVersion_thenReturnBranchVersion
Test method.- Throws:
Exception
-
whenGetReleaseVersionBranchNameWithoutVersionAndNoProvidedVersion_thenThrowNoSuchElementException
@Test void whenGetReleaseVersionBranchNameWithoutVersionAndNoProvidedVersion_thenThrowNoSuchElementException() throws ExceptionTest method.- Throws:
Exception
-
whenGetReleaseVersionBranchNameIsInvalid_thenThrowIllegalArgumentException
@Test void whenGetReleaseVersionBranchNameIsInvalid_thenThrowIllegalArgumentException() throws ExceptionTest method.- Throws:
Exception
-
whenGetReleaseVersionNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetSemverVersion_thenReturnValidVersion
Test method.- Throws:
Exception
-
whenGetSemverVersionInvalid_thenThrowIllegalArgumentException
Test method.- Throws:
Exception
-
whenGetSemverVersionNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenExecuteWithoutMaintenanceBranchAndLatest_thenReturnValidValues
Test method.- Throws:
Exception
-
whenExecuteWithoutMaintenanceBranchAndNotLatest_thenReturnValidValues
Test method.- Throws:
Exception
-
whenExecuteWithMaintenanceBranchAndLatest_thenReturnValidValues
Test method.- Throws:
Exception
-
whenExecuteTagWithVersionAlreadyExist_thenThrowIllegalArgumentException
@Test void whenExecuteTagWithVersionAlreadyExist_thenThrowIllegalArgumentException() throws ExceptionTest method.- Throws:
Exception
-
whenConnectApi_thenVerifyOK
Test method.- Throws:
Exception
-
whenIsLatestMajorVersion_thenReturnValidValue
Test method.- Throws:
Exception
-
whenIsLatestMajorVersionNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenIsLatestMajorMinorVersion_thenReturnValidValue
Test method.- Throws:
Exception
-
whenIsLatestMajorMinorVersionNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenIsLatestMajorMinorPatchVersion_thenReturnValidValue
Test method.- Throws:
Exception
-
whenIsLatestMajorMinorPatchVersionNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetMaintenanceBranchNameMaintenanceBranchMajor_thenReturnPresent
Test method.- Throws:
Exception
-
whenGetMaintenanceBranchNameMaintenanceBranchMajorMinor_thenReturnPresent
@Test void whenGetMaintenanceBranchNameMaintenanceBranchMajorMinor_thenReturnPresent() throws ExceptionTest method.- Throws:
Exception
-
whenGetMaintenanceBranchNameNoMaintenanceBranch_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetMaintenanceBranchNameNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetValidSemverTags_thenReturnTags
Test method.- Throws:
Exception
-
whenGitTagPresent_thenReturnTag
@Test void whenGitTagPresent_thenReturnTag()Test method. -
whenGitTagNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenBranchRefNamePresent_thenReturnRefValue
@Test void whenBranchRefNamePresent_thenReturnRefValue()Test method. -
whenBranchRefNameNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-