示例#1
0
 @Test(expected = IllegalArgumentException.class)
 @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
     value = "NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS",
     justification = "Testing null argument")
 public void testLoadTextResourceString_IllegalArgument() throws IOException {
   loremIpsum.loadTextResource(null);
 }
示例#2
0
 /**
  * Test method for {@link com.dell.mensa.util.LoremIpsum#loadTextResource(java.lang.String)}.
  *
  * @throws IOException if thrown by code under test
  */
 @Test
 public void testLoadTextResourceString() throws IOException {
   loremIpsum.loadTextResource(LoremIpsum.LOREM_IPSUM_RESOURCE);
   sanityCheckDefaultText(loremIpsum);
 }
示例#3
0
 @Test(expected = FileNotFoundException.class)
 public void testLoadTextResourceString_BadResource() throws IOException {
   loremIpsum.loadTextResource("bad-resource");
 }
示例#4
0
 /**
  * Test method for {@link com.dell.mensa.util.LoremIpsum#loadTextResource()}.
  *
  * @throws IOException if thrown by code under test
  */
 @Test
 public void testLoadTextResource() throws IOException {
   loremIpsum.loadTextResource();
   sanityCheckDefaultText(loremIpsum);
 }