Package org.apache.wookie.beans.util

Examples of org.apache.wookie.beans.util.IPersistenceManager.findAll()


        persistenceManager.begin();

        //
        // test findAll method for IWidget
        //
        IWidget [] allWidgets = persistenceManager.findAll(IWidget.class);
        assertNotNull(allWidgets);
        assertEquals(1, allWidgets.length);
       
        //
        // test findAll method for IWidgetDefault
View Full Code Here


        assertEquals(1, allWidgets.length);
       
        //
        // test findAll method for IWidgetDefault
        //
        IWidgetDefault [] allWidgetDefaults = persistenceManager.findAll(IWidgetDefault.class);
        assertNotNull(allWidgetDefaults);
        assertEquals(1, allWidgetDefaults.length);
       
        //
        // test findAll method for IWidgetService
View Full Code Here

        assertEquals(1, allWidgetDefaults.length);
       
        //
        // test findAll method for IWidgetService
        //
        IWidgetService [] widgetServices = persistenceManager.findAll(IWidgetService.class);
        assertNotNull(widgetServices);
        assertEquals(5, widgetServices.length);

        //
        // test findById  for IWidget
View Full Code Here

        //
        // Get the first existing API key
        // and first existing Widget to use as the basis of a 
        // new Widget Instance
        //
        IApiKey [] apiKeys = persistenceManager.findAll(IApiKey.class);
        String apiKey = apiKeys[0].getValue();
        IWidget [] widgets = persistenceManager.findAll(IWidget.class);
        IWidget widget = widgets[0];       
        widgetGuid = widget.getGuid();
       
View Full Code Here

        // and first existing Widget to use as the basis of a 
        // new Widget Instance
        //
        IApiKey [] apiKeys = persistenceManager.findAll(IApiKey.class);
        String apiKey = apiKeys[0].getValue();
        IWidget [] widgets = persistenceManager.findAll(IWidget.class);
        IWidget widget = widgets[0];       
        widgetGuid = widget.getGuid();
       
        //
        // check that the Widget Instance does not yet exist
View Full Code Here

        persistenceManager.begin();
       
        //
        // Get the widget instance created in the previous transaction via its "service context" (category)
        //
        apiKeys = persistenceManager.findAll(IApiKey.class);
        apiKey = apiKeys[0].getValue();
        widgets = persistenceManager.findAll(IWidget.class);
        widget = widgets[0];
        String serviceContext = widget.getWidgetTypes().iterator().next().getWidgetContext();
        IWidgetInstance widgetInstance0 = persistenceManager.findWidgetInstance(apiKey, "test", "test-shared-data-key", serviceContext);
View Full Code Here

        //
        // Get the widget instance created in the previous transaction via its "service context" (category)
        //
        apiKeys = persistenceManager.findAll(IApiKey.class);
        apiKey = apiKeys[0].getValue();
        widgets = persistenceManager.findAll(IWidget.class);
        widget = widgets[0];
        String serviceContext = widget.getWidgetTypes().iterator().next().getWidgetContext();
        IWidgetInstance widgetInstance0 = persistenceManager.findWidgetInstance(apiKey, "test", "test-shared-data-key", serviceContext);
        assertNotNull(widgetInstance0);
        widgetGuid = widget.getGuid();
View Full Code Here

        assertEquals(participants[0], participant);
       
        //
        // Get the access request created in the previous transaction
        //
        IAccessRequest [] accessRequests = persistenceManager.findAll(IAccessRequest.class);
        assertNotNull(accessRequests);
        assertEquals(1, accessRequests.length);
       
        //
        // delete all the test objects
View Full Code Here

        persistenceManager.begin();
       
        //
        // verify test deletes
        //
        IWidgetInstance [] widgetInstances = persistenceManager.findAll(IWidgetInstance.class);
        assertNotNull(widgetInstances);
        assertEquals(0, widgetInstances.length);
        participants = persistenceManager.findAll(IParticipant.class);
        assertNotNull(participants);
        assertEquals(0, participants.length);
View Full Code Here

        // verify test deletes
        //
        IWidgetInstance [] widgetInstances = persistenceManager.findAll(IWidgetInstance.class);
        assertNotNull(widgetInstances);
        assertEquals(0, widgetInstances.length);
        participants = persistenceManager.findAll(IParticipant.class);
        assertNotNull(participants);
        assertEquals(0, participants.length);
       
        //
        // rollback and close persistence manager transaction
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.