Package org.gradle.api.internal

Examples of org.gradle.api.internal.ConventionTask


    public abstract ConventionTask getTask();
   
    @Test
    public void testConventionAwareness() {
        ConventionTask task = getTask();
        assertThat(task.getConventionMapping(), instanceOf(ConventionAwareHelper.class));
        assertThat(task.getConventionMapping().getConvention(), sameInstance(getProject().getConvention()));

        ConventionMapping conventionMapping = context.mock(ConventionMapping.class);
        task.setConventionMapping(conventionMapping);
        assertThat(task.getConventionMapping(), sameInstance(conventionMapping));
    }
View Full Code Here


    public abstract AbstractTask getTask();

    @Test
    public void testConventionAwareness() {
        ConventionTask task = (ConventionTask) getTask();
        assertThat(task.getConventionMapping(), instanceOf(ConventionAwareHelper.class));
        ConventionAwareHelper conventionMapping = (ConventionAwareHelper) task.getConventionMapping();
        assertThat(conventionMapping.getConvention(), sameInstance(getProject().getConvention()));
    }
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.ConventionTask

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.