Package org.apache.myfaces.trinidad.resource

Examples of org.apache.myfaces.trinidad.resource.AggregatingResourceLoader$ArrayEnumeration


  }

  public void testContentLength() throws IOException
  {
    ResourceLoader loader =
      new AggregatingResourceLoader("test.xml",
                                    new String[]
                                    {
                                      "test-1.xml",
                                      "test-2.xml"
                                    },
                                    new LocalResourceLoader());
    doTestContentLength(loader.getResource("test.xml"));
  }
View Full Code Here


  public void testContentLengthWithException() throws IOException
  {
    try
    {
      AggregatingResourceLoader loader =
        new AggregatingResourceLoader("test.xml",
                                      new String[]
                                      {
                                        "test-1.xml",
                                        "test-exception.xml",
                                        "test-2.xml"
                                      },
                                      new ThrowingResourceLoader());
      loader.setSeparator("\n");
      doTestContentLength(loader.getResource("test.xml"));
      //always log an error here.
      assertTrue("Expected IOException was not thrown.", false);
    }
    catch (IOException e)
    {
View Full Code Here

    }
  }

  public void testUnknownContentLength() throws IOException
  {
    AggregatingResourceLoader loader =
      new AggregatingResourceLoader("test.xml",
                                    new String[]
                                    {
                                      "test-1.xml",
                                      "unknown-length.xml",
                                      "test-2.xml"
                                    },
                                    new UnknownLengthResourceLoader());
    loader.setSeparator("\n");
    doTestUnknownContentLength(loader.getResource("test.xml"));
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.resource.AggregatingResourceLoader$ArrayEnumeration

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.