org.apache.cxf.tools.common
Class ProcessorTestBase

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.cxf.tools.common.ProcessorTestBase

public class ProcessorTestBase
extends org.junit.Assert


Field Summary
static List<String> DEFAULT_IGNORE_ATTR
           
static List<String> DEFAULT_IGNORE_TAG
           
protected  ToolContext env
           
protected  File output
           
 org.junit.rules.TemporaryFolder tmpDir
           
 
Constructor Summary
ProcessorTestBase()
           
 
Method Summary
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)
           
 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, assertFalse, assertFalse, 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
 

Field Detail

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
Constructor Detail

ProcessorTestBase

public ProcessorTestBase()
Method Detail

tearDown

public void tearDown()

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