|
Groovy example source code file (SmallTreeTest.groovy)
The Groovy SmallTreeTest.groovy source code
package groovy.tree
class SmallTreeTest extends GroovyTestCase {
def b
def EXPECTED = 'root1[attributes={}; value=[elem1[attributes={}; value=hello1]]]'
void testTree() {
b = NodeBuilder.newInstance()
def root = b.root1( {
elem1('hello1')
})
assert root != null
assert EXPECTED == root.toString()
}
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy SmallTreeTest.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.