Created
November 11, 2012 20:12
-
-
Save jurberg/4056102 to your computer and use it in GitHub Desktop.
Convert XML to Flat File Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sep = System.getProperty('line.separator') | |
def expected = | |
"bk101Gambardella Matthew " + sep + | |
"bk102Ralls Kim " + sep + | |
"bk103Corets Eva " + sep | |
void testParsing() { | |
def books = new XmlSlurper().parseText(data) | |
assertEquals expected, xmlToFlatFile(books, 'book', mapping) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment