home | career | drupal | java | mac | mysql | perl | scala | uml | unix

Groovy example source code file (Groovy3406Test.groovy)

This example Groovy source code file (Groovy3406Test.groovy) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Groovy tags/keywords

groovy3406test, groovy3406test, groovytestcase, groovytestcase, hello, hello

The Groovy Groovy3406Test.groovy source code

class Groovy3406Test extends GroovyTestCase {
    void testBug() {    
        def str = 'hello'
        def methodName = 'toUpperCase'
        def methodOfInterest = str.metaClass.getMetaMethod(methodName)
        assert methodOfInterest.invoke(str) == "HELLO"

Other Groovy examples (source code examples)

Here is a short list of links related to this Groovy Groovy3406Test.groovy source code file:

new blog posts


Copyright 1998-2014 Alvin Alexander, alvinalexander.com
All Rights Reserved.