Class XmlResource
- java.lang.Object
-
- com.atlassian.confluence.util.test.rules.TestResource<org.dom4j.Document>
-
- com.atlassian.confluence.util.test.rules.XmlResource
-
- All Implemented Interfaces:
org.junit.rules.TestRule
@Deprecated public class XmlResource extends TestResource<org.dom4j.Document>
Deprecated.Load an XML resource into memory for testing purposes.E.g. the following files reside in a Maven module with Surefire setup:
- src/test/java/com/atlassian/confluence/notifications/impl/VersionedTemplateTest.java
- src/test/resources/com/atlassian/confluence/notifications/impl/multiple-version-groups-expected.xml
- src/test/resources/com/atlassian/confluence/notifications/impl/multiple-version-groups-source.xml
{@code public class VersionedTemplateTest {
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.util.test.rules.TestResource
nameSuffix, testClass
-
-
Constructor Summary
Constructors Constructor Description XmlResource(Class testClass, String nameSuffix)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
assertEquals(org.dom4j.Document actualDocument)
Deprecated.protected org.dom4j.Document
load(InputStream testResourceStream)
Deprecated.static String
serialize(org.dom4j.Document document)
Deprecated.-
Methods inherited from class com.atlassian.confluence.util.test.rules.TestResource
apply, get, toFileName, toRelativePathFromClassLoaderRoot
-
-
-
-
Method Detail
-
load
protected org.dom4j.Document load(InputStream testResourceStream)
Deprecated.- Specified by:
load
in classTestResource<org.dom4j.Document>
-
assertEquals
public void assertEquals(org.dom4j.Document actualDocument)
Deprecated.
-
serialize
public static String serialize(org.dom4j.Document document)
Deprecated.
-
-