Package org.jboss.annotation.javaee

Examples of org.jboss.annotation.javaee.Description


      assertDescription("de", suffix, impl);
   }
  
   protected void assertDescription(String lang, String suffix, DescriptionsImpl impl)
   {
      Description description = impl.get(lang);
      assertNotNull(description);
      assertEquals(lang + "-" + suffix + "-desc", description.value());
   }
View Full Code Here


      super(name);
   }
     
   public void testDefaultLanguage() throws Exception
   {
      Description description = unmarshal(Description.class);
      assertEquals("Hello", description.value());
      assertEquals(Description.DEFAULT_LANGUAGE, description.language());
   }
View Full Code Here

      assertEquals(Description.DEFAULT_LANGUAGE, description.language());
   }
  
   public void testNonDefaultLanguage() throws Exception
   {
      Description description = unmarshal(Description.class);
      assertEquals("Bonjour", description.value());
      assertEquals("fr", description.language());
   }
View Full Code Here

TOP

Related Classes of org.jboss.annotation.javaee.Description

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.