Package org.drools.scm

Examples of org.drools.scm.ScmActionFactory.listEntries()


                        -1,
                        baos );
        assertTrue( Arrays.equals( content,
                                   baos.toByteArray() ) );

        List list = convertToStringList( svn.listEntries( "" ) );

        assertFalse( list.contains( "folder1" ) );
        assertFalse( list.contains( "folder1/file1.dat" ) );
        assertTrue( list.contains( "folder2/file1.dat" ) );
    }
View Full Code Here


                                         "file1.dat",
                                         content );
        actions.addScmAction( addFile );
        svn.execute( actions,
                     "test message" );
        List list = convertToStringList( svn.listEntries( "" ) );
        assertTrue( list.contains( "folder1" ) );
        assertTrue( list.contains( "folder1/file1.dat" ) );

        // Now do the file delete
        actions = new CompositeScmAction();
View Full Code Here

        ScmAction deleteFile = new DeleteFile( "folder1",
                                               "file1.dat" );
        actions.addScmAction( deleteFile );
        svn.execute( actions,
                     "test message" );
        list = convertToStringList( svn.listEntries( "" ) );
        assertTrue( list.contains( "folder1" ) );
        assertFalse( list.contains( "folder1/file1.dat" ) );
    }

    public void testDeleteDirectory() throws Exception {
View Full Code Here

        addDirectory = new AddDirectory( "",
                                      "folder2" );
        actions.addScmAction( addDirectory );
        svn.execute( actions,
                     "test message" );
        List list = convertToStringList( svn.listEntries( "" ) );
        assertTrue( list.contains( "folder1" ) );
        assertTrue( list.contains( "folder1/file1.dat" ) );
        assertTrue( list.contains( "folder2" ) );

        // now do the directory delete       
View Full Code Here

        actions = new CompositeScmAction();
        ScmAction deleteDirectory = new DeleteDirectory( "folder1" );
        actions.addScmAction( deleteDirectory );
        svn.execute( actions,
                     "test message" );
        list = convertToStringList( svn.listEntries( "" ) );
        assertFalse( list.contains( "folder1" ) );
        assertFalse( list.contains( "folder1/file1.dat" ) );
        assertTrue( list.contains( "folder2" ) );
    }
   
View Full Code Here

        svn.execute( actions,
                     "test message" );
        //------
        // Now test results
        //-------               
        List list = convertToStringList( svn.listEntries( "" ) );

        assertTrue( list.contains( "folder1" ) );
        assertTrue( list.contains( "folder1/folder1_1" ) );
        assertTrue( list.contains( "folder1/folder1_2" ) );
        assertTrue( list.contains( "folder2/folder2_1" ) );
View Full Code Here

                        baos );
        assertTrue( Arrays.equals( new byte[]{0, 0, 0, 0},
                                   baos.toByteArray() ) );

        // Check the directories are correctly created
        List list = convertToStringList( svn.listEntries( "" ) );
        assertTrue( list.contains( "folder1" ) );
        assertTrue( list.contains( "folder1/file1.dat" ) );
        assertTrue( list.contains( "folder1/folder1_1" ) );
        assertTrue( list.contains( "folder1/folder1_1/file1_1.dat" ) );
    }
View Full Code Here

                        baos );
        assertTrue( Arrays.equals( newContent,
                                   baos.toByteArray() ) );

        // Check the correct directory structue was created
        List list = convertToStringList( svn.listEntries( "" ) );
        assertTrue( list.contains( "folder1" ) );
        assertTrue( list.contains( "folder1/file1.dat" ) );
    }

    public void testCopyFile() throws Exception {
View Full Code Here

                        -1,
                        baos );
        assertTrue( Arrays.equals( content,
                                   baos.toByteArray() ) );

        List list = convertToStringList( svn.listEntries( "" ) );
        assertTrue( list.contains( "folder1" ) );
        assertTrue( list.contains( "folder1/file1.dat" ) );
        assertFalse( list.contains( "folder2/file2.dat" ) );

        // Now copy the file
View Full Code Here

                        -1,
                        baos );
        assertTrue( Arrays.equals( content,
                                   baos.toByteArray() ) );

        list = convertToStringList( svn.listEntries( "" ) );
        assertTrue( list.contains( "folder1" ) );
        assertTrue( list.contains( "folder1/file1.dat" ) );
        assertTrue( list.contains( "folder2/file2.dat" ) );
    }
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.