Class RequestedPrincipalContextPrincipalEvalTest
- java.lang.Object
-
- net.shibboleth.idp.authn.principal.impl.RequestedPrincipalContextPrincipalEvalTest
-
public class RequestedPrincipalContextPrincipalEvalTest extends Object
Tests theRequestedPrincipalContext.isAcceptable(Principal)method using a mocked up registry of evaluation predicates.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.authn.principal.UsernamePrincipalbarprivate net.shibboleth.idp.authn.principal.UsernamePrincipalbazprivate net.shibboleth.idp.authn.principal.UsernamePrincipalfooWe can test with UsernamePrincipals but actual usage would involve non-user-specific principal types.private net.shibboleth.idp.authn.context.RequestedPrincipalContextrpCtx
-
Constructor Summary
Constructors Constructor Description RequestedPrincipalContextPrincipalEvalTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestBetterKnown()voidtestBetterUnknown()voidtestExact()voidtestUnknownOperator()
-
-
-
Field Detail
-
foo
private net.shibboleth.idp.authn.principal.UsernamePrincipal foo
We can test with UsernamePrincipals but actual usage would involve non-user-specific principal types.
-
bar
private net.shibboleth.idp.authn.principal.UsernamePrincipal bar
-
baz
private net.shibboleth.idp.authn.principal.UsernamePrincipal baz
-
rpCtx
private net.shibboleth.idp.authn.context.RequestedPrincipalContext rpCtx
-
-
Method Detail
-
setUp
@BeforeClass public void setUp() throws Exception
- Throws:
Exception
-
testUnknownOperator
public void testUnknownOperator()
-
testExact
public void testExact()
-
testBetterKnown
public void testBetterKnown()
-
testBetterUnknown
public void testBetterUnknown()
-
-