Package com.alibaba.citrus.service.uribroker.uri

Examples of com.alibaba.citrus.service.uribroker.uri.ContentURIBroker


    @Test
    public void init_duplicatedBrokerName() throws Exception {
        service = new URIBrokerServiceImpl(null);
        service.setBrokers(new URIBrokerInfo[] { new URIBrokerInfo("name1", null, true, new GenericURIBroker()),
                                                 new URIBrokerInfo("name1", null, true, new ContentURIBroker()) });

        try {
            service.afterPropertiesSet();
            fail();
        } catch (IllegalArgumentException e) {
View Full Code Here


    @Test
    public void init_parentNotSuperclass() throws Exception {
        service = new URIBrokerServiceImpl(null);
        service.setBrokers(new URIBrokerInfo[] { //
                                                 new URIBrokerInfo("b4", "b1", true, new GenericURIBroker()), //
                                                 new URIBrokerInfo("b1", null, true, new ContentURIBroker()), //
        });

        // 可继承非super class
        service.afterPropertiesSet();
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.uribroker.uri.ContentURIBroker

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.