@Test public void equalsDifferentDriver() { columnA.setName(COLUMN_NAME); columnB.setName("Different name"); assertFalse(columnA.equals(columnB)); }
@Test public void equalsName() { columnA.setName(COLUMN_NAME); columnB.setName(COLUMN_NAME); assertTrue(columnA.equals(columnB)); }
@Test public void equalsNullNameB() { columnB.setName(COLUMN_NAME); assertFalse(columnA.equals(columnB)); }
@Test public void equalsDifferentClass() { assertFalse(column.equals(new Object())); }
@Test public void equalsSameObject() { assertTrue(column.equals(column)); }
@Test public void equalsNull() { for (Column column : TestObjects.getColumns()) { assertFalse(column.equals(null)); } }
@Test public void toStringTest() { column.setName(COLUMN_NAME); assertEquals(COLUMN_NAME, column.toString()); }
@Test public void createInstance() { column = new Column(COLUMN_NAME); assertEquals(COLUMN_NAME, column.getName()); }