ca.cbc.sportwire.servlet
Class TestSportPageServlet
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--ca.cbc.sportwire.servlet.TestSportPageServlet
- All Implemented Interfaces:
- junit.framework.Test
- public class TestSportPageServlet
- extends junit.framework.TestCase
File TestSportPageServlet.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:
Fields inherited from class junit.framework.TestCase |
fName |
Constructor Summary |
TestSportPageServlet(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 |
testError2032499319136409667972706427()
Method for testing how works original method:
void error(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Exception)
from tested class |
void |
testGetAppConfig()
Method for testing how works original method:
java.util.Properties getAppConfig()
from tested class |
void |
testGetServletInfo()
Method for testing how works original method:
java.lang.String getServletInfo()
from tested class |
void |
testHandleRequest203249931913640966791522934485()
Method for testing how works original method:
org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.velocity.context.Context)
from tested class |
void |
testHandleStaticRequest203249931913640966791522934485()
Method for testing how works original method:
boolean handleStaticRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.velocity.context.Context)
from tested class |
void |
testLoadConfiguration1675261818()
Method for testing how works original method:
java.util.Properties loadConfiguration(javax.servlet.ServletConfig)
from tested class |
void |
testMergeTemplate206321195715229344851364096679()
Method for testing how works original method:
void mergeTemplate(org.apache.velocity.Template, org.apache.velocity.context.Context, javax.servlet.http.HttpServletResponse)
from tested class |
void |
testSetPathProperties11952594931522934485()
Method for testing how works original method:
void setPathProperties(java.lang.String, org.apache.velocity.context.Context)
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 |
varSportPageServlet
protected SportPageServlet varSportPageServlet
- Instance of tested class.
TestSportPageServlet
public TestSportPageServlet(java.lang.String name)
- Public constructor for creating testing class.
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
testGetServletInfo
public void testGetServletInfo()
- Method for testing how works original method:
java.lang.String getServletInfo()
from tested class
testHandleRequest203249931913640966791522934485
public void testHandleRequest203249931913640966791522934485()
- Method for testing how works original method:
org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.velocity.context.Context)
from tested class
testHandleStaticRequest203249931913640966791522934485
public void testHandleStaticRequest203249931913640966791522934485()
- Method for testing how works original method:
boolean handleStaticRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.velocity.context.Context)
from tested class
testSetPathProperties11952594931522934485
public void testSetPathProperties11952594931522934485()
- Method for testing how works original method:
void setPathProperties(java.lang.String, org.apache.velocity.context.Context)
from tested class
testError2032499319136409667972706427
public void testError2032499319136409667972706427()
- Method for testing how works original method:
void error(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Exception)
from tested class
testMergeTemplate206321195715229344851364096679
public void testMergeTemplate206321195715229344851364096679()
- Method for testing how works original method:
void mergeTemplate(org.apache.velocity.Template, org.apache.velocity.context.Context, javax.servlet.http.HttpServletResponse)
from tested class
testLoadConfiguration1675261818
public void testLoadConfiguration1675261818()
- Method for testing how works original method:
java.util.Properties loadConfiguration(javax.servlet.ServletConfig)
from tested class
testGetAppConfig
public void testGetAppConfig()
- Method for testing how works original method:
java.util.Properties getAppConfig()
from tested class