Class DynamicJaxrsTest
java.lang.Object
org.bloomreach.forge.brut.resources.AbstractResourceTest
org.bloomreach.forge.brut.resources.AbstractJaxrsTest
org.bloomreach.forge.brut.resources.annotation.DynamicJaxrsTest
Dynamic JAX-RS test implementation that bridges annotation-based API to existing AbstractJaxrsTest.
This adapter delegates configuration to TestConfig and exposes methods needed by the JUnit extension.
-
Field Summary
Fields inherited from class org.bloomreach.forge.brut.resources.AbstractResourceTest
componentManager, hstModelRegistry, hstRequest, hstResponse, platformModelAvailableService, platformServices, servletContext, sharedComponentManager, sharedHstModelRegistry, sharedPlatformModelAvailableService, sharedPlatformServices -
Constructor Summary
ConstructorsConstructorDescriptionDynamicJaxrsTest(org.bloomreach.forge.brut.resources.annotation.TestConfig config) -
Method Summary
Methods inherited from class org.bloomreach.forge.brut.resources.AbstractJaxrsTest
destroy, getServletInputStreamSize, init, performValidation, setupComponentManager, setupHstRequestMethods inherited from class org.bloomreach.forge.brut.resources.AbstractResourceTest
getComponentManager, getHstModelRegistry, getHstRequest, getPlatformServices, getResponseStatus, includeAdditionalSpringConfigurations, invalidateHstModel, invokeFilter, registerHstModel, resolveExistingHstRoot, setupHstPlatform, setupHstResponse, setupServletContext, unregisterHstModel
-
Constructor Details
-
DynamicJaxrsTest
public DynamicJaxrsTest(org.bloomreach.forge.brut.resources.annotation.TestConfig config)
-
-
Method Details
-
getAnnotatedHstBeansClasses
- Specified by:
getAnnotatedHstBeansClassesin classAbstractResourceTest
-
contributeSpringConfigurationLocations
- Specified by:
contributeSpringConfigurationLocationsin classAbstractResourceTest- Returns:
- any additional spring xml locations to be included in the spring application context The returned value should be a pattern
-
contributeHstConfigurationRootPath
- Specified by:
contributeHstConfigurationRootPathin classAbstractResourceTest- Returns:
- absolute path of the root hst configuration node. E.g. "/hst:myproject"
-
contributeAddonModulePaths
- Specified by:
contributeAddonModulePathsin classAbstractResourceTest- Returns:
- any additional hst addon module location patterns
-
setupForNewRequest
public void setupForNewRequest()Description copied from class:AbstractJaxrsTestResets per-request state. Call from@BeforeEachfor JUnit 5 tests with multiple methods. Subclasses can override to add custom setup but must callsuper.setupForNewRequest().- Overrides:
setupForNewRequestin classAbstractJaxrsTest
-
request
-
repository
-
authentication
Configures mock authentication behavior for testing auth failures.- Returns:
- MockAuthenticationConfig for fluent configuration
-
init
void init() -
destroy
void destroy() -
getHstRequest
MockHstRequest getHstRequest() -
invokeFilter
String invokeFilter()
-