Package org.jboss.annotation.javaee

Examples of org.jboss.annotation.javaee.Description.language()


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


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

TOP
Copyright © 2018 www.massapi.com. 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.