Package org.openengsb.core.api.persistence

Examples of org.openengsb.core.api.persistence.PersistenceManager


        BundleContext bundleContextMock = mock(BundleContext.class);
        Bundle bundleMock = mock(Bundle.class);
        when(bundleContextMock.getBundle()).thenReturn(bundleMock);
        TaskboxServiceImpl workflow = new TaskboxServiceImpl();
        persistenceService = mock(PersistenceService.class);
        PersistenceManager persistenceManager = mock(PersistenceManager.class);
        when(persistenceManager.getPersistenceForBundle(any(Bundle.class))).thenReturn(persistenceService);
        workflow.setPersistenceManager(persistenceManager);
        workflow.setBundleContext(bundleContextMock);
        workflow.init();

        service = new WebTaskboxServiceImpl();
View Full Code Here


    @Before
    public void init() throws Exception {
        workflowService = mock(WorkflowService.class);
        persistenceService = mock(PersistenceService.class);
        PersistenceManager persistenceManager = mock(PersistenceManager.class);
        when(persistenceManager.getPersistenceForBundle(any(Bundle.class))).thenReturn(persistenceService);

        service = new TaskboxServiceImpl();
        service.setBundleContext(mock(BundleContext.class));
        service.setWorkflowService(workflowService);
View Full Code Here

    private PersistenceTestObject element;
    private PersistenceTestObject wildcard;

    @Before
    public void setUp() throws Exception {
        PersistenceManager manager = getOsgiService(PersistenceManager.class);
        persistence = manager.getPersistenceForBundle(getBundleContext().getBundle());

        element = new PersistenceTestObject("42", 42);
        persistence.create(element);

        wildcard = new PersistenceTestObject(null, null);
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.persistence.PersistenceManager

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.