Esempio n. 1
0
  @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));
  }
Esempio n. 2
0
 @Test
 public void testToQueryString() {
   assertEquals(
       "rootEntity.name >= :rootEntity_name" + instance.hashCode(), instance.toQueryString());
 }
Esempio n. 3
0
 @Test
 public void testGetParameters() {
   assertEquals(
       NamedParameters.create().add("rootEntity_name" + instance.hashCode(), "abc"),
       instance.getParameters());
 }
Esempio n. 4
0
 @Test
 public void testGetValue() {
   assertEquals("abc", instance.getValue());
 }