Changeset 887 for MetadataBeans/trunk/src/test/java/org/eobjects/metamodel/schema/SchemaModelTest.java
- Timestamp:
- 02/04/10 21:56:24 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MetadataBeans/trunk/src/test/java/org/eobjects/metamodel/schema/SchemaModelTest.java
r886 r887 19 19 import org.apache.commons.lang.ArrayUtils; 20 20 import org.eobjects.metamodel.MetaModelTestCase; 21 import org.eobjects.metamodel.schema.Column; 22 import org.eobjects.metamodel.schema.Relationship; 23 import org.eobjects.metamodel.schema.Schema; 24 import org.eobjects.metamodel.schema.Table; 21 import org.eobjects.metamodel.schema.ImmutableRelationship; 25 22 import org.eobjects.metamodel.schema.TableType; 26 27 23 28 24 public class SchemaModelTest extends MetaModelTestCase { … … 31 27 Schema schema = getExampleSchema(); 32 28 assertEquals("MetaModelSchema", schema.getName()); 33 assertEquals(" Schema[name=MetaModelSchema]", schema.toString());29 assertEquals("MutableSchema[name=MetaModelSchema]", schema.toString()); 34 30 assertEquals(5, schema.getRelationships().length); 35 31 … … 73 69 74 70 assertEquals( 75 " Relationship[primaryTable=contributor,primaryColumns={name},foreignTable=project_contributor,foreignColumns={contributor}]",71 "ImmutableRelationship[primaryTable=contributor,primaryColumns={name},foreignTable=project_contributor,foreignColumns={contributor}]", 76 72 projectContributorToContributorRelations[0].toString()); 77 73 78 projectContributorToContributorRelations[0].remove();74 ImmutableRelationship.remove(projectContributorToContributorRelations[0]); 79 75 projectContributorToContributorRelations = projectContributorView 80 76 .getRelationships(contributorTable); … … 86 82 // Get primary keys / Get foreign keys test 87 83 assertEquals( 88 "{ Column[name=contributor_id,columnNumber=0,type=INTEGER,nullable=false,indexed=true,nativeType=<null>,columnSize=<null>]}",84 "{MutableColumn[name=contributor_id,columnNumber=0,type=INTEGER,nullable=false,indexed=true,nativeType=<null>,columnSize=<null>]}", 89 85 ArrayUtils.toString(contributorTable.getPrimaryKeys())); 90 86 assertEquals("{}", ArrayUtils.toString(contributorTable … … 92 88 93 89 assertEquals( 94 "{ Column[name=name,columnNumber=2,type=VARCHAR,nullable=false,indexed=false,nativeType=<null>,columnSize=<null>]}",90 "{MutableColumn[name=name,columnNumber=2,type=VARCHAR,nullable=false,indexed=false,nativeType=<null>,columnSize=<null>]}", 95 91 ArrayUtils.toString(roleTable.getPrimaryKeys())); 96 92 Column[] foreignKeys = roleTable.getForeignKeys();
Note: See TracChangeset
for help on using the changeset viewer.
