| How to test a formatting with xtend? [message #909134] |
Thu, 06 September 2012 11:40  |
Cristiano Gaviao Messages: 245 Registered: July 2009 |
Senior Member |
|
|
Hi,
could someone point me to any example on how to test a formatting?
I'm using xtend in my parser tests, so I would like to stay with it.
@Test
def void testParsingLibraryAttributes() {
val library = '''
libraryID core.base
description "My description"
creationDate "10/01/2012"
creator cvgaviao
ownership org.lunifera
}
'''.parse
assertEquals("core.base", library.getName())
assertNotNull("creationData is null", library.creationDate)
Btw, I could note that xtend editor doesn't have a formatter and I have used tab to ident the text in library val.
Would that tabs influence the formatting tests ?
thanks,
Cristiano
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01676 seconds