Package org.apache.wss4j.policy.tests
Class AbstractTestBase
- java.lang.Object
-
- org.apache.wss4j.policy.tests.AbstractTestBase
-
- Direct Known Subclasses:
AlgorithmSuiteTest
,AsymmetricBindingTest
,ContentEncryptedElementsTest
,EncryptedElementsTest
,EncryptedPartsTest
,HttpsTokenTest
,InitiatorTokenTest
,IssuedTokenTest
,KerberosTokenTest
,KeyValueTokenTest
,LayoutTest
,PolicyNormalizationTest
,RecipientTokenTest
,RelTokenTest
,RequiredElementsTest
,RequiredPartsTest
,SamlTokenTest
,SecureConversationTokenTest
,SecurityContextTokenTest
,SignedElementsTest
,SignedPartsTest
,SpnegoContextTokenTest
,SupportingTokensTest
,SymmetricBindingTest
,TransportBindingTest
,Trust10Test
,Trust13Test
,UsernameTokenTest
,Wss10Test
,Wss11Test
,X509TokenTest
public abstract class AbstractTestBase extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLOutputFactory
xmlOutputFactory
-
Constructor Summary
Constructors Constructor Description AbstractTestBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertXMLisEqual(String actual, String expected)
protected org.apache.neethi.Policy
loadPolicy(String policy)
protected org.apache.neethi.Policy
loadPolicy(String policy, org.apache.neethi.PolicyBuilder policyBuilder)
protected String
loadPolicyFile(String classpathResource)
protected String
serializePolicy(org.apache.neethi.Policy policy)
-
-
-
Field Detail
-
xmlOutputFactory
protected XMLOutputFactory xmlOutputFactory
-
-
Method Detail
-
serializePolicy
protected String serializePolicy(org.apache.neethi.Policy policy) throws Exception
- Throws:
Exception
-
assertXMLisEqual
protected void assertXMLisEqual(String actual, String expected) throws Exception
- Throws:
Exception
-
loadPolicyFile
protected String loadPolicyFile(String classpathResource) throws Exception
- Throws:
Exception
-
loadPolicy
protected org.apache.neethi.Policy loadPolicy(String policy) throws Exception
- Throws:
Exception
-
-