Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 17th, 2011  |  syntax: None  |  size: 0.92 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.    /**
  2.     * SHRINKDESC-37
  3.     */
  4.    @Test
  5.    public void shouldBeAbleToOverrideOversion()
  6.    {
  7.       final WebAppDescriptor web = Descriptors.importAs(WebAppDescriptor.class).from(
  8.             source);
  9.       log.info(web.version("2.5").exportAsString());
  10.    }
  11.  
  12. Mar 17, 2011 11:50:58 PM org.jboss.shrinkwrap.descriptor.api.DescriptorsTestCase shouldBeAbleToOverrideOversion
  13. INFO: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  14. <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
  15.   <filter>
  16.     <filter-name>UrlRewriteFilter</filter-name>
  17.     <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
  18.   </filter>
  19.   <filter-mapping>
  20.     <url-pattern>/*</url-pattern>
  21.     <filter-name>UrlRewriteFilter</filter-name>
  22.   </filter-mapping>
  23. </web-app>
clone this paste RAW Paste Data