Package org.openengsb.domain.example.event

Examples of org.openengsb.domain.example.event.LogEvent


        ContextHolder.get().setCurrentContextId("foo");
        WorkflowService workflowService = getOsgiService(WorkflowService.class);

        authenticate("admin", "password");
        workflowService.processEvent(new LogEvent());

        assertThat(exampleMock.wasCalled, is(true));
    }
View Full Code Here


                + "   origin.doSomethingWithMessage(\"42\");"
        );

        ContextHolder.get().setCurrentContextId("foo");
        WorkflowService workflowService = getOsgiService(WorkflowService.class);
        LogEvent event = new LogEvent();
        event.setOrigin("example2");
        authenticateAsAdmin();
        workflowService.processEvent(event);

        assertThat(exampleMock.wasCalled, is(true));
    }
View Full Code Here

        properties.put("location.42", new String[]{ "example" });

        DummyLogDomain logService = new DummyLogDomain();
        getBundleContext().registerService(clazzes, logService, properties);

        LogEvent e = new LogEvent();
        e.setName("42");

        ExampleDomainEvents exampleEvents = getOsgiService(ExampleDomainEvents.class);
        // this should be routed through the domain, which forwards it to the workflow service
        exampleEvents.raiseEvent(e);
View Full Code Here

        ContextHolder.get().setCurrentContextId("foo");
        WorkflowService workflowService = getOsgiService(WorkflowService.class);

        authenticate("admin", "password");
        workflowService.processEvent(new LogEvent());

        transformationEngine.deleteDescriptionsByFile("testDescription.transformation");
        ExampleRequestModel result = exampleMock.getModel();
        assertThat(result.getName(), is("test"));
    }
View Full Code Here

        raiseEvent(message, level);
        return "LogServiceCalled with: " + message;
    }

    private void raiseEvent(String message, String level) {
        LogEvent event = new LogEvent();
        event.setMessage(message);
        event.setLevel(level);
        domainEventInterface.raiseEvent(event);
    }
View Full Code Here

TOP

Related Classes of org.openengsb.domain.example.event.LogEvent

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.