Package io.vertx.test.core

Examples of io.vertx.test.core.EventBusTestBase$MyPOJO


        // let's make sure our test string is unmarshallable, just for a good sanity check
        JAXBContext testcontext = JAXBContext.newInstance(MyPojo.class);
        Unmarshaller testunmarshaller = testcontext.createUnmarshaller();
        JAXBElement<MyPojo> testresponse =
            (JAXBElement<MyPojo>)testunmarshaller.unmarshal(new StreamSource(new ByteArrayInputStream(xmlMyPojoWithDTD.getBytes())), MyPojo.class);
        MyPojo myPojo = testresponse.getValue();
        assertEquals("we could not unmarshal the test xml", "99999999", myPojo.getStringdata().trim());
    }
View Full Code Here


        // let's make sure our test string is unmarshallable, just for a good sanity check
        JAXBContext testcontext = JAXBContext.newInstance(MyPojo.class);
        Unmarshaller testunmarshaller = testcontext.createUnmarshaller();
        JAXBElement<MyPojo> testresponse =
            (JAXBElement<MyPojo>)testunmarshaller.unmarshal(new StreamSource(new ByteArrayInputStream(xmlMyPojoWithDTD.getBytes())), MyPojo.class);
        MyPojo myPojo = testresponse.getValue();
        assertEquals("we could not unmarshal the test xml", "99999999", myPojo.getStringdata().trim());
    }
View Full Code Here

TOP

Related Classes of io.vertx.test.core.EventBusTestBase$MyPOJO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.