Package org.netbeans.gradle.model.java

Examples of org.netbeans.gradle.model.java.JavaTestModel


        GenericProjectProperties properties = NbGradleProjectTreeTest.createProperties(name, fullName);
        JavaCompatibilityModel compatibility = new JavaCompatibilityModel("1.6", "1.7");
        List<JavaSourceSet> sources = Arrays.asList(createSources("main"), createSources("test"));
        List<NbListedDir> listedDirs = Arrays.asList(
                new NbListedDir("my-listed-dir", new File("listed-dir")));
        JavaTestModel testModel = JavaTestModel.getDefaulTestModel(properties.getProjectDir());

        return new NbJavaModule(properties, compatibility, sources, listedDirs, testModel);
    }
View Full Code Here


        GenericProjectProperties properties = new GenericProjectProperties(scriptDisplayName, uniqueName, moduleDir);
        JavaCompatibilityModel compatibilityModel = new JavaCompatibilityModel(sourceLevel, targetLevel);

        List<NbListedDir> listedDirs = lookupListedDirs(sourceSets);
        JavaTestModel testModel = JavaTestModel.getDefaulTestModel(moduleDir);

        return new NbJavaModule(properties, compatibilityModel, sourceSets, listedDirs, testModel);
    }
View Full Code Here

    @SuppressWarnings("serial") // don't care about serialization
    private class CustomTestsAction extends SubmenuParentAction {
        private final List<CustomTestAction> customTestTasks;

        public CustomTestsAction() {
            JavaTestModel testTasksModel = javaExt.getCurrentModel().getMainModule().getTestTasks();
            Collection<JavaTestTask> testTasks = testTasksModel.getTestTasks();
            this.customTestTasks = new ArrayList<>(testTasks.size());

            for (JavaTestTask testTask: testTasks) {
                if (!TestTaskName.DEFAULT_TEST_TASK_NAME.equals(testTask.getName())) {
                    customTestTasks.add(new CustomTestAction(testTask));
View Full Code Here

            }

            Collection<JavaSourceSet> sourceSets = adjustedSources(sourcesModel, jarsToBuildDirs);
            List<NbListedDir> listedDirs = getListedDirs(retrievedModels, projectInfo);

            JavaTestModel testModel = projectInfo.lookup(JavaTestModel.class);
            if (testModel == null) {
                LOGGER.log(Level.WARNING,
                        "Missing JavaTestModel for project {0}",
                        retrievedModels.getMainProjectDir());
                testModel = JavaTestModel.getDefaulTestModel(retrievedModels.getMainProjectDir());
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.model.java.JavaTestModel

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.