github.com/c-darwin/mobile@v0.0.0-20160313183840-ff625c46f7c9/misc/androidstudio/src/test/groovy/org/golang/mobile/GobindTaskTest.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 GobindTaskTest { 15 @Test 16 public void canAddTaskToProject() { 17 Project project = ProjectBuilder.builder().build() 18 def task = project.task('gobind', type: GobindTask) 19 assertTrue(task instanceof GobindTask) 20 } 21 }