import groovy.xml.MarkupBuilder class StaticMarkupBug extends GroovyTestCase { void testBug() { doMarkup(new MarkupBuilder()) } static void doMarkup(builder) { build
http://www.codebf.com/read/171479/5395013
/** * @version $Revision: 1.4 $ */ class Bytecode6Bug extends GroovyTestCase { void testPostFixReturn() { def i = 1 def closure = { i++ } def value = closure()
http://www.codebf.com/read/171479/5395015
/** * @author John Wilson * @version $Revision: 1.11 $ */ class VariblePrecedence extends GroovyTestCase { void testVariablePrecedence() { assertScript( """ class Var
http://www.codebf.com/read/171479/5395019
/** * @author Guillaume Laforge * @version $Revision: 1.5 $ */ class GuillaumesMapBug extends GroovyTestCase { void testBug2() { def list = [1, 2, 3] def map = [:]
http://www.codebf.com/read/171479/5395022
package groovy.bugs /** * @version $Revision: 1.5 $ */ class StaticMethodCallBug extends GroovyTestCase { void testBug() { def value = TestSupport.mockStaticMethod() assert va
http://www.codebf.com/read/171479/5395025
package groovy.bugs class SubscriptOnStringArrayBug extends TestSupport { void testArraySubscript() { def array = getMockArguments() assert array[1] == "b" arr
http://www.codebf.com/read/171479/5395030
class MethodCallWithoutParensInStaticMethodBug extends GroovyTestCase { void testBug() { staticMethod() } static void staticMethod() { println 'hello'[1] } }
http://www.codebf.com/read/171479/5395032
/** * @version $Revision: 1.8 $ */ class ClosureVariableBug extends GroovyTestCase { void testClosurePassingBug() { def count = 0 def closure = { assert count == it }
http://www.codebf.com/read/171479/5395034
class SubscriptAndExpressionBug extends GroovyTestCase { void testBug() { def foo = ["nice cheese grommit"] def cheese = foo[0].startsWith("nice") as
http://www.codebf.com/read/171479/5395037
/** * @version $Revision: 1.9 $ */ class Bytecode4Bug extends GroovyTestCase { def count = 0 void testInject() { def x = [1, 2, 3].inject(0) { c, s -> c += s } assert
http://www.codebf.com/read/171479/5395038
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机