Package org.richfaces.test.staging

Examples of org.richfaces.test.staging.ClasspathServerResource


   *
   * @throws IOException
   */
  @Test
  public void testGetAsStream() throws IOException {
    ClasspathServerResource resource = new ClasspathServerResource(
        "org/richfaces/test/resource.txt");
    InputStream inputStream = resource.getAsStream();
    assertNotNull(inputStream);
    try {
      byte[] buff = new byte[20];
      assertEquals(3, inputStream.read(buff));

View Full Code Here


   * Test method for
   * {@link org.richfaces.test.staging.ServerResourcesDirectory#getURL()}.
   */
  @Test
  public void testGetURL() {
    ClasspathServerResource resource = new ClasspathServerResource(
    "org/richfaces/test/resource.txt");
    assertNotNull(resource.getURL());
  }
View Full Code Here

TOP

Related Classes of org.richfaces.test.staging.ClasspathServerResource

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.