Package com.volantis.mcs.management.tracking

Examples of com.volantis.mcs.management.tracking.PageDetailsManager


        // ensure we have a clean slate
        JMXTestUtilities.removeAllMBeanServers();

        // test multiple calls to manager Factory
        PageDetailsManager pdManager1 =
                managerFactory.createPageDetailsManager();
        PageDetailsManager pdManager2 =
                managerFactory.createPageDetailsManager();

        ArrayList mBeanServers = MBeanServerFactory.findMBeanServer(null);
        assertEquals("There should only be one MBeanServer",
                1, mBeanServers.size());
View Full Code Here


        JMXTestUtilities.removeAllMBeanServers();
        PageTrackerFactory managerFactory =
                new JMXPageTrackerFactory();

        // this should have registered an MBean with a server.
        PageDetailsManager pdManager1 =
                managerFactory.createPageDetailsManager();

        PageTrackerFactory ptFactory = new JMXPageTrackerFactory();
        CanvasDetails canvasDetails = ptFactory.createCanvasDetails("TITLE",
                CanvasType.INCLUSION, "FAKE_THEME", "FAKE_LAYOUT");
        PageDetails pageDetails = ptFactory.createPageDetails(canvasDetails, "WIBBLE");
        pdManager1.addPageDetails(pageDetails);

        ArrayList mBeanServers = MBeanServerFactory.findMBeanServer(null);

        // we know this is the only MBeanServer.
        // testCreatePageDetailManager() tests for it.
View Full Code Here

     * of the PageDetailsManager each time it is called.
     * @throws Exception
     */
    public void testPageDetailsManager() throws Exception {
        PageTrackerFactory ptFactory = new JMXPageTrackerFactory();
        PageDetailsManager manager1 = ptFactory.createPageDetailsManager();
        PageDetailsManager manager2 = ptFactory.createPageDetailsManager();
        assertSame("The two PageDetailsManager objects returned should be the same",
                manager1, manager2);


    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.management.tracking.PageDetailsManager

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.