Package org.linkedopenactors.rdfpub.uc
Class TestHelperV2
java.lang.Object
org.linkedopenactors.rdfpub.uc.TestHelperV2
-
Constructor Summary
ConstructorDescriptionTestHelperV2
(org.springframework.web.context.WebApplicationContext context, org.linkedopenactors.rdfpub.domain.commonsrdf.ActivityPubObjectFactory activityPubObjectFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.linkedopenactors.rdfpub.domain.commonsrdf.Actor
createActor
(String userId, String preferredUsername, String issuer) getHttpAdapter2024
(String userId, String preferredUsername) org.springframework.test.web.servlet.MockMvc
org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor
Optional
<org.linkedopenactors.rdfpub.domain.commonsrdf.Activity> toActivity
(String activityLocation, org.springframework.test.web.servlet.MvcResult mvcResult) Optional
<org.linkedopenactors.rdfpub.domain.commonsrdf.ActivityPubObject> toActivityPubObject
(String subject, org.springframework.test.web.servlet.MvcResult mvcResultActor) Optional
<org.linkedopenactors.rdfpub.domain.commonsrdf.ActivityPubObject> toActivityPubObject
(org.springframework.test.web.servlet.MvcResult mvcResultActor) Optional
<org.linkedopenactors.rdfpub.domain.commonsrdf.Actor> toActor
(org.springframework.test.web.servlet.MvcResult mvcResultActor) Optional
<org.linkedopenactors.rdfpub.domain.commonsrdf.Instance> toInstance
(org.springframework.test.web.servlet.MvcResult mvcResultActor)
-
Constructor Details
-
TestHelperV2
public TestHelperV2(org.springframework.web.context.WebApplicationContext context, org.linkedopenactors.rdfpub.domain.commonsrdf.ActivityPubObjectFactory activityPubObjectFactory)
-
-
Method Details
-
getHttpAdapter2024
-
createActor
public org.linkedopenactors.rdfpub.domain.commonsrdf.Actor createActor(String userId, String preferredUsername, String issuer) throws Exception - Throws:
Exception
-
toActor
public Optional<org.linkedopenactors.rdfpub.domain.commonsrdf.Actor> toActor(org.springframework.test.web.servlet.MvcResult mvcResultActor) throws UnsupportedEncodingException, IOException -
toActivityPubObject
public Optional<org.linkedopenactors.rdfpub.domain.commonsrdf.ActivityPubObject> toActivityPubObject(org.springframework.test.web.servlet.MvcResult mvcResultActor) throws UnsupportedEncodingException, IOException -
toActivityPubObject
public Optional<org.linkedopenactors.rdfpub.domain.commonsrdf.ActivityPubObject> toActivityPubObject(String subject, org.springframework.test.web.servlet.MvcResult mvcResultActor) throws UnsupportedEncodingException, IOException -
toActivity
public Optional<org.linkedopenactors.rdfpub.domain.commonsrdf.Activity> toActivity(String activityLocation, org.springframework.test.web.servlet.MvcResult mvcResult) throws UnsupportedEncodingException, IOException -
toInstance
public Optional<org.linkedopenactors.rdfpub.domain.commonsrdf.Instance> toInstance(org.springframework.test.web.servlet.MvcResult mvcResultActor) throws UnsupportedEncodingException, IOException -
getMockMvc
public org.springframework.test.web.servlet.MockMvc getMockMvc() -
jwt
-