public void testBusinessModelColumnUniqueNames() { for (BusinessTable table : businessModel.getBusinessTables()) { String physicalTableName = table.getPhysicalTable().getName(); Map<String, String> columnUniqueNames = new HashMap<String, String>(); for (SimpleBusinessColumn column : table.getSimpleBusinessColumns()) { String columnUniqueName = column.getUniqueName(); String physicalColumnName = column.getPhysicalColumn().getName(); Assert.assertNotNull( "Business column associated to column [" + physicalColumnName + "] of physical table [" + physicalTableName + "] have no unique name", columnUniqueName); Assert.assertFalse( "Column [" + physicalColumnName + "] and column [" + columnUniqueNames.get(columnUniqueName) + "] of table [" + physicalTableName + "] have the same unique name [" + columnUniqueName + "]", columnUniqueNames.containsKey(columnUniqueName)); columnUniqueNames.put(columnUniqueName, physicalColumnName); } } }
public void testBusinessModelColumnNames() { for (BusinessTable table : businessModel.getBusinessTables()) { String physicalTableName = table.getPhysicalTable().getName(); for (SimpleBusinessColumn column : table.getSimpleBusinessColumns()) { String columnName = column.getName(); Assert.assertNotNull( "Business column associated with physical column [" + column.getPhysicalColumn().getName() + "] of table [" + physicalTableName + "] have no name ", columnName); } } }