Package org.gradle.openapi.external.foundation

Examples of org.gradle.openapi.external.foundation.GradleInterfaceVersion2


        String actualVersion = ((GradleInterfaceVersion2) singlePane.getGradleInterfaceVersion1()).getVersion();
        assertEquals(version, actualVersion);

        singlePane.setCurrentDirectory(currentDir);

        GradleInterfaceVersion2 gradleInterface = (GradleInterfaceVersion2) singlePane.getGradleInterfaceVersion1();

        BlockingRequestObserver testRequestObserver = new BlockingRequestObserver(RequestVersion1.REFRESH_TYPE);
        gradleInterface.addRequestObserver(testRequestObserver);

        singlePane.aboutToShow();

        gradleInterface.refreshTaskTree();

        testRequestObserver.waitForRequestExecutionComplete(80, TimeUnit.SECONDS);

        assertEquals(String.format("Execution failed%n%s", testRequestObserver.getOutput()), 0, (long) testRequestObserver.getResult());

        List<ProjectVersion1> rootProjects = gradleInterface.getRootProjects();
        assertTrue(!rootProjects.isEmpty());

        ProjectVersion1 rootProject = rootProjects.get(0);
        assertEquals(3, rootProject.getSubProjects().size());
View Full Code Here

TOP

Related Classes of org.gradle.openapi.external.foundation.GradleInterfaceVersion2

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.