Package me.tatarka.androidunittest.model

Examples of me.tatarka.androidunittest.model.Variant


        return contentEntries;
    }

    @Deprecated
    protected void oldFindOrCreateContentEntries(@NotNull ModifiableRootModel model, @NotNull IdeaAndroidUnitTest androidUnitTest) {
        Variant selectedTestVariant = androidUnitTest.getSelectedTestVariant();
        if (selectedTestVariant != null) {
            setCompilerOutputPath(model, selectedTestVariant.getCompileDestinationDirectory(), true);
        }
    }
View Full Code Here


        }
    }

    @Deprecated
    protected void oldSetUpContentEntries(@NotNull Collection<ContentEntry> contentEntries, @NotNull IdeaAndroidUnitTest androidUnitTest, @NotNull List<RootSourceFolder> orphans) {
        Variant selectedTestVariant = androidUnitTest.getSelectedTestVariant();
        if (selectedTestVariant != null) {
            Collection<File> testSources = selectedTestVariant.getSourceDirectories();
            for (File source : testSources) {
                addSourceFolder(contentEntries, source, JavaSourceRootType.TEST_SOURCE, false, orphans);
            }
        }
    }
View Full Code Here

    }

    @Deprecated
    protected void oldCustomizeModule(@NotNull Module module, @NotNull Project project, @Nullable IdeaAndroidUnitTest androidUnitTest) {
        if (androidUnitTest == null) return;
        Variant selectedTestVariant = androidUnitTest.getSelectedTestVariant();
        if (selectedTestVariant != null) {
            AndroidUnitTest testDelegate = androidUnitTest.getTestDelegate();
            if (testDelegate == null) return;

            String RPackageName = testDelegate.getRPackageName();
View Full Code Here

        updateDependenciesWithJavadocSources(rootModel, androidUnitTest);
    }

    @Deprecated
    protected void oldSetUpDependencies(@NotNull ModifiableRootModel rootModel, @NotNull IdeaAndroidUnitTest androidUnitTest, @NotNull List<Message> errorsFound) {
        Variant selectedTestVariant = androidUnitTest.getSelectedTestVariant();

        if (selectedTestVariant != null) {
            for (File library : selectedTestVariant.getJavaDependencies()) {
                updateDependency(rootModel, library);
            }
            for (String gradleProjectPath : selectedTestVariant.getProjectDependencies()) {
                updateDependency(rootModel, gradleProjectPath, errorsFound);
            }
        }
    }
View Full Code Here

TOP

Related Classes of me.tatarka.androidunittest.model.Variant

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.