@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)); }
@Test(groups = "unit", expectedExceptions = NullPointerException.class) public void testContainsIgnoreCase_null() { assertFalse(RealtimeField.containsIgnoreCase(null)); }
@Test(groups = "unit") public void testContainsIgnoreCase() { String aFieldThatExists = "bid"; assertFalse(RealtimeField.contains(aFieldThatExists)); assertTrue(RealtimeField.containsIgnoreCase(aFieldThatExists)); }