Package org.jboss.annotation.javaee

Examples of org.jboss.annotation.javaee.DisplayName


      assertDisplayName("de", suffix, impl);
   }
  
   protected void assertDisplayName(String lang, String suffix, DisplayNamesImpl impl)
   {
      DisplayName displayName = impl.get(lang);
      assertNotNull(displayName);
      assertEquals(lang + "-" + suffix + "-disp", displayName.value());
   }
View Full Code Here


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

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

TOP

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

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.