org.apache.cxf.tools.common
Class ProcessorTestBase
java.lang.Object
org.junit.Assert
org.apache.cxf.tools.common.ProcessorTestBase
public class ProcessorTestBase
- extends org.junit.Assert
Method Summary |
protected void |
addQNameAttribute(QName element,
String local)
|
protected void |
assertAttributesEquals(QName element,
Map<QName,String> q1,
Map<QName,String> q2,
Collection<String> ignoreAttr)
|
protected void |
assertFileEquals(File location1,
File location2)
|
protected void |
assertFileEquals(String f1,
String f2)
|
protected void |
assertTagEquals(Tag expected,
Tag source)
|
protected void |
assertTagEquals(Tag expected,
Tag source,
List<String> ignoreAttr,
List<String> ignoreTag)
|
void |
assertWsdlEquals(File expected,
File source)
|
void |
assertWsdlEquals(File expected,
File source,
List<String> attr,
List<String> tag)
|
void |
assertWsdlEquals(InputStream expected,
InputStream source)
|
void |
assertWsdlEquals(InputStream expected,
InputStream source,
List<String> attr,
List<String> tag)
|
boolean |
assertXmlEquals(File expected,
File source)
|
boolean |
assertXmlEquals(File expected,
File source,
List<String> ignoreAttr)
|
protected String |
getClassPath()
|
protected String |
getLocation(String wsdlFile)
|
protected File |
getResource(String wsdlFile)
|
String |
getStringFromFile(File location)
|
protected boolean |
isMOXy()
|
void |
tearDown()
|
Methods inherited from class org.junit.Assert |
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_IGNORE_ATTR
public static final List<String> DEFAULT_IGNORE_ATTR
DEFAULT_IGNORE_TAG
public static final List<String> DEFAULT_IGNORE_TAG
tmpDir
public org.junit.rules.TemporaryFolder tmpDir
output
protected File output
env
protected ToolContext env
qnameAtts
protected Map<QName,Set<String>> qnameAtts
ProcessorTestBase
public ProcessorTestBase()
addQNameAttribute
protected final void addQNameAttribute(QName element,
String local)
tearDown
public void tearDown()
isMOXy
protected boolean isMOXy()
getClassPath
protected String getClassPath()
throws URISyntaxException,
IOException
- Throws:
URISyntaxException
IOException
getLocation
protected String getLocation(String wsdlFile)
throws URISyntaxException
- Throws:
URISyntaxException
getResource
protected File getResource(String wsdlFile)
throws URISyntaxException
- Throws:
URISyntaxException
assertFileEquals
protected void assertFileEquals(String f1,
String f2)
assertFileEquals
protected void assertFileEquals(File location1,
File location2)
getStringFromFile
public String getStringFromFile(File location)
assertXmlEquals
public boolean assertXmlEquals(File expected,
File source)
throws Exception
- Throws:
Exception
assertXmlEquals
public boolean assertXmlEquals(File expected,
File source,
List<String> ignoreAttr)
throws Exception
- Throws:
Exception
assertTagEquals
protected void assertTagEquals(Tag expected,
Tag source)
assertAttributesEquals
protected void assertAttributesEquals(QName element,
Map<QName,String> q1,
Map<QName,String> q2,
Collection<String> ignoreAttr)
assertTagEquals
protected void assertTagEquals(Tag expected,
Tag source,
List<String> ignoreAttr,
List<String> ignoreTag)
assertWsdlEquals
public void assertWsdlEquals(File expected,
File source,
List<String> attr,
List<String> tag)
throws Exception
- Throws:
Exception
assertWsdlEquals
public void assertWsdlEquals(File expected,
File source)
throws Exception
- Throws:
Exception
assertWsdlEquals
public void assertWsdlEquals(InputStream expected,
InputStream source,
List<String> attr,
List<String> tag)
throws Exception
- Throws:
Exception
assertWsdlEquals
public void assertWsdlEquals(InputStream expected,
InputStream source)
throws Exception
- Throws:
Exception
Apache CXF