@Test void getSqlDropColumn() { EntityType entityType = when(mock(EntityType.class).getId()).thenReturn("entity").getMock(); when(entityType.getId()).thenReturn("entityTypeId"); Attribute attr = when(mock(Attribute.class).getName()).thenReturn("attr").getMock(); when(attr.getIdentifier()).thenReturn("attrId"); assertEquals( "ALTER TABLE \"entityTypeId#c34894ba\" DROP COLUMN \"attr\"", PostgreSqlQueryGenerator.getSqlDropColumn(entityType, attr)); }
static String getSqlDropColumn(EntityType entityType, Attribute attr) { return "ALTER TABLE " + getTableName(entityType) + " DROP COLUMN " + getColumnName(attr); }
PostgreSqlQueryGenerator { static String getSqlDropColumn(EntityType entityType, Attribute attr) { return "ALTER TABLE " + getTableName(entityType) + " DROP COLUMN " + getColumnName(attr); } }
PostgreSqlQueryGenerator { static String getSqlDropColumn(EntityType entityType, Attribute attr) { return "ALTER TABLE " + getTableName(entityType) + " DROP COLUMN " + getColumnName(attr); } private  PostgreSqlQueryGenerator(); }
PostgreSqlQueryGenerator { static String getSqlDropColumn(EntityType entityType, Attribute attr) { return "ALTER TABLE " + getTableName(entityType) + " DROP COLUMN " + getColumnName(attr); } private  PostgreSqlQueryGenerator();  }
PostgreSqlQueryGenerator { static String getSqlDropColumn(EntityType entityType, Attribute attr) { return "ALTER TABLE " + getTableName(entityType) + " DROP COLUMN " + getColumnName(attr); } private  PostgreSqlQueryGenerator();   }