Examples of assertValid()


Examples of org.apache.cxf.test.TestUtilities.assertValid()

                           + "xsd:sequence/xsd:element[@nillable='true']",
                           dom);
       
        url = new URL("http://localhost:" + PORT + "/serviceWithCustomNS?wsdl");
        dom = XMLUtils.parse(url.openStream());
        util.assertValid("//wsdl:definitions[@targetNamespace='http://foo.bar.com']",
                         dom);
    }
   
    @Test
    public void testCollection() throws Exception {
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities.assertValid()

        util.addDefaultNamespaces();
        util.assertInvalid("//wsdl:definitions/wsdl:types/xsd:schema/"
                           + "xsd:complexType[@name='getRolesAsArrayResponse']/"
                           + "xsd:sequence/xsd:element[@maxOccurs]",
                           dom);
        util.assertValid("//wsdl:definitions/wsdl:types/xsd:schema/"
                           + "xsd:complexType[@name='getRolesAsArrayResponse']/"
                           + "xsd:sequence/xsd:element[@nillable='true']",
                           dom);
       
        url = new URL("http://localhost:" + PORT + "/serviceWithCustomNS?wsdl");
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities.assertValid()

                           + "xsd:sequence/xsd:element[@nillable='true']",
                           dom);
       
        url = new URL("http://localhost:" + PORT + "/serviceWithCustomNS?wsdl");
        dom = StaxUtils.read(url.openStream());
        util.assertValid("//wsdl:definitions[@targetNamespace='http://foo.bar.com']",
                         dom);
    }
   
    @Test
    public void testCollection() throws Exception {
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities.assertValid()

    public void testGeneratedWsdlNs() throws Exception {
        URL url = new URL("http://localhost:" + PORT + "/aegisJaxWsWSDLNS?wsdl");
        Document dom = StaxUtils.read(url.openStream());
        TestUtilities util = new TestUtilities(this.getClass());
        util.addDefaultNamespaces();
        util.assertValid(
                         "//wsdl:definitions[@targetNamespace"
                         + "='http://v1_1_2.rtf2pdf.doc.ws.daisy.marbes.cz']",
                         dom);
        //should be a targetNamespace for "http://wo.rtf2pdf.doc.ws.daisy.marbes.cz"
        //as VO type specified in the SEI
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities.assertValid()

                         "//wsdl:definitions[@targetNamespace"
                         + "='http://v1_1_2.rtf2pdf.doc.ws.daisy.marbes.cz']",
                         dom);
        //should be a targetNamespace for "http://wo.rtf2pdf.doc.ws.daisy.marbes.cz"
        //as VO type specified in the SEI
        util.assertValid("//wsdl:definitions/wsdl:types/xsd:schema[@targetNamespace"
                         + "='http://wo.rtf2pdf.doc.ws.daisy.marbes.cz']",
                         dom);
    }
   
    @Test
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities.assertValid()

        util.addDefaultNamespaces();
        util.assertInvalid("//wsdl:definitions/wsdl:types/xsd:schema/"
                           + "xsd:complexType[@name='getRolesAsArrayResponse']/"
                           + "xsd:sequence/xsd:element[@maxOccurs]",
                           dom);
        util.assertValid("//wsdl:definitions/wsdl:types/xsd:schema/"
                           + "xsd:complexType[@name='getRolesAsArrayResponse']/"
                           + "xsd:sequence/xsd:element[@nillable='true']",
                           dom);
       
        url = new URL("http://localhost:9002/serviceWithCustomNS?wsdl");
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities.assertValid()

                           + "xsd:sequence/xsd:element[@nillable='true']",
                           dom);
       
        url = new URL("http://localhost:9002/serviceWithCustomNS?wsdl");
        dom = XMLUtils.parse(url.openStream());
        util.assertValid("//wsdl:definitions[@targetNamespace='http://foo.bar.com']",
                         dom);
    }
   
    @Test
    public void testCollection() throws Exception {
View Full Code Here

Examples of org.hibernate.validator.ClassValidator.assertValid()

      }
      validators.put( entity, new WeakReference<ClassValidator>(validator) );
      currentValidators.add( validator );
    }
    if ( validator != NO_VALIDATOR ) {
      validator.assertValid( object );
    }
  }
}
View Full Code Here

Examples of org.hibernate.validator.ClassValidator.assertValid()

      }
      validators.put( entity, new WeakReference<ClassValidator>(validator) );
      currentValidators.add( validator );
    }
    if ( validator != NO_VALIDATOR ) {
      validator.assertValid( object );
    }
  }
}
View Full Code Here

Examples of org.hibernate.validator.ClassValidator.assertValid()

    private void validateInvalidPerson() {
        ClassValidator validator = new ClassValidator(ValidPerson.class);
        ValidPerson invalidPerson = new ValidPerson();
        invalidPerson.setAge(1981);
        validator.assertValid(invalidPerson);
    }

    public static class ValidPerson {

        private String name;
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.