Package org.gradle.gradleplugin.foundation.filters

Examples of org.gradle.gradleplugin.foundation.filters.ProjectAndTaskFilter


     */
    public void testTaskFiltering() {
        //filter out tasks named 'lib'
        BasicFilterEditor editor = new BasicFilterEditor();
        editor.hideTasksByName("lib");
        ProjectAndTaskFilter filter = editor.createFilter();

        TestVisitor testVisitor = new TestVisitor();
        TaskTreePopulationVisitor.visitProjectAndTasks(buildInformation.getProjects(), testVisitor, filter, null);

        testVisitor.setExpectedProjects(myRootProject, mySubProject1, mySubSubProject, mySubProject2);
View Full Code Here


     * This tests filtering out a project. We expect all tasks, sub projects and sub project's tasks to be hidden.
     */
    public void testProjectFiltering() {
        BasicFilterEditor editor = new BasicFilterEditor();
        editor.hideProjectsByName("mysubproject1");
        ProjectAndTaskFilter filter = editor.createFilter();

        TestVisitor testVisitor = new TestVisitor();

        TaskTreePopulationVisitor.visitProjectAndTasks(buildInformation.getProjects(), testVisitor, filter, null);

View Full Code Here

     */
    public void testTaskFiltering() {
        //filter out tasks named 'lib'
        BasicFilterEditor editor = new BasicFilterEditor();
        editor.hideTasksByName("lib");
        ProjectAndTaskFilter filter = editor.createFilter();

        TestVisitor testVisitor = new TestVisitor();
        TaskTreePopulationVisitor.visitProjectAndTasks(buildInformation.getProjects(), testVisitor, filter, null);

        testVisitor.setExpectedProjects(myRootProject, mySubProject1, mySubSubProject, mySubProject2);
View Full Code Here

     * This tests filtering out a project. We expect all tasks, sub projects and sub project's tasks to be hidden.
     */
    public void testProjectFiltering() {
        BasicFilterEditor editor = new BasicFilterEditor();
        editor.hideProjectsByName("mysubproject1");
        ProjectAndTaskFilter filter = editor.createFilter();

        TestVisitor testVisitor = new TestVisitor();

        TaskTreePopulationVisitor.visitProjectAndTasks(buildInformation.getProjects(), testVisitor, filter, null);

View Full Code Here

TOP

Related Classes of org.gradle.gradleplugin.foundation.filters.ProjectAndTaskFilter

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.