Package com.alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl

Examples of com.alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl.URIBrokerInfo


        assertBrokerRequestAware(service, false);
    }

    private void assertBrokerRequestAware(URIBrokerServiceImpl service, boolean expectedRequestAware) throws Exception {
        service.setBrokers(new URIBrokerInfo[] { new URIBrokerInfo("test", null, true, new GenericURIBroker()) });
        service.afterPropertiesSet();

        assertEquals(expectedRequestAware, service.getURIBrokerInternal("test").isRequestAware());
    }
View Full Code Here


        } catch (IllegalArgumentException e) {
            assertThat(e, exception("broker"));
        }

        service = new URIBrokerServiceImpl(null);
        service.setBrokers(new URIBrokerInfo[] { new URIBrokerInfo("name", null, true, null) });

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

    }

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

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

    }

    @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_cyclicDepends() throws Exception {
        service = new URIBrokerServiceImpl(null);
        service.setBrokers(new URIBrokerInfo[] { //
                                                 new URIBrokerInfo("b4", "b1", true, new GenericURIBroker()), //
                                                 new URIBrokerInfo("b1", "b2", true, new GenericURIBroker()), //
                                                 new URIBrokerInfo("b2", "b3", true, new GenericURIBroker()), //
                                                 new URIBrokerInfo("b3", "b1", true, new GenericURIBroker()), //
        });

        try {
            service.afterPropertiesSet();
            fail();
View Full Code Here

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

        try {
            service.afterPropertiesSet();
            fail();
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.impl.URIBrokerServiceImpl.URIBrokerInfo

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.