Class ClassPathFileTestResource
- Object
-
- org.thymeleaf.testing.templateengine.resource.AbstractTestResource
-
- org.thymeleaf.testing.templateengine.resource.ClassPathFileTestResource
-
- All Implemented Interfaces:
IClassPathTestResource
,ITestResource
,ITestResourceItem
public final class ClassPathFileTestResource extends AbstractTestResource implements ITestResourceItem, IClassPathTestResource
-
-
Constructor Summary
Constructors Constructor Description ClassPathFileTestResource(String resourceName, String characterEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCharacterEncoding()
URL
getResourceURL()
String
readAsText()
-
Methods inherited from class org.thymeleaf.testing.templateengine.resource.AbstractTestResource
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.thymeleaf.testing.templateengine.resource.ITestResource
getName
-
-
-
-
Method Detail
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfaceIClassPathTestResource
-
getResourceURL
public URL getResourceURL()
- Specified by:
getResourceURL
in interfaceIClassPathTestResource
-
readAsText
public String readAsText()
- Specified by:
readAsText
in interfaceITestResourceItem
-
-