Exemplo n.º 1
0
 @SuppressWarnings("static-method")
 @Test(expected = IllegalArgumentException.class)
 @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
     value = "NP_NULL_PARAM_DEREF_NONVIRTUAL",
     justification = "Testing null argument")
 public void testNormalize_IllegalArgument() throws IOException {
   LoremIpsum.normalize(null);
 }
Exemplo n.º 2
0
 /**
  * Test method for {@link com.dell.mensa.util.LoremIpsum#normalize(java.lang.String)}.
  *
  * @throws IOException if thrown by code under test
  */
 @SuppressWarnings("static-method")
 @Test
 public void testNormalize() throws IOException {
   Assert.assertEquals(NORMALIZED_TEXT, LoremIpsum.normalize(RAW_TEXT));
   Assert.assertEquals(NORMALIZED_TEXT, LoremIpsum.normalize(NORMALIZED_TEXT));
 }