ca.cbc.sportwire.servlet.data
Class TestDocumentFile

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--ca.cbc.sportwire.servlet.data.TestDocumentFile
All Implemented Interfaces:
junit.framework.Test

public class TestDocumentFile
extends junit.framework.TestCase

File TestDocumentFile.java is automaticaly generated by 'unittestsgen' application. Code generator is created for java sources and for 'junit' package by "Artur Hefczyc"
You should fulfil test methods with proper code for testing purpose. All methods where you should put your code are below and their names starts with 'test'.
You can run unit tests in many ways, however prefered are:


Field Summary
protected  DocumentFile varDocumentFile
          Instance of tested class.
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
TestDocumentFile(java.lang.String name)
          Public constructor for creating testing class.
 
Method Summary
static void main(java.lang.String[] args)
          This main method is used for run tests for this class only from command line.
protected  void setUp()
          This method is called every time before particular test execution.
static junit.framework.Test suite()
          Returns all tests which should be performed for testing class.
 void testClass$1195259493()
          Method for testing how works original method: java.lang.Class class$(java.lang.String) from tested class
 void testFind11952594931367050658()
          Method for testing how works original method: org.w3c.dom.Node find(java.lang.String, org.w3c.dom.NamedNodeMap) from tested class
 void testFind1195259493251553821()
          Method for testing how works original method: org.w3c.dom.Node find(java.lang.String, org.w3c.dom.NodeList) from tested class
 void testGetDocument()
          Method for testing how works original method: org.w3c.dom.Document getDocument() from tested class
 void testGetElements11952594939554056()
          Method for testing how works original method: java.util.ArrayList getElements(java.lang.String, org.w3c.dom.Document) from tested class
 void testList1367050658()
          Method for testing how works original method: java.util.ArrayList list(org.w3c.dom.NamedNodeMap) from tested class
 void testList251553821()
          Method for testing how works original method: java.util.ArrayList list(org.w3c.dom.NodeList) from tested class
 void testMapValues1367050658()
          Method for testing how works original method: java.util.Map mapValues(org.w3c.dom.NamedNodeMap) from tested class
 void testMapValues251553821()
          Method for testing how works original method: java.util.Map mapValues(org.w3c.dom.NodeList) from tested class
 void testParseDocument1195259493()
          Method for testing how works original method: org.w3c.dom.Document parseDocument(java.lang.String) from tested class
 void testSetDocument9554056()
          Method for testing how works original method: void setDocument(org.w3c.dom.Document) from tested class
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

varDocumentFile

protected DocumentFile varDocumentFile
Instance of tested class.
Constructor Detail

TestDocumentFile

public TestDocumentFile(java.lang.String name)
Public constructor for creating testing class.
Method Detail

main

public static void main(java.lang.String[] args)
This main method is used for run tests for this class only from command line.

setUp

protected void setUp()
This method is called every time before particular test execution. It creates new instance of tested class and it can perform some more actions which are necessary for performs tests.
Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Returns all tests which should be performed for testing class. By default it returns only name of testing class. Instance of this is then created with its constructor.

testClass$1195259493

public void testClass$1195259493()
Method for testing how works original method: java.lang.Class class$(java.lang.String) from tested class

testMapValues251553821

public void testMapValues251553821()
Method for testing how works original method: java.util.Map mapValues(org.w3c.dom.NodeList) from tested class

testMapValues1367050658

public void testMapValues1367050658()
Method for testing how works original method: java.util.Map mapValues(org.w3c.dom.NamedNodeMap) from tested class

testFind1195259493251553821

public void testFind1195259493251553821()
Method for testing how works original method: org.w3c.dom.Node find(java.lang.String, org.w3c.dom.NodeList) from tested class

testFind11952594931367050658

public void testFind11952594931367050658()
Method for testing how works original method: org.w3c.dom.Node find(java.lang.String, org.w3c.dom.NamedNodeMap) from tested class

testList1367050658

public void testList1367050658()
Method for testing how works original method: java.util.ArrayList list(org.w3c.dom.NamedNodeMap) from tested class

testList251553821

public void testList251553821()
Method for testing how works original method: java.util.ArrayList list(org.w3c.dom.NodeList) from tested class

testGetElements11952594939554056

public void testGetElements11952594939554056()
Method for testing how works original method: java.util.ArrayList getElements(java.lang.String, org.w3c.dom.Document) from tested class

testParseDocument1195259493

public void testParseDocument1195259493()
Method for testing how works original method: org.w3c.dom.Document parseDocument(java.lang.String) from tested class

testSetDocument9554056

public void testSetDocument9554056()
Method for testing how works original method: void setDocument(org.w3c.dom.Document) from tested class

testGetDocument

public void testGetDocument()
Method for testing how works original method: org.w3c.dom.Document getDocument() from tested class