github.com/c-darwin/mobile@v0.0.0-20160313183840-ff625c46f7c9/misc/androidstudio/src/test/groovy/org/golang/mobile/GobindPluginTest.groovy (about)

     1  /**
     2   * Copyright 2015 The Go Authors. All rights reserved.
     3   * Use of this source code is governed by a BSD-style
     4   * license that can be found in the LICENSE file.
     5   */
     6  
     7  package org.golang.mobile
     8  
     9  import org.junit.Test
    10  import org.gradle.testfixtures.ProjectBuilder
    11  import org.gradle.api.Project
    12  import static org.junit.Assert.*
    13  
    14  class GobindPluginTest {
    15      @Test
    16      public void gobindPluginAddsGobindTaskToProject() {
    17          Project project = ProjectBuilder.builder().build()
    18          project.apply plugin: 'org.golang.mobile.bind'
    19  
    20          assertTrue(project.tasks.gobind instanceof GobindTask)
    21      }
    22  }