Esempio n. 1
0
 @Test
 public void notNull() {
   ValueTransformers valueTransformers = context.lookup(ValueTransformers.class);
   try {
     valueTransformers.notNull(null);
     fail("NPE expected");
   } catch (NullPointerException npe) {
     assertEquals("passed object is null", npe.getMessage());
   }
 }
Esempio n. 2
0
 @Test
 public void trimmed() {
   ValueTransformers valueTransformers = context.lookup(ValueTransformers.class);
   assertEquals("str", valueTransformers.trimmed());
 }