Examples of PolymorphicShapePortType


Examples of org.apache.axis2.jaxws.polymorphic.shape.sei.PolymorphicShapePortType

  public void testFormalAndActualTypeInDifferentPackages(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    PolymorphicShapeService service = new PolymorphicShapeService();
    PolymorphicShapePortType port = service.getPolymorphicShapePort();
    Shape shapeType;

        TestLogger.logger.debug("Sending Request to draw Square");
    Square shape = new Square();
    shape.setXAxis(1);
    shape.setYAxis(1);
    shape.setLength(10);
    shapeType = port.draw(shape);
    assertTrue(shapeType instanceof Square);
        TestLogger.logger.debug("Square was drawn");

        TestLogger.logger.debug("Sending Request to draw 3D Square");
    ThreeDSquare threeDshape = new ThreeDSquare();
    threeDshape.setXAxis(1);
    threeDshape.setYAxis(1);
    threeDshape.setLength(10);
    threeDshape.setWidth(10);
    threeDshape.setBredth(10);
    shapeType = port.draw3D(threeDshape);
    assertTrue(shapeType instanceof ThreeDSquare);
        TestLogger.logger.debug("3D Square was drawn");
        TestLogger.logger.debug("-------------------------------");
  }
View Full Code Here

Examples of org.apache.axis2.jaxws.polymorphic.shape.sei.PolymorphicShapePortType

  public void testFormalAndActualTypeInDifferentPackages(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    PolymorphicShapeService service = new PolymorphicShapeService();
    PolymorphicShapePortType port = service.getPolymorphicShapePort();
        BindingProvider p = (BindingProvider) port;
        p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);

    Shape shapeType;

        TestLogger.logger.debug("Sending Request to draw Square");
    Square shape = new Square();
    shape.setXAxis(1);
    shape.setYAxis(1);
    shape.setLength(10);
    shapeType = port.draw(shape);
    assertTrue(shapeType instanceof Square);
        TestLogger.logger.debug("Square was drawn");

        TestLogger.logger.debug("Sending Request to draw 3D Square");
    ThreeDSquare threeDshape = new ThreeDSquare();
    threeDshape.setXAxis(1);
    threeDshape.setYAxis(1);
    threeDshape.setLength(10);
    threeDshape.setWidth(10);
    threeDshape.setBredth(10);
    shapeType = port.draw3D(threeDshape);
    assertTrue(shapeType instanceof ThreeDSquare);
        TestLogger.logger.debug("3D Square was drawn");
        TestLogger.logger.debug("-------------------------------");
  }
View Full Code Here

Examples of org.apache.axis2.jaxws.polymorphic.shape.sei.PolymorphicShapePortType

  public void testFormalAndActualTypeInDifferentPackages(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    PolymorphicShapeService service = new PolymorphicShapeService();
    PolymorphicShapePortType port = service.getPolymorphicShapePort();
    Shape shapeType;

        TestLogger.logger.debug("Sending Request to draw Square");
    Square shape = new Square();
    shape.setXAxis(1);
    shape.setYAxis(1);
    shape.setLength(10);
    shapeType = port.draw(shape);
    assertTrue(shapeType instanceof Square);
        TestLogger.logger.debug("Square was drawn");

        TestLogger.logger.debug("Sending Request to draw 3D Square");
    ThreeDSquare threeDshape = new ThreeDSquare();
    threeDshape.setXAxis(1);
    threeDshape.setYAxis(1);
    threeDshape.setLength(10);
    threeDshape.setWidth(10);
    threeDshape.setBredth(10);
    shapeType = port.draw3D(threeDshape);
    assertTrue(shapeType instanceof ThreeDSquare);
        TestLogger.logger.debug("3D Square was drawn");
        TestLogger.logger.debug("-------------------------------");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.