use of org.codice.ddf.parser.xml.XmlParser in project ddf by codice.
the class XmlResponseQueueTransformerTest method setup.
@Before
public void setup() throws MimeTypeParseException {
parser = new XmlParser();
PrintWriterProvider printWriterProvider = new PrintWriterProviderImpl();
MetacardMarshaller metacardMarshaller = new MetacardMarshallerImpl(parser, printWriterProvider);
mimeType = getMimeType();
transformer = new XmlResponseQueueTransformer(parser, printWriterProvider, metacardMarshaller, mimeType);
}
use of org.codice.ddf.parser.xml.XmlParser in project ddf by codice.
the class XacmlPdpTest method setup.
@Before()
public void setup() throws PdpException, IOException {
temporaryFolder.create();
File policy = temporaryFolder.newFile("policy.xml");
FileOutputStream policyOutStream = new FileOutputStream(policy);
InputStream policyStream = XacmlPdp.class.getResourceAsStream("/policies/test-policy.xml");
IOUtils.copy(policyStream, policyOutStream);
testRealm = new XacmlPdp(new File(policy.getParent()).getAbsolutePath(), new XmlParser(), Arrays.asList("item0=item0Val1", "item1=item1Val1,item1Val2", "item2=item2Val1,item2Val2,item2Val3"), mock(SecurityLogger.class));
}
Aggregations