package com.devspark.robototextview.gradle

import com.android.build.gradle.AppPlugin
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Test

class RobotoTextViewPluginTest {

    @Test
    void testApply() {
        Project project = ProjectBuilder.builder().build()
        project.buildscript.repositories {
            jcenter()
        }
        project.buildscript.dependencies {
            classpath 'com.android.tools.build:gradle:2.2.0'
        }

        project.plugins.apply(AppPlugin.class)
        project.plugins.apply(RobotoTextViewPlugin.class)
    }

    @Test
    void testApplyWithoutAndroidPlugin() {
        Project project = ProjectBuilder.builder().build()
        project.plugins.apply(RobotoTextViewPlugin.class)
    }
}

Add simple test for RobotoTextViewPlugin
Add simple test for RobotoTextViewPlugin
