Package me.julb.sdk.github.actions.kit
Class GitHubActionsKitTest
java.lang.Object
me.julb.sdk.github.actions.kit.GitHubActionsKitTest
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
class GitHubActionsKitTest
extends Object
Test class for
GitHubActionsKit
class. - Author:
- Julb.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
setUp()
Called before each test.(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
whenGetInputAbsentNullEmptyBlankString_thenReturnEmpty
(String absentEnvValue) 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.(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
-
GitHubActionsKitTest
GitHubActionsKitTest()
-
-
Method Details
-
setUp
@BeforeEach void setUp()Called before each test. -
whenInstanceRequired_thenReturnInstance
Test method.- Throws:
Exception
-
whenGetInputPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetInputAbsentNull_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetInputAbsentNullEmptyBlankString_thenReturnEmpty
@ParameterizedTest @NullAndEmptySource @ValueSource(strings=" ") void whenGetInputAbsentNullEmptyBlankString_thenReturnEmpty(String absentEnvValue) throws Exception Test method.- Throws:
Exception
-
whenGetInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetInputTrimTruePresent_thenReturnValueTrimmed
Test method.- Throws:
Exception
-
whenGetInputTrimFalsePresent_thenReturnValueNotTrimmed
Test method.- Throws:
Exception
-
whenGetInputTrimNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetRequiredInputPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetRequiredInputAbsent_thenThrowNoSuchElementException
Test method.- Throws:
Exception
-
whenGetRequiredInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetRequiredInputTrimTruePresent_thenReturnValueTrimmed
Test method.- Throws:
Exception
-
whenGetRequiredInputTrimFalsePresent_thenReturnValueNotTrimmed
Test method.- Throws:
Exception
-
whenGetRequiredInputTrimAbsent_thenThrowNoSuchElementException
Test method.- Throws:
Exception
-
whenGetRequiredInputTrimNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetBooleanInputPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetBooleanInputAbsent_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetBooleanInputInvalid_thenThrowIllegalArgumentException
Test method.- Throws:
Exception
-
whenGetBooleanInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetRequiredBooleanInputPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetRequiredBooleanInputAbsent_thenThrowNoSuchElementException
Test method.- Throws:
Exception
-
whenGetRequiredBooleanInputInvalid_thenThrowIllegalArgumentException
Test method.- Throws:
Exception
-
whenGetRequiredBooleanInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetEnumInputPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetEnumInputAbsent_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetEnumInputInvalid_thenThrowIllegalArgumentException
Test method.- Throws:
Exception
-
whenGetEnumInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetRequiredEnumInputPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetRequiredEnumInputAbsent_thenThrowNoSuchElementException
Test method.- Throws:
Exception
-
whenGetRequiredEnumInputInvalid_thenThrowIllegalArgumentException
Test method.- Throws:
Exception
-
whenGetRequiredEnumInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetMultilineInputPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetMultilineInputAbsent_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetMultilineInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetMultilineInputTrimTruePresent_thenReturnValueTrimmed
Test method.- Throws:
Exception
-
whenGetMultilineInputTrimFalsePresent_thenReturnValueNotTrimmed
Test method.- Throws:
Exception
-
whenGetMultilineInputTrimAbsent_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetMultilineInputTrimNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetRequiredMultilineInputPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetRequiredMultilineInputAbsent_thenThrowNoSuchElementException
Test method.- Throws:
Exception
-
whenGetRequiredMultilineInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetRequiredMultilineInputTrimTruePresent_thenReturnValueTrimmed
Test method.- Throws:
Exception
-
whenGetRequiredMultilineInputTrimFalsePresent_thenReturnValueNotTrimmed
@Test void whenGetRequiredMultilineInputTrimFalsePresent_thenReturnValueNotTrimmed() throws ExceptionTest method.- Throws:
Exception
-
whenGetRequiredMultilineTrimInputAbsent_thenThrowNoSuchElementException
@Test void whenGetRequiredMultilineTrimInputAbsent_thenThrowNoSuchElementException() throws ExceptionTest method.- Throws:
Exception
-
whenGetRequiredMultilineTrimInputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenSetOutput_thenPrintCommand
Test method.- Throws:
Exception
-
whenSetOutputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenSetEmptyOutput_thenPrintCommand
Test method.- Throws:
Exception
-
whenSetEmptyOutputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenSetOptionalOutputPresent_thenPrintCommand
Test method.- Throws:
Exception
-
whenSetOptionalOutputEmpty_thenPrintCommand
Test method.- Throws:
Exception
-
whenSetOptionalOutputNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenSetCommandEchoEnabled_thenPrintCommand
Test method.- Throws:
Exception
-
whenStartGroup_thenPrintCommand
Test method.- Throws:
Exception
-
whenStartGroupNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenRunInGroup_thenPrintCommand
Test method.- Throws:
Exception
-
whenRunInGroupNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenCallInGroup_thenPrintCommand
Test method.- Throws:
Exception
-
whenCallInGroupNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenEndGroup_thenPrintCommand
Test method.- Throws:
Exception
-
whenSaveState_thenPrintCommand
Test method.- Throws:
Exception
-
whenSaveStateNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetStatePresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetStateNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetStateAbsent_thenReturnEmpty
Test method.- Throws:
Exception
-
whenSetSecret_thenPrintCommand
Test method.- Throws:
Exception
-
whenSetSecretNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenIsDebug_thenReturnValue
Test method.- Throws:
Exception
-
whenFail_thenExitWithErrorCode
Test method.- Throws:
Exception
-
whenFailNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenDebug_thenPrintCommand
Test method.- Throws:
Exception
-
whenDebugNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenNotice_thenPrintCommand
Test method.- Throws:
Exception
-
whenNoticeNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenNoticeProperties_thenPrintCommand
Test method.- Throws:
Exception
-
whenNoticePropertiesNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenWarning_thenPrintCommand
Test method.- Throws:
Exception
-
whenWarningNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenWarningProperties_thenPrintCommand
Test method.- Throws:
Exception
-
whenWarningPropertiesNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenError_thenPrintCommand
Test method.- Throws:
Exception
-
whenErrorNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenErrorProperties_thenPrintCommand
Test method.- Throws:
Exception
-
whenErrorPropertiesNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetGitHubEnvVarsBranch_thenReturnValue
Test method.- Throws:
Exception
-
whenGetGitHubEnvVarsTag_thenReturnValue
Test method.- Throws:
Exception
-
whenGetGitHubEnvVars_thenThrowNoSuchElementException
Test method.- Throws:
Exception
-
whenGetEnvPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetEnvAbsent_thenReturnEmpty
Test method.- Throws:
Exception
-
whenGetEnvNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-
whenGetRequiredEnvPresent_thenReturnValue
Test method.- Throws:
Exception
-
whenGetRequiredEnvAbsent_thenThrowNoSuchElementException
Test method.- Throws:
Exception
-
whenGetRequiredEnvNull_thenThrowNullPointerException
Test method.- Throws:
Exception
-