org.thymeleaf.testing.templateengine.resource
Class ClassPathFileTestResource

Object
  extended by org.thymeleaf.testing.templateengine.resource.AbstractTestResource
      extended by org.thymeleaf.testing.templateengine.resource.ClassPathFileTestResource
All Implemented Interfaces:
IClassPathTestResource, ITestResource, ITestResourceItem

public final class ClassPathFileTestResource
extends AbstractTestResource
implements ITestResourceItem, IClassPathTestResource


Constructor Summary
ClassPathFileTestResource(String resourceName, String characterEncoding)
           
 
Method Summary
 String getCharacterEncoding()
           
 URL getResourceURL()
           
 String readAsText()
           
 
Methods inherited from class org.thymeleaf.testing.templateengine.resource.AbstractTestResource
getName
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.thymeleaf.testing.templateengine.resource.ITestResource
getName
 

Constructor Detail

ClassPathFileTestResource

public ClassPathFileTestResource(String resourceName,
                                 String characterEncoding)
Method Detail

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface IClassPathTestResource

getResourceURL

public URL getResourceURL()
Specified by:
getResourceURL in interface IClassPathTestResource

readAsText

public String readAsText()
Specified by:
readAsText in interface ITestResourceItem


Copyright © 2013 The THYMELEAF team. All Rights Reserved.