use of vendor.VendorClass in project ultimate-java by pantinor.
the class TestJaxb method testScript.
// @Test
public void testScript() throws Exception {
File file = new File("target/classes/xml/vendor.xml");
JAXBContext jaxbContext = JAXBContext.newInstance(VendorClassSet.class);
Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
VendorClassSet ss = (VendorClassSet) jaxbUnmarshaller.unmarshal(file);
for (VendorClass s : ss.getVendorClasses()) {
System.out.println(s);
}
}
Aggregations