Package com.google.code.mojo.license

Examples of com.google.code.mojo.license.LicenseRemoveMojo


    }

    @Test
    public void remove_missing_header() throws Exception
    {
        LicenseRemoveMojo mojo = new LicenseRemoveMojo()
        {
            {
                super.includes = new String[] {"**/Java*.java"};
                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 = "check_after_add")
    public void remove_header() throws Exception
    {
        LicenseRemoveMojo mojo = new LicenseRemoveMojo()
        {
            {
                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.google.code.mojo.license.LicenseRemoveMojo

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.