@Test public void testEquals() { assertFalse(instance.equals(null)); assertFalse(instance.equals("abc")); assertTrue(instance.equals(instance)); GeCriterion other = new GeCriterion("name", "abc"); assertTrue(instance.equals(other)); assertTrue(other.equals(instance)); }
@Test public void testToQueryString() { assertEquals( "rootEntity.name >= :rootEntity_name" + instance.hashCode(), instance.toQueryString()); }
@Test public void testGetParameters() { assertEquals( NamedParameters.create().add("rootEntity_name" + instance.hashCode(), "abc"), instance.getParameters()); }
@Test public void testGetValue() { assertEquals("abc", instance.getValue()); }