class StringTest extends GroovyTestCase { void testString() { def s = "abcd" assert s.length() == 4 assert 4 == s.length() // test polymorphic size() meth
http://www.codebf.com/read/171479/5394979
class CompilerErrorTest extends GroovyTestCase { void testBadMethodName() { shouldFail { println "About to call shell script" println "Really am about to call she
http://www.codebf.com/read/171479/5394986
package groovy; public interface DummyInterface { public void methodWithArrayParam(String[] args); }
http://www.codebf.com/read/171479/5394988
class DoubleOperationTest extends GroovyTestCase { def x def y void testPlus() { x = 2.1 + 2.1 assert x == 4.2 x = 3 + 2.2 assert x == 5.2
http://www.codebf.com/read/171479/5394989
class MethodCallWithoutParenthesisTest extends GroovyTestCase { def flag void testMethodCallWithOneParam() { flag = false methodWithOneParam "hello"
http://www.codebf.com/read/171479/5394990
class ArrayTest extends GroovyTestCase { void testFixedSize() { def array = new String[10] assert array.size() == 10 array[0] = "Hello"
http://www.codebf.com/read/171479/5394991
/** * @author Rod Cope * @version $Revision: 1.4 $ */ class RodsBug extends GroovyTestCase { void testBug() { doTest(true) /* def x = 1 if (x > 0) {
http://www.codebf.com/read/171479/5395000
import org.codehaus.groovy.classgen.TestSupport /** * @version $Revision: 1.6 $ */ class NestedClosure2Bug extends TestSupport { Object f void testFieldBug() { def closure
http://www.codebf.com/read/171479/5395002
/** * @version $Revision: 1.4 $ */ class Bytecode7Bug extends GroovyTestCase { void testDuplicateVariables() { if (true) { def a = 123 } if (true) {
http://www.codebf.com/read/171479/5395007
import org.codehaus.groovy.classgen.TestSupport /** * @version $Revision: 1.8 $ */ class VariableScopingBug extends TestSupport { void testBug() { // undeclared variable x
http://www.codebf.com/read/171479/5395010
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机