assertEquals("SubjectCategory?", XACMLConstants.ATTRIBUTEID_ACCESS_SUBJECT, adt.getSubjectCategory());
}
public void testCreateSubjectAttributeDesignatorType2() throws Exception
{
SubjectAttributeDesignatorType adt = PolicyAttributeFactory.createSubjectAttributeDesignatorType(
XACMLConstants.ATTRIBUTEID_CURRENT_DATE, XMLSchemaConstants.DATATYPE_DATE, "org.jboss", true,
XACMLConstants.ATTRIBUTEID_CODEBASE);
assertEquals("AttributeId?", XACMLConstants.ATTRIBUTEID_CURRENT_DATE, adt.getAttributeId());
assertEquals("DataType?", XMLSchemaConstants.DATATYPE_DATE, adt.getDataType());
assertEquals("MustBePresent?", true, adt.isMustBePresent());
assertEquals("Issuer?", "org.jboss", adt.getIssuer());
assertEquals("SubjectCategory?", XACMLConstants.ATTRIBUTEID_CODEBASE, adt.getSubjectCategory());
}