Package com.mathieucarbou.mojo.license

Examples of com.mathieucarbou.mojo.license.LicenseFormatMojo


    }

    @Test(dependsOnMethods = "test_check_before")
    public void test_add() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents");
                super.header = new File("target/documents/header.txt");
                super.excludes = new String[] {"*.svn-base"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2008");
                        put("email", "mathieu.carbou@gmail.com");
                    }

                };
                super.mapping = new HashMap<String, String>()
                {
                    {
                        put("toto", "xml");
                    }
                };
            }
        };
        mojo.execute();
    }
View Full Code Here


    }

    @Test(dependsOnMethods = "test_check_before_update")
    public void test_update() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents");
                super.header = new File("target/documents/header.txt");
                super.excludes = new String[] {"*.svn-base"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2010");
                        put("email", "mathieu.carbou@gmail.com");
                    }

                };
                super.mapping = new HashMap<String, String>()
                {
                    {
                        put("toto", "xml");
                    }
                };
            }
        };
        mojo.execute();
    }
View Full Code Here

    }

    @Test(dependsOnMethods = "check_before_add")
    public void add_header() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents1");
                super.header = "target/documents1/header.txt";
                super.excludes = new String[] {"*.svn-base", "*header.txt"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2008");
                        put("email", "mathieu.carbou@gmail.com");
                    }

                };
                super.mapping = new HashMap<String, String>()
                {
                    {
                        put("toto", "xml");
                    }
                };
            }
        };
        mojo.execute();
    }
View Full Code Here

    }

    @Test(dependsOnMethods = "test_check_before")
    public void test_add() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents");
                super.header = "target/documents/header.txt";
                super.excludes = new String[] {"*.svn-base", "*header.txt"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2008");
                        put("email", "mathieu.carbou@gmail.com");
                    }

                };
                super.mapping = new HashMap<String, String>()
                {
                    {
                        put("toto", "xml");
                    }
                };
            }
        };
        mojo.execute();
    }
View Full Code Here

    }

    @Test(dependsOnMethods = "test_check_before_update")
    public void test_update() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents");
                super.header = "target/documents/header.txt";
                super.excludes = new String[] {"*.svn-base", "*header.txt"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2010");
                        put("email", "mathieu.carbou@gmail.com");
                    }

                };
                super.mapping = new HashMap<String, String>()
                {
                    {
                        put("toto", "xml");
                    }
                };
            }
        };
        mojo.execute();
    }
View Full Code Here

    }

    @Test(dependsOnMethods = "test_check_before")
    public void test_add() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents");
                super.header = "target/documents/other-header.txt";
                super.includes = new String[] {"**/MockIP.java"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2008");
                        put("email", "test@gmail.com");
                    }

                };
            }
        };
        mojo.execute();
    }
View Full Code Here

    }

    @Test(dependsOnMethods = "test_check_before_update")
    public void test_update() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents");
                super.header = "target/documents/other-header.txt";
                super.includes = new String[] {"**/MockIP.java"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2010");
                        put("email", "test@gmail.com");
                    }

                };
            }
        };
        mojo.execute();
    }
View Full Code Here

    }

    @Test(dependsOnMethods = "test_check_before")
    public void test_add() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents");
                super.header = new File("src/etc/header.txt");
                super.excludes = new String[] {"*.svn-base"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2008");
                        put("email", "mathieu.carbou@gmail.com");
                    }

                };
                super.mapping = new HashMap<String, String>()
                {
                    {
                        put("toto", "xml");
                    }
                };
            }
        };
        mojo.execute();
    }
View Full Code Here

    }

    @Test(dependsOnMethods = "test_check_before_update")
    public void test_update() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents");
                super.header = new File("src/etc/header.txt");
                super.excludes = new String[] {"*.svn-base"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2010");
                        put("email", "mathieu.carbou@gmail.com");
                    }

                };
                super.mapping = new HashMap<String, String>()
                {
                    {
                        put("toto", "xml");
                    }
                };
            }
        };
        mojo.execute();
    }
View Full Code Here

    }

    @Test(dependsOnMethods = "check_before_add")
    public void add_header() throws Exception
    {
        LicenseFormatMojo mojo = new LicenseFormatMojo()
        {
            {
                super.basedir = new File("target/documents1");
                super.header = "target/documents1/header.txt";
                super.excludes = new String[] {"*.svn-base", "*header.txt"};
                super.properties = new HashMap<String, String>()
                {
                    {
                        put("year", "2008");
                        put("email", "mathieu.carbou@gmail.com");
                    }

                };
                super.mapping = new HashMap<String, String>()
                {
                    {
                        put("toto", "xml");
                    }
                };
            }
        };
        mojo.execute();
    }
View Full Code Here

TOP

Related Classes of com.mathieucarbou.mojo.license.LicenseFormatMojo

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.