Package org.apache.roller.weblogger.business.jpa

Examples of org.apache.roller.weblogger.business.jpa.JPAMediaFileManagerImpl


            testUser = TestUtils.setupUser("mediaFileTestUser");
            testWeblog1 = TestUtils.setupWeblog("testblog1", testUser);
            testWeblog2 = TestUtils.setupWeblog("testblog2", testUser);

            MediaFileManager mgr = WebloggerFactory.getWeblogger().getMediaFileManager();
            JPAMediaFileManagerImpl mmgr = (JPAMediaFileManagerImpl) mgr;

            assertTrue("Upgrade required", mmgr.isFileStorageUpgradeRequired());

            mmgr.upgradeFileStorage();
            TestUtils.endSession(true);

            assertFalse("Upgrade required", mmgr.isFileStorageUpgradeRequired());

            // now, let's check to see if migration was sucessful

            MediaFileDirectory root1 = mgr.getMediaFileRootDirectory(testWeblog1);
            assertNotNull("testblog1's mediafile dir exists", root1);
View Full Code Here

TOP

Related Classes of org.apache.roller.weblogger.business.jpa.JPAMediaFileManagerImpl

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.