Package org.tempuri.boolean1

Examples of org.tempuri.boolean1.TestElement2


public class DecimalTest  extends TestCase {

    public void testDecimal(){
        GetHistoricNavResponse getHistoricNavResponse = new GetHistoricNavResponse();
        ArrayOfDecimal arrayOfDecimal = new ArrayOfDecimal();
        getHistoricNavResponse.setOut(arrayOfDecimal);
        arrayOfDecimal.addDecimal(null);
        arrayOfDecimal.addDecimal(null);
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.54"));

        try {
            OMElement omElement = getHistoricNavResponse.getOMElement(GetHistoricNavResponse.MY_QNAME,
                    OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
View Full Code Here


public class DecimalTest  extends TestCase {

    public void testDecimal(){
        GetHistoricNavResponse getHistoricNavResponse = new GetHistoricNavResponse();
        ArrayOfDecimal arrayOfDecimal = new ArrayOfDecimal();
        getHistoricNavResponse.setOut(arrayOfDecimal);
        arrayOfDecimal.addDecimal(null);
        arrayOfDecimal.addDecimal(null);
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.54"));

        try {
            OMElement omElement = getHistoricNavResponse.getOMElement(GetHistoricNavResponse.MY_QNAME,
                    OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
View Full Code Here


public class DecimalTest  extends TestCase {

    public void testDecimal(){
        GetHistoricNavResponse getHistoricNavResponse = new GetHistoricNavResponse();
        ArrayOfDecimal arrayOfDecimal = new ArrayOfDecimal();
        getHistoricNavResponse.setOut(arrayOfDecimal);
        arrayOfDecimal.addDecimal(null);
        arrayOfDecimal.addDecimal(null);
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.54"));

        try {
            OMElement omElement = getHistoricNavResponse.getOMElement(GetHistoricNavResponse.MY_QNAME,
                    OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("OM String ==> " + omElementString);
            XMLStreamReader xmlReader =
                    StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
            GetHistoricNavResponse result = GetHistoricNavResponse.Factory.parse(xmlReader);
            assertEquals(result.getOut().getDecimal()[0], null);
            assertEquals(result.getOut().getDecimal()[1], null);
            assertEquals(result.getOut().getDecimal()[2].toString(), "111.38");
            assertEquals(result.getOut().getDecimal()[3].toString(), "111.38");
            assertEquals(result.getOut().getDecimal()[4].toString(), "111.38");
            assertEquals(result.getOut().getDecimal()[5].toString(), "111.54");
        } catch (ADBException e) {
            fail();
        } catch (XMLStreamException e) {
            fail();
        } catch (Exception e) {
View Full Code Here


public class DecimalTest  extends TestCase {

    public void testDecimal(){
        GetHistoricNavResponse getHistoricNavResponse = new GetHistoricNavResponse();
        ArrayOfDecimal arrayOfDecimal = new ArrayOfDecimal();
        getHistoricNavResponse.setOut(arrayOfDecimal);
        arrayOfDecimal.addDecimal(null);
        arrayOfDecimal.addDecimal(null);
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.38"));
        arrayOfDecimal.addDecimal(new BigDecimal("111.54"));

        try {
            OMElement omElement = getHistoricNavResponse.getOMElement(GetHistoricNavResponse.MY_QNAME,
                    OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("OM String ==> " + omElementString);
            XMLStreamReader xmlReader =
                    StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
            GetHistoricNavResponse result = GetHistoricNavResponse.Factory.parse(xmlReader);
            assertEquals(result.getOut().getDecimal()[0], null);
            assertEquals(result.getOut().getDecimal()[1], null);
            assertEquals(result.getOut().getDecimal()[2].toString(), "111.38");
            assertEquals(result.getOut().getDecimal()[3].toString(), "111.38");
            assertEquals(result.getOut().getDecimal()[4].toString(), "111.38");
            assertEquals(result.getOut().getDecimal()[5].toString(), "111.54");
        } catch (ADBException e) {
            fail();
        } catch (XMLStreamException e) {
            fail();
        } catch (Exception e) {
View Full Code Here


public class BooleanTest extends TestCase {

    public void testBooleanTest1(){
        TestBoolean1 testBoolean = new TestBoolean1();
        testBoolean.setTestBoolean1(true);

        try {
            OMElement omElement = testBoolean.getOMElement(TestBoolean1.MY_QNAME, OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("String ==> " + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
            TestBoolean1 result = TestBoolean1.Factory.parse(xmlReader);
            assertEquals(result.getTestBoolean1(),true);
        } catch (Exception e) {
            fail();
        }
    }
View Full Code Here


public class BooleanTest extends TestCase {

    public void testBooleanTest1(){
        TestBoolean1 testBoolean = new TestBoolean1();
        testBoolean.setTestBoolean1(true);

        try {
            OMElement omElement = testBoolean.getOMElement(TestBoolean1.MY_QNAME, OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("String ==> " + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
            TestBoolean1 result = TestBoolean1.Factory.parse(xmlReader);
            assertEquals(result.getTestBoolean1(),true);
        } catch (Exception e) {
            fail();
        }
    }
View Full Code Here


public class BooleanTest extends TestCase {

    public void testBooleanTest1(){
        TestBoolean1 testBoolean = new TestBoolean1();
        testBoolean.setTestBoolean1(true);

        OMElement omElement = testBoolean.getOMElement(TestBoolean1.MY_QNAME, OMAbstractFactory.getOMFactory());
        try {
            String omElementString = omElement.toStringWithConsume();
            System.out.println("String ==> " + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
            TestBoolean1 result = TestBoolean1.Factory.parse(xmlReader);
            assertEquals(result.getTestBoolean1(),true);
        } catch (Exception e) {
            fail();
        }
    }
View Full Code Here

            fail();
        }
    }

    public void testBooleanTest2(){
        TestBoolean2 testBoolean = new TestBoolean2();
        testBoolean.setParam1(false);
        testBoolean.setAttribute1(true);

         try {
            OMElement omElement = testBoolean.getOMElement(TestBoolean2.MY_QNAME, OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("String ==> " + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
            TestBoolean2 result = TestBoolean2.Factory.parse(xmlReader);
            assertEquals(result.getParam1(),false);
            assertEquals(result.getAttribute1(),true);
        } catch (Exception e) {
            fail();
        }
    }
View Full Code Here

            fail();
        }
    }

    public void testBooleanTest2(){
        TestBoolean2 testBoolean = new TestBoolean2();
        testBoolean.setParam1(false);
        testBoolean.setAttribute1(true);

         try {
            OMElement omElement = testBoolean.getOMElement(TestBoolean2.MY_QNAME, OMAbstractFactory.getOMFactory());
            String omElementString = omElement.toStringWithConsume();
            System.out.println("String ==> " + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
            TestBoolean2 result = TestBoolean2.Factory.parse(xmlReader);
            assertEquals(result.getParam1(),false);
            assertEquals(result.getAttribute1(),true);
        } catch (Exception e) {
            fail();
        }
    }
View Full Code Here

            fail();
        }
    }

    public void testBooleanTest2(){
        TestBoolean2 testBoolean = new TestBoolean2();
        testBoolean.setParam1(false);
        testBoolean.setAttribute1(true);

        OMElement omElement = testBoolean.getOMElement(TestBoolean2.MY_QNAME, OMAbstractFactory.getOMFactory());
        try {
            String omElementString = omElement.toStringWithConsume();
            System.out.println("String ==> " + omElementString);
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
            TestBoolean2 result = TestBoolean2.Factory.parse(xmlReader);
            assertEquals(result.getParam1(),false);
            assertEquals(result.getAttribute1(),true);
        } catch (Exception e) {
            fail();
        }
    }
View Full Code Here

TOP

Related Classes of org.tempuri.boolean1.TestElement2

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.