org.eclipse.xtext.junit.serializer
Class SerializerTester
java.lang.Object
org.eclipse.xtext.junit.serializer.SerializerTester
public class SerializerTester
- extends java.lang.Object
- Author:
- Moritz Eysholdt - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contextFinder
@Inject
protected ContextFinder contextFinder
formatter
@Inject
protected IFormatter formatter
grammar
@Inject
protected IGrammarAccess grammar
hiddenTokenSequencerProvider
@Inject
protected com.google.inject.Provider<IHiddenTokenSequencer> hiddenTokenSequencerProvider
parseHelper
@Inject
protected ParseHelper<org.eclipse.emf.ecore.EObject> parseHelper
semanticSequencerProvider
@Inject
protected com.google.inject.Provider<ISemanticSequencer> semanticSequencerProvider
serializer
@Inject
protected ISerializer serializer
syntacticSequencerProvider
@Inject
protected com.google.inject.Provider<ISyntacticSequencer> syntacticSequencerProvider
validationHelper
@Inject
protected ValidationTestHelper validationHelper
SerializerTester
public SerializerTester()
assertSerializeWithNodeModel
public void assertSerializeWithNodeModel(org.eclipse.emf.ecore.EObject semanticObject)
assertSerializeWithNodeModel
public void assertSerializeWithNodeModel(java.lang.String semanticModel)
throws java.lang.Exception
- Throws:
java.lang.Exception
assertSerializeWithoutNodeModel
public void assertSerializeWithoutNodeModel(org.eclipse.emf.ecore.EObject semanticObject)
throws java.lang.Exception
- Throws:
java.lang.Exception
assertEqualWithEmfFormatter
protected void assertEqualWithEmfFormatter(org.eclipse.emf.ecore.EObject semanticObject,
org.eclipse.emf.ecore.EObject parsed)
assertSerializeWithoutNodeModel
public void assertSerializeWithoutNodeModel(java.lang.String semanticModel)
throws java.lang.Exception
- Throws:
java.lang.Exception
getContext
protected org.eclipse.emf.ecore.EObject getContext(org.eclipse.emf.ecore.EObject semanticObject)
getTextFromNodeModel
protected java.lang.String getTextFromNodeModel(org.eclipse.emf.ecore.EObject semanticObject)
detachNodeModel
protected java.util.List<Pair<org.eclipse.emf.ecore.EObject,ICompositeNode>> detachNodeModel(org.eclipse.emf.ecore.EObject eObject)
reattachNodes
protected void reattachNodes(java.util.List<Pair<org.eclipse.emf.ecore.EObject,ICompositeNode>> nodes)