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 Details

    • SemverReleaseVarsGitHubActionTest

      SemverReleaseVarsGitHubActionTest()
  • Method Details

    • setUp

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

      @Test void whenGetInputPackageVersion_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputPackageVersionWithPrefix_thenReturnValue

      @Test void whenGetInputPackageVersionWithPrefix_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetInputPackageVersionNotProvided_thenReturnEmpty

      @Test void whenGetInputPackageVersionNotProvided_thenReturnEmpty()
      Test method.
    • whenGetReleaseBranchNameIsBranch_thenReturnValue

      @Test void whenGetReleaseBranchNameIsBranch_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetReleaseBranchNameIsTag_thenThrowIllegalArgumentException

      @Test void whenGetReleaseBranchNameIsTag_thenThrowIllegalArgumentException() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetRunReleaseBranchName_thenReturnValue

      @Test void whenGetRunReleaseBranchName_thenReturnValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetReleaseVersionBranchNameWithoutVersion_thenReturnProvidedVersion

      @Test void whenGetReleaseVersionBranchNameWithoutVersion_thenReturnProvidedVersion() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetReleaseVersionBranchNameWithVersion_thenReturnBranchVersion

      @Test void whenGetReleaseVersionBranchNameWithVersion_thenReturnBranchVersion() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetReleaseVersionBranchNameWithoutVersionAndNoProvidedVersion_thenThrowNoSuchElementException

      @Test void whenGetReleaseVersionBranchNameWithoutVersionAndNoProvidedVersion_thenThrowNoSuchElementException() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetReleaseVersionBranchNameIsInvalid_thenThrowIllegalArgumentException

      @Test void whenGetReleaseVersionBranchNameIsInvalid_thenThrowIllegalArgumentException() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetReleaseVersionNull_thenThrowNullPointerException

      @Test void whenGetReleaseVersionNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetSemverVersion_thenReturnValidVersion

      @Test void whenGetSemverVersion_thenReturnValidVersion() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetSemverVersionInvalid_thenThrowIllegalArgumentException

      @Test void whenGetSemverVersionInvalid_thenThrowIllegalArgumentException() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetSemverVersionNull_thenThrowNullPointerException

      @Test void whenGetSemverVersionNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteWithoutMaintenanceBranchAndLatest_thenReturnValidValues

      @Test void whenExecuteWithoutMaintenanceBranchAndLatest_thenReturnValidValues() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteWithoutMaintenanceBranchAndNotLatest_thenReturnValidValues

      @Test void whenExecuteWithoutMaintenanceBranchAndNotLatest_thenReturnValidValues() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteWithMaintenanceBranchAndLatest_thenReturnValidValues

      @Test void whenExecuteWithMaintenanceBranchAndLatest_thenReturnValidValues() throws Exception
      Test method.
      Throws:
      Exception
    • whenExecuteTagWithVersionAlreadyExist_thenThrowIllegalArgumentException

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

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

      @Test void whenIsLatestMajorVersion_thenReturnValidValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenIsLatestMajorVersionNull_thenThrowNullPointerException

      @Test void whenIsLatestMajorVersionNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenIsLatestMajorMinorVersion_thenReturnValidValue

      @Test void whenIsLatestMajorMinorVersion_thenReturnValidValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenIsLatestMajorMinorVersionNull_thenThrowNullPointerException

      @Test void whenIsLatestMajorMinorVersionNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenIsLatestMajorMinorPatchVersion_thenReturnValidValue

      @Test void whenIsLatestMajorMinorPatchVersion_thenReturnValidValue() throws Exception
      Test method.
      Throws:
      Exception
    • whenIsLatestMajorMinorPatchVersionNull_thenThrowNullPointerException

      @Test void whenIsLatestMajorMinorPatchVersionNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetMaintenanceBranchNameMaintenanceBranchMajor_thenReturnPresent

      @Test void whenGetMaintenanceBranchNameMaintenanceBranchMajor_thenReturnPresent() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetMaintenanceBranchNameMaintenanceBranchMajorMinor_thenReturnPresent

      @Test void whenGetMaintenanceBranchNameMaintenanceBranchMajorMinor_thenReturnPresent() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetMaintenanceBranchNameNoMaintenanceBranch_thenReturnEmpty

      @Test void whenGetMaintenanceBranchNameNoMaintenanceBranch_thenReturnEmpty() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetMaintenanceBranchNameNull_thenThrowNullPointerException

      @Test void whenGetMaintenanceBranchNameNull_thenThrowNullPointerException() throws Exception
      Test method.
      Throws:
      Exception
    • whenGetValidSemverTags_thenReturnTags

      @Test void whenGetValidSemverTags_thenReturnTags() throws Exception
      Test method.
      Throws:
      Exception
    • whenGitTagPresent_thenReturnTag

      @Test void whenGitTagPresent_thenReturnTag()
      Test method.
    • whenGitTagNull_thenThrowNullPointerException

      @Test void whenGitTagNull_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