Package com.alibaba.citrus.springext.support

Examples of com.alibaba.citrus.springext.support.SpringSchemasSourceInfo


        Schema beansSchema = names.get("www.springframework.org/schema/beans/spring-beans-2.5.xsd");
        resource = assertSourceInfoAndGetResource(beansSchema, SpringPluggableSchemaSourceInfo.class);
        assertResource("org/springframework/beans/factory/xml/spring-beans-2.5.xsd", resource);

        SpringSchemasSourceInfo parent = ((SpringPluggableSchemaSourceInfo) beansSchema).getParent();
        resource = assertSourceInfoAndGetResource(parent, SpringSchemasSourceInfo.class);
        assertNull(parent.getParent());
        assertTrue(resource.getURL().toExternalForm().endsWith("META-INF/spring.schemas"));

        String content = StreamUtil.readText(resource.getInputStream(), "UTF-8", true);
        assertTrue(content.contains("org/springframework/beans/factory/xml/spring-beans-2.5.xsd"));
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.springext.support.SpringSchemasSourceInfo

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.