Package org.openengsb.core.api.model

Examples of org.openengsb.core.api.model.ConnectorDescription


        selectContext(2); // one

        tester.clickLink("wiringForm:wireButton");

        tester.assertNoErrorMessage();
        ConnectorDescription description = serviceManager.getAttributeValues(testdomainConnectorId);
        Map<String, Object> props = description.getProperties();
        assertThat(props, hasKey("location.one"));
        Object[] array = (Object[]) props.get("location.one");
        assertThat(array.length, is(2));
        assertThat(array, hasItemInArray((Object) globTest));
    }
View Full Code Here


        selectContext(3); // two

        tester.clickLink("wiringForm:wireButton");

        tester.assertNoErrorMessage();
        ConnectorDescription description = serviceManager.getAttributeValues(testdomainConnectorId);
        Map<String, Object> props = description.getProperties();
        assertThat(props, hasKey("location.two"));
        Object[] array = (Object[]) props.get("location.two");
        assertThat(array.length, is(3));
        assertThat(array, hasItemInArray((Object) globTest));
    }
View Full Code Here

        selectContext(4); // twotimes1

        tester.clickLink("wiringForm:wireButton");

        tester.assertNoErrorMessage();
        ConnectorDescription description = serviceManager.getAttributeValues(testdomainConnectorId);
        assertThat(description.getProperties().get("location.twotimes1"),
            is(startproperties.get("location.twotimes1")));
    }
View Full Code Here

        selectContext(5); // twotimes2

        tester.clickLink("wiringForm:wireButton");

        tester.assertNoErrorMessage();
        ConnectorDescription description = serviceManager.getAttributeValues(testdomainConnectorId);
        assertThat(description.getProperties().get("location.twotimes2"),
            is(startproperties.get("location.twotimes2")));
    }
View Full Code Here

        tester.clickLink("wiringForm:wireButton");

        tester.assertNoErrorMessage();
        verify(ruleManager).addGlobal(TestDomainInterface.class.getCanonicalName(), "newGlob");
        ConnectorDescription description = serviceManager.getAttributeValues(testdomainConnectorId);
        assertThat(description.getProperties(), hasEntry("location.bar", (Object) "newGlob"));
    }
View Full Code Here

        selectContext(2); // one

        tester.clickLink("wiringForm:wireButton");

        tester.assertNoErrorMessage();
        ConnectorDescription description = serviceManager.getAttributeValues(testdomainConnectorId);
        assertThat(description.getProperties().get("location.one"), is(startproperties.get("location.one")));
    }
View Full Code Here

        selectContext(6); // foo

        tester.clickLink("wiringForm:wireButton");

        tester.assertNoErrorMessage();
        ConnectorDescription description = serviceManager.getAttributeValues(testdomainConnectorId);
        assertThat(description.getProperties(), hasEntry("location.bar", (Object) globTest));
        assertThat(description.getProperties(), hasEntry("location.foo", (Object) globTest));
    }
View Full Code Here

        properties.put("location.two", new Object[]{ "foo", "bar" });
        properties.put("location.twotimes1", globTest);
        properties.put("location.twotimes2", new Object[]{ "foo", globTest });
        startproperties = new HashMap<String, Object>(properties);
        testdomainConnectorId =
            serviceManager.create(new ConnectorDescription("testdomain", "testconnector", attributes, properties));
    }
View Full Code Here

    @Test
    public void testIfValuesOfAttributesAreShown_shouldShowAttributeValues() throws Exception {
        Map<String, String> attributes = new HashMap<String, String>();
        attributes.put("a", "testValue");
        String connectorId = serviceManager.create(
            new ConnectorDescription("testdomain", "testconnector", attributes, null));
        PageParameters pageParameters = new PageParameters();
        pageParameters.set("domainType", "testdomain");
        pageParameters.set("connectorType", "testconnector");
        pageParameters.set("id", connectorId);
        tester.startPage(ConnectorEditorPage.class, pageParameters);
View Full Code Here

    @Test
    public void testEditService_shouldUpdateService() throws Exception {
        Map<String, Object> props = new Hashtable<String, Object>();
        props.put("test", "val");
        String id = serviceManager.create(new ConnectorDescription("testdomain", "testconnector", null, props));

        try {
            serviceUtils.getService("(test=val)", 100L);
        } catch (OsgiServiceNotAvailableException e) {
            fail("something is wrong, the servicemanager does not work properly");
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.model.ConnectorDescription

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.