Ejemplo n.º 1
0
 @Test(expected = IllegalArgumentException.class)
 public void shouldThrowExceptionOnIncorrectNameForOperatorType() throws Exception {
   OperatorType.fromString("foo");
 }
Ejemplo n.º 2
0
 @Test
 public void shouldReturnOperatorTypeForEqualOperator() throws Exception {
   assertThat(OperatorType.EQUAL).isEqualTo(OperatorType.fromString("$eq"));
 }