Class ObjectModelBuilderTest
- java.lang.Object
-
- org.nuiton.eugene.models.object.xml.ObjectModelBuilderTest
-
public class ObjectModelBuilderTest extends Object
ObjectModelBuilder Created: 3 nov. 2009- Author:
- Florian Desbois - desbois@codelutin.com
-
-
Constructor Summary
Constructors Constructor Description ObjectModelBuilderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testAddAssociation()
Test of addAssociation method, of class ObjectModelBuilder.void
testAddAttribute()
Test of addAttribute method, of class ObjectModelBuilder.void
testAddAttributeWithoutDefaultValue()
Test of addAttribute method, of class ObjectModelBuilder.void
testAddException()
Test of addException method, of class ObjectModelBuilder.void
testAddInterface()
Test of addInterface method, of class ObjectModelBuilder.void
testAddOperation()
Test of addOperation method, of class ObjectModelBuilder.void
testAddParameter()
Test of addParameter method, of class ObjectModelBuilder.void
testAddReverseAssociation()
Test of addReverseAssociation method, of class ObjectModelBuilder.void
testAddStereotype()
Test of addStereotype method, of class ObjectModelBuilder.void
testAddSuperclass()
Test of addSuperclass method, of class ObjectModelBuilder.void
testAddTagValue()
Test of addTagValue method, of class ObjectModelBuilder.void
testCreateAssociationClass()
Test of createAssociationClass method, of class ObjectModelBuilder.void
testCreateClass()
Test of createClass method, of class ObjectModelBuilder.void
testCreateInterface()
Test of createInterface method, of class ObjectModelBuilder.void
testGetModel()
Test of getModel method, of class ObjectModelBuilder.void
testSetDocumentation()
Test of setDocumentation method, of class ObjectModelBuilder.void
testSetOperationBody()
Test of setOperationBody method, of class ObjectModelBuilder.
-
-
-
Method Detail
-
testGetModel
public void testGetModel()
Test of getModel method, of class ObjectModelBuilder. Prerequisite : instanciation of ObjectModelBuilder. - ObjectModel created in ObjectModelBuilder constructor. ObjectModel name will be set.
-
testAddTagValue
public void testAddTagValue()
Test of addTagValue method, of class ObjectModelBuilder. Prerequisite : none. - Add a tag value to the model - Add a tag value to an element
-
testCreateClass
public void testCreateClass()
Test of createClass method, of class ObjectModelBuilder. Prerequisite : none. - Create a class with name and packageName. Qualified name of the class = name + packageName.
-
testCreateInterface
public void testCreateInterface()
Test of createInterface method, of class ObjectModelBuilder.
-
testAddAttributeWithoutDefaultValue
public void testAddAttributeWithoutDefaultValue()
Test of addAttribute method, of class ObjectModelBuilder. Prerequisite : existing classifier in model. - Add an attribute with no default value
-
testAddAttribute
public void testAddAttribute()
Test of addAttribute method, of class ObjectModelBuilder. Prerequisite : existing classifier in model. - Add a public attribute without default value - Add a private static attribute with default value
-
testAddOperation
public void testAddOperation()
Test of addOperation method, of class ObjectModelBuilder. Prerequisite : existing classifier in model. - Add simple public method - Add abstract method
-
testSetOperationBody
public void testSetOperationBody()
Test of setOperationBody method, of class ObjectModelBuilder. Prerequisite : existing classifier in model and operation associated to this classifier. - Add a body to an existing operation in a classifier
-
testAddInterface
public void testAddInterface()
Test of addInterface method, of class ObjectModelBuilder. Prerequisite : existing classifier in model. - Add an interface not included in the model to a classifier. - TODO : Add an existing interface in the model to a classfier.
-
testAddSuperclass
public void testAddSuperclass()
Test of addSuperclass method, of class ObjectModelBuilder. Prerequisite : existing classifier in model. - Add a superclass not included in the model to a classifier. - TODO : Add an existing superclass in the model to a classfier.
-
testAddParameter
public void testAddParameter()
Test of addParameter method, of class ObjectModelBuilder. Prerequisite : existing classifier in model and operation associated to this classifier. - Add a parameter to an existing operation in a classifier
-
testAddException
public void testAddException()
Test of addException method, of class ObjectModelBuilder. Prerequisite : existing classifier in model and operation associated to this classifier. - Add an exception to an existing operation in a classifier
-
testSetDocumentation
public void testSetDocumentation()
Test of setDocumentation method, of class ObjectModelBuilder.
-
testAddAssociation
public void testAddAssociation()
Test of addAssociation method, of class ObjectModelBuilder. Prerequisite : two existing classifier in model. - Add an ordered navigable composite association 1..1 from Poll to Vote
-
testAddReverseAssociation
public void testAddReverseAssociation()
Test of addReverseAssociation method, of class ObjectModelBuilder. Prerequisite : two existing classifier in model and attribute association existing for one of the classifier. - Add a non navigable association 0..* from Vote to Poll
-
testCreateAssociationClass
public void testCreateAssociationClass()
Test of createAssociationClass method, of class ObjectModelBuilder. Prerequisite : two existing classifier in model and attribute association existing for both of the classifiers. - Add an association class VoteToChoice between Vote and Choice classes
-
testAddStereotype
public void testAddStereotype()
Test of addStereotype method, of class ObjectModelBuilder.
-
-