Examples of MarkerListenerImpl


Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

        newFolder.createFolder();
        assertTrue(newFolder.exists());

        // copy dummyDataFileSrc into newFolder

        VFSUtil.copy(dummyDataFileSrc, newFolder, new MarkerListenerImpl(), doThirdPartyTransferForTwoGridFtpFileObjects);

        // get a handle on the transfered file
        FileObject dummyDataFileCopy = newFolder.resolveFile(dummyFileDirName);

        // test content is identical
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

            // check that the directorty is empty
            assertTrue(children.length == 0);

            // copy dummyDataFileSrc into newFolder
            VFSUtil.copy(dummyDataFileSrc, newFolder, new MarkerListenerImpl(), doThirdPartyTransferForTwoGridFtpFileObjects);

            // check that the newFolder now contains one file !
            children = newFolder.getChildren();
            assertTrue(children.length == 1);
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

            FileObject[] children = relativeToFODest.getChildren();
            int preChildrenLength = children.length;


            // copy dummyDataFileSrc into existing folder
            VFSUtil.copy(dummyDataFileSrc, relativeToFODest, new MarkerListenerImpl(), doThirdPartyTransferForTwoGridFtpFileObjects);

            // check that the existing folder now contains one extra file !
            children = relativeToFODest.getChildren();
            int newChildrenLength = children.length;
            assertTrue((preChildrenLength + 1) == newChildrenLength);
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

            // first create an IMAGINARY 'place holder' file on the target  (could give new name here)
            dummyDataFileCopy = relativeToFODest.resolveFile(dummyFileDirName);
            dummyDataFileCopy.createFile();
            // and copy the source data to the target file
            VFSUtil.copy(dummyDataFileSrc, dummyDataFileCopy, new MarkerListenerImpl(),  doThirdPartyTransferForTwoGridFtpFileObjects);
            // test content is identical
            assertEquals(FileType.FILE, dummyDataFileCopy.getType());
            if (assertContent) {
                this.assertSameContent(content, dummyDataFileCopy);
            }
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

        assertEquals(FileType.FOLDER, dummyDataDirCopy.getType());
        System.out.println("Yes, you've just created a folder!");

        System.out.println("About to copy..");
        // copy the source data to the target
        VFSUtil.copy(dummyDataDirSrc, dummyDataDirCopy,new MarkerListenerImpl(), doThirdPartyTransferForTwoGridFtpFileObjects);

        // delete directory heirarchies at both source and target and assert
        // number of files deleted == number of files created/copied.
        int numbDeletedSrc = dummyDataDirSrc.delete(new AllFileSelector());
        int numbDeletedCopy = dummyDataDirCopy.delete(new AllFileSelector());
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

        newFolder.createFolder();
        assertTrue(newFolder.exists());

        // copy dummyDataFileSrc into newFolder

        VFSUtil.copy(dummyDataFileSrc, newFolder, new MarkerListenerImpl(), doThirdPartyTransferForTwoGridFtpFileObjects);

        // get a handle on the transfered file
        FileObject dummyDataFileCopy = newFolder.resolveFile(dummyFileDirName);

        // test content is identical
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

            // check that the directorty is empty
            assertTrue(children.length == 0);

            // copy dummyDataFileSrc into newFolder
            VFSUtil.copy(dummyDataFileSrc, newFolder, new MarkerListenerImpl(), doThirdPartyTransferForTwoGridFtpFileObjects);

            // check that the newFolder now contains one file !
            children = newFolder.getChildren();
            assertTrue(children.length == 1);
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

            FileObject[] children = relativeToFODest.getChildren();
            int preChildrenLength = children.length;


            // copy dummyDataFileSrc into existing folder
            VFSUtil.copy(dummyDataFileSrc, relativeToFODest, new MarkerListenerImpl(), doThirdPartyTransferForTwoGridFtpFileObjects);

            // check that the existing folder now contains one extra file !
            children = relativeToFODest.getChildren();
            int newChildrenLength = children.length;
            assertTrue((preChildrenLength + 1) == newChildrenLength);
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

            // first create an IMAGINARY 'place holder' file on the target  (could give new name here)
            dummyDataFileCopy = relativeToFODest.resolveFile(dummyFileDirName);
            dummyDataFileCopy.createFile();
            // and copy the source data to the target file
            VFSUtil.copy(dummyDataFileSrc, dummyDataFileCopy, new MarkerListenerImpl(),  doThirdPartyTransferForTwoGridFtpFileObjects);
            // test content is identical
            assertEquals(FileType.FILE, dummyDataFileCopy.getType());
            if (assertContent) {
                this.assertSameContent(content, dummyDataFileCopy);
            }
View Full Code Here

Examples of uk.ac.dl.escience.vfs.util.MarkerListenerImpl

        FileObject dummyDataDirCopy = relativeToFODest.resolveFile(dummyFileDirName);
        dummyDataDirCopy.createFolder();
        assertEquals(FileType.FOLDER, dummyDataDirCopy.getType());

        // copy the source data to the target
        VFSUtil.copy(dummyDataDirSrc, dummyDataDirCopy,new MarkerListenerImpl(), doThirdPartyTransferForTwoGridFtpFileObjects);

        // delete directory heirarchies at both source and target and assert
        // number of files deleted == number of files created/copied.
        int numbDeletedSrc = dummyDataDirSrc.delete(new AllFileSelector());
        int numbDeletedCopy = dummyDataDirCopy.delete(new AllFileSelector());
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.