|
Groovy example source code file (GStringEndTest.groovy)
The Groovy GStringEndTest.groovy source code
import org.codehaus.groovy.control.*
class GStringEndTest extends GroovyTestCase {
void testInvalidEndContainsLineNumber(){
try {
assertScript '''
def Target = "releases$"
'''
} catch (MultipleCompilationErrorsException mcee) {
def text = mcee.toString();
assert text.contains("line 2, column 41")
}
}
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy GStringEndTest.groovy source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.