Package net.shibboleth.idp.admin.impl
Class DoStorageOperationTest
java.lang.Object
net.shibboleth.idp.admin.impl.DoStorageOperationTest
Unit test for
DoStorageOperation action.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate net.shibboleth.idp.admin.impl.DoStorageOperationprivate static final StringTest context.private static final StringTest key.private com.fasterxml.jackson.databind.ObjectMapperprivate RequestContextprivate MockHttpServletRequestprivate MockHttpServletResponseprivate MemoryStorageServiceprivate static final StringTest value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest duplicate create.voidTest failed update with a version.voidTest invalidMethodvoidTest missing delete.voidTest with no inputs.voidTest failed update with a version when record missing.voidnoParams()Test with no inputs.voidsetUp()Set up test.voidTest successful create.voidTest successful delete.voidTest successful get.voidTest successful update.voidTest successful update as a create.voidTest successful update with a version.voidtearDown()Tear down test.
-
Field Details
-
CONTEXT
Test context.- See Also:
-
KEY
Test key.- See Also:
-
VALUE
Test value.- See Also:
-
storageService
-
mapper
private com.fasterxml.jackson.databind.ObjectMapper mapper -
action
private net.shibboleth.idp.admin.impl.DoStorageOperation action -
rc
-
request
-
response
-
-
Constructor Details
-
DoStorageOperationTest
public DoStorageOperationTest()
-
-
Method Details
-
setUp
Set up test.- Throws:
ComponentInitializationException
-
tearDown
@AfterMethod public void tearDown()Tear down test. -
noParams
public void noParams()Test with no inputs. -
invalidMethod
public void invalidMethod()Test invalidMethod -
missingGet
public void missingGet()Test with no inputs. -
successGet
Test successful get.- Throws:
IOExceptionParseException
-
missingDelete
Test missing delete.- Throws:
IOExceptionParseException
-
successDelete
Test successful delete.- Throws:
IOExceptionParseException
-
successCreate
Test successful create.- Throws:
IOExceptionParseException
-
duplicateCreate
Test duplicate create.- Throws:
IOExceptionParseException
-
successUpdate
Test successful update.- Throws:
IOExceptionParseException
-
successUpdateAsCreate
Test successful update as a create.- Throws:
IOExceptionParseException
-
successUpdateWithVersion
Test successful update with a version.- Throws:
IOExceptionParseException
-
failedUpdateWithVersion
Test failed update with a version.- Throws:
IOExceptionParseException
-
missingUpdateWithVersion
Test failed update with a version when record missing.- Throws:
IOExceptionParseException
-