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