Package org.apache.torque.generator.file

Examples of org.apache.torque.generator.file.Fileset


    }

    @Test
    public void testFilelistDoubleDotsLeavingBaseDir() throws IOException
    {
        Fileset fileset = new Fileset(
                new File(TEST_BASE_DIR, "subfolder"),
                createSetFrom("../1.properties"),
                null);
        assertFileListEquals(
                fileset,
View Full Code Here


    }

    @Test
    public void testFilelistAllNull() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                null,
                null);
        List<File> fileList = fileset.getFiles();
        Iterator<File> fileIt = fileList.iterator();
        while (fileIt.hasNext())
        {
            File file = fileIt.next();
            if (file.getPath().indexOf(".svn") != -1)
View Full Code Here

    }

    @Test
    public void testFilelistAllEmpty() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                new HashSet<String>(),
                new HashSet<String>());
        List<File> fileList = fileset.getFiles();
        Iterator<File> fileIt = fileList.iterator();
        while (fileIt.hasNext())
        {
            File file = fileIt.next();
            if (file.getPath().indexOf(".svn") != -1)
View Full Code Here

    }

    @Test
    public void testFilelistExcludeInBasedir() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("*"),
                createSetFrom("11.properties"));
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistExcludeInSubdir() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("subfolder/*"),
                createSetFrom("subfolder/2.properties"));
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistExcludeWithBackslashes() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("subfolder/*"),
                createSetFrom("subfolder\\2.properties"));
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistExcludeAsteriskSubdir() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("subfolder/*"),
                createSetFrom("*/2.properties"));
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistExcludeQuestionMarkSubdir() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("subfolder/*"),
                createSetFrom("su??old?r/2.properties"));
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistExcludeDot() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("subfolder/*"),
                createSetFrom("su??old?r/./2.properties"));
        assertFileListEquals(
                fileset,
View Full Code Here

    }

    @Test
    public void testFilelistExcludeDoubleDot() throws IOException
    {
        Fileset fileset = new Fileset(
                TEST_BASE_DIR,
                createSetFrom("*"),
                createSetFrom("subfolder/../11.properties"));
        assertFileListEquals(
                fileset,
View Full Code Here

TOP

Related Classes of org.apache.torque.generator.file.Fileset

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.