Class HutnTranslatorTest
- java.lang.Object
-
- org.eclipse.epsilon.hutn.translate.HutnTranslatorTest
-
- Direct Known Subclasses:
AssociationBlock
,Associations
,CaseInsensitiveSpec
,ClassifierLevelAttributes
,Containment
,ContainmentRepeatedFeatureName
,DefaultValue
,EmptyAst
,Enumerations
,InferredAttributeValue
,InferredIdentifier
,InfixAssociation
,MultiValuedAttribute
,NonExistentConfigFile
,RepeatedFeatureWithDifferentTypes
,SingleClass
,SingleClassWithAdjectives
,SingleClassWithAttributes
,SinglePackage
,SinglePackageWithSpec
,SpecWithModelFile
,TwoClasses
,TwoPackages
,Values
public abstract class HutnTranslatorTest extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
HutnTranslatorTest.Association
protected static class
HutnTranslatorTest.Reference
-
Field Summary
Fields Modifier and Type Field Description protected static String
CONFIG_FILE
-
Constructor Summary
Constructors Constructor Description HutnTranslatorTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Node
createAdjective(String text)
protected static Node
createAssociationBlock(String name, HutnTranslatorTest.Association... associations)
protected static Node
createAttribute(String name, Object... values)
protected static Node
createClass(String name)
protected static Node
createClass(String name, String identifier, int line, int col)
protected static Node
createClass(String name, String identifier, String... adjectives)
protected static Node
createClassifierLevelAttribute(String classifier, String attribute, Object... values)
protected static Node
createContainment(String name, Node... containedObjects)
protected static Node
createEnumerationAttribute(String name, String value)
protected static Node
createIdentifier(String identifier)
protected static Node
createInfixAssociation(String name, HutnTranslatorTest.Association association)
protected static Node
createNullAttribute(String name)
protected static Node
createPackage(String name)
protected static Node
createPackage(String name, int line, int col)
protected static Node
createReference(String name, HutnTranslatorTest.Reference... references)
protected static Node
getNodeObjectFor(Object value)
protected static Ast
initialiseAst()
static void
registerDefaultResourceFactory()
protected static ModelWithEolAssertions
translatorTest(Ast ast)
-
-
-
Field Detail
-
CONFIG_FILE
protected static final String CONFIG_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerDefaultResourceFactory
public static void registerDefaultResourceFactory()
-
translatorTest
protected static ModelWithEolAssertions translatorTest(Ast ast) throws Exception
- Throws:
Exception
-
initialiseAst
protected static Ast initialiseAst()
-
createClass
protected static Node createClass(String name, String identifier, String... adjectives)
-
createEnumerationAttribute
protected static Node createEnumerationAttribute(String name, String value)
-
createClassifierLevelAttribute
protected static Node createClassifierLevelAttribute(String classifier, String attribute, Object... values)
-
createReference
protected static Node createReference(String name, HutnTranslatorTest.Reference... references)
-
createInfixAssociation
protected static Node createInfixAssociation(String name, HutnTranslatorTest.Association association)
-
createAssociationBlock
protected static Node createAssociationBlock(String name, HutnTranslatorTest.Association... associations)
-
-