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

Groovy example source code file (Groovy3719Bug.groovy)

This example Groovy source code file (Groovy3719Bug.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

file, file, groovy3719bug, groovyshell, groovyshell, groovytestcase, nosuchmethodexception, nosuchmethodexception, string, string

The Groovy Groovy3719Bug.groovy source code

package groovy.bugs

class Groovy3719Bug extends GroovyTestCase {
    void testScriptThrowingNoSuchMethodException() {
        try {
            GroovyShell shell = new GroovyShell();
            String[] args = new String[0];
            shell.run(new File("src/test/groovy/bugs/Groovy3719Bug_script.groovy"), args);
        } catch(ex) {
            assert ex instanceof NoSuchMethodException
        }
    }
}

Other Groovy examples (source code examples)

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

new blog posts

 

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