Examples of duplicateFavorite()


Examples of org.gradle.gradleplugin.foundation.favorites.FavoritesEditor.duplicateFavorite()

        editFavorite(editor, favoriteTask1, "name1", false );
        editFavorite(editor, favoriteTask2, "name2", true );
        editFavorite(editor, favoriteTask3, "name3", false );

        //duplicate a single task
        FavoriteTask favoriteTask4 = editor.duplicateFavorite( favoriteTask1 );
        Assert.assertNotNull( favoriteTask4 );
        Assert.assertEquals( favoriteTask1.getFullCommandLine(), favoriteTask4.getFullCommandLine() );
        Assert.assertEquals( favoriteTask1.getDisplayName(), favoriteTask4.getDisplayName() );
        Assert.assertEquals( favoriteTask1.alwaysShowOutput(), favoriteTask4.alwaysShowOutput() );
View Full Code Here

Examples of org.gradle.gradleplugin.foundation.favorites.FavoritesEditor.duplicateFavorite()

        //there should be 4 tasks now
        Assert.assertEquals( 4, editor.getFavoriteTasks().size() );

        //now duplicate another one
        FavoriteTask favoriteTask5 = editor.duplicateFavorite( favoriteTask2 );
        Assert.assertNotNull(favoriteTask5);
        Assert.assertEquals( favoriteTask2.getFullCommandLine(), favoriteTask5.getFullCommandLine() );
        Assert.assertEquals( favoriteTask2.getDisplayName(), favoriteTask5.getDisplayName() );
        Assert.assertEquals( favoriteTask2.alwaysShowOutput(), favoriteTask5.alwaysShowOutput() );
View Full Code Here

Examples of org.gradle.gradleplugin.foundation.favorites.FavoritesEditor.duplicateFavorite()

        editFavorite(editor, favoriteTask1, "name1", false);
        editFavorite(editor, favoriteTask2, "name2", true);
        editFavorite(editor, favoriteTask3, "name3", false);

        //duplicate a single task
        FavoriteTask favoriteTask4 = editor.duplicateFavorite(favoriteTask1, new TestEditFavoriteInteraction("name4", "command4"));
        Assert.assertNotNull(favoriteTask4);
        Assert.assertEquals("command4", favoriteTask4.getFullCommandLine());
        Assert.assertEquals("name4", favoriteTask4.getDisplayName());
        Assert.assertEquals(favoriteTask1.alwaysShowOutput(), favoriteTask4.alwaysShowOutput());
View Full Code Here

Examples of org.gradle.gradleplugin.foundation.favorites.FavoritesEditor.duplicateFavorite()

        //there should be 4 tasks now
        Assert.assertEquals(4, editor.getFavoriteTasks().size());

        //now duplicate another one
        FavoriteTask favoriteTask5 = editor.duplicateFavorite(favoriteTask2, new TestEditFavoriteInteraction("name5", "command5"));
        Assert.assertNotNull(favoriteTask5);
        Assert.assertEquals("command5", favoriteTask5.getFullCommandLine());
        Assert.assertEquals("name5", favoriteTask5.getDisplayName());
        Assert.assertEquals(favoriteTask2.alwaysShowOutput(), favoriteTask5.alwaysShowOutput());
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.