Skip to content

Commit

Permalink
remove tests that are no longer valid
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 1, 2011
1 parent 98530d1 commit d464fee
Showing 1 changed file with 0 additions and 53 deletions.
Expand Up @@ -957,33 +957,6 @@ public void testComplex() throws Exception
writeModel(model));
}

/**
* Tests that an exception is generated when an index references an undefined column.
*/
public void testUndefinedIndexColumn()
{
try
{
readModel(
"<database name='test'>\n" +
" <table name='TableWidthIndex'>\n" +
" <column name='id'\n" +
" type='INTEGER'\n" +
" primaryKey='true'\n" +
" required='true'/>\n" +
" <index name='test index'>\n" +
" <index-column name='id'/>\n" +
" <index-column name='value'/>\n" +
" </index>\n" +
" </table>\n" +
"</database>");

fail();
}
catch (ModelException ex)
{}
}

/**
* Tests that an exception is generated when the database element has no name attribute.
*/
Expand Down Expand Up @@ -1129,32 +1102,6 @@ public void testColumnWithoutType()
{}
}

/**
* Tests that an exception is generated when the a unique index references an undefined column.
*/
public void testUndefinedUniqueColumn()
{
try
{
readModel(
"<database name='test'>\n" +
" <table name='TableWidthUnique'>\n" +
" <column name='id'\n" +
" type='INTEGER'\n" +
" primaryKey='true'\n" +
" required='true'/>\n" +
" <unique>\n" +
" <unique-column name='value'/>\n" +
" </unique>\n" +
" </table>\n" +
"</database>");

fail();
}
catch (ModelException ex)
{}
}

/**
* Tests that an exception is generated when two indices have the same value in their name attributes.
*/
Expand Down

0 comments on commit d464fee

Please sign in to comment.