Package eu.scape_project.planning.manager

Examples of eu.scape_project.planning.manager.DigitalObjectManager.moveDataToStorage()


        when(byteStreamManager.store(null, content.getBytes())).thenReturn("myPid");

        // execute test
        DigitalObjectManager digitalObjectManager = new DigitalObjectManager();
        digitalObjectManager.setByteStreamManager(byteStreamManager);
        digitalObjectManager.moveDataToStorage(object);

        // verify results
        assertNull(object.getData().getData());
        assertEquals("myPid", object.getPid());
        assertTrue(object.getSizeInBytes() > 0);
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.