2728293031323334
private QueryVO vo1 = null; private QueryVO vo2 = null; @Before public void setUp() throws Exception { vo1 = new QueryVO("name1", "select fromt bla"); vo2 = new QueryVO("name2", "select fromt bla"); }
49505152535455
} @Test public void testEqualsObject() { assertThat(vo1.equals(vo2)).isFalse(); assertThat(vo1.equals(new QueryVO("name1", "test"))).isTrue(); }