Package org.openengsb.core.test

Examples of org.openengsb.core.test.DummyModel


    @Before
    public void setUp() throws Exception {
        createDomainProviderMock(NullDomain.class, "example");
        queryInterface = mock(QueryInterface.class);
        context.putBean("queryInterface", queryInterface);
        DummyModel dummyModel = new DummyModel();
        dummyModel.setId("42");
        dummyModel.setValue("foo");
        when(queryInterface.queryByString(DummyModel.class, "id:42")).thenReturn(Arrays.asList(dummyModel));
        when(queryInterface.queryByString(DummyModel.class, "crap")).thenThrow(
            new IllegalArgumentException("illegal query"));
        ServiceList<ClassProvider> classProviders = super.makeServiceList(ClassProvider.class);
        context.putBean("modelProviders", classProviders);
View Full Code Here


        ConnectorDescription connectorDescription = new ConnectorDescription("test", "testc", attributes, properties);

        connectorManager.create(connectorDescription);

        NullDomain service = (NullDomain) serviceUtils.getService("(foo=bar)", 100L);
        DummyModel dummyModel = new DummyModel();
        dummyModel.setId("42");
        dummyModel.setValue("foo");

        NullModel nullModel = new NullModel();
        nullModel.setId(42);
        nullModel.setValue("foo");
        when(transformationEngine.performTransformation(
View Full Code Here

TOP

Related Classes of org.openengsb.core.test.DummyModel

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.