|
|
|
Re: [xtext] testing the parser [message #618906 is a reply to message #384429] |
Fri, 08 August 2008 02:39  |
Eclipse User |
|
|
|
public void testSimple() throws Exception {
InputStream in = new StringInputStream("instance (of) { my dsl }");
Node rootNode = new XtextParser(model).getRootNode();
EObject modelElement = rootNode.getModelElement();
assert(....)
}
Note that it is a good idea to use EMF's generator in order to have
static types instead of using EMF's refelection layer for assertions.
Sven
Lorenzo Bettini schrieb:
> Hi
>
> I've just started to take a look at this technology which looks really
> cool, but I was wondering how to test the parser (I mean unit tests)...
>
> thanks in advance
> Lorenzo
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02970 seconds