Ejemplo n.º 1
0
  @Test(groups = "unit")
  public void testContains() {
    String aFieldThatExists = RealtimeField.ALL_PRICE.toString();
    String aFieldThatDoesNotExist = "A FIELD THAT DOES NOT EXIST OU BIEN?";

    assertTrue(RealtimeField.contains(aFieldThatExists));
    assertFalse(RealtimeField.contains(aFieldThatDoesNotExist));
  }
Ejemplo n.º 2
0
 @Test(groups = "unit", expectedExceptions = NullPointerException.class)
 public void testContainsIgnoreCase_null() {
   assertFalse(RealtimeField.containsIgnoreCase(null));
 }
Ejemplo n.º 3
0
 @Test(groups = "unit")
 public void testContainsIgnoreCase() {
   String aFieldThatExists = "bid";
   assertFalse(RealtimeField.contains(aFieldThatExists));
   assertTrue(RealtimeField.containsIgnoreCase(aFieldThatExists));
 }