Interface ITableValidator
- All Known Implementing Classes:
TableValidator
public interface ITableValidator
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidassertContainsColumn(ITable table, IColumn column) voidvoidassertDoesNotContainColumn(ITable table, IColumn column) voidassertDoesNotContainColumnWithName(ITable table, String name) voidassertIsNotReferenced(ITable table)
-
Method Details
-
assertContainsColumn
- Parameters:
table-column-- Throws:
RuntimeException- if the given table does not contain the given column.
-
assertDoesNotBelongToDatabase
- Parameters:
table-- Throws:
RuntimeException- if the given table does not belong to aIDatabase.
-
assertDoesNotContainColumn
- Parameters:
table-column-- Throws:
RuntimeException- if the given table contains the given column.
-
assertDoesNotContainColumnWithName
- Parameters:
table-name-- Throws:
RuntimeException- if the given table aIColumnwith the given name.
-
assertIsNotReferenced
- Parameters:
table-- Throws:
RuntimeException- if the given table is referenced.
-