Ignore:
Timestamp:
02/04/10 21:56:24 (2 years ago)
Author:
kasper
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MetadataBeans/trunk/src/test/java/org/eobjects/metamodel/schema/SchemaModelTest.java

    r886 r887  
    1919import org.apache.commons.lang.ArrayUtils; 
    2020import 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; 
     21import org.eobjects.metamodel.schema.ImmutableRelationship; 
    2522import org.eobjects.metamodel.schema.TableType; 
    26  
    2723 
    2824public class SchemaModelTest extends MetaModelTestCase { 
     
    3127                Schema schema = getExampleSchema(); 
    3228                assertEquals("MetaModelSchema", schema.getName()); 
    33                 assertEquals("Schema[name=MetaModelSchema]", schema.toString()); 
     29                assertEquals("MutableSchema[name=MetaModelSchema]", schema.toString()); 
    3430                assertEquals(5, schema.getRelationships().length); 
    3531 
     
    7369 
    7470                assertEquals( 
    75                                 "Relationship[primaryTable=contributor,primaryColumns={name},foreignTable=project_contributor,foreignColumns={contributor}]", 
     71                                "ImmutableRelationship[primaryTable=contributor,primaryColumns={name},foreignTable=project_contributor,foreignColumns={contributor}]", 
    7672                                projectContributorToContributorRelations[0].toString()); 
    7773 
    78                 projectContributorToContributorRelations[0].remove(); 
     74                ImmutableRelationship.remove(projectContributorToContributorRelations[0]); 
    7975                projectContributorToContributorRelations = projectContributorView 
    8076                                .getRelationships(contributorTable); 
     
    8682                // Get primary keys / Get foreign keys test 
    8783                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>]}", 
    8985                                ArrayUtils.toString(contributorTable.getPrimaryKeys())); 
    9086                assertEquals("{}", ArrayUtils.toString(contributorTable 
     
    9288 
    9389                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>]}", 
    9591                                ArrayUtils.toString(roleTable.getPrimaryKeys())); 
    9692                Column[] foreignKeys = roleTable.getForeignKeys(); 
Note: See TracChangeset for help on using the changeset viewer.