Package org.apache.ofbiz.testtools
Class SimpleMethodTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.ofbiz.entity.testtools.EntityTestCase
-
- org.apache.ofbiz.service.testtools.OFBizTestCase
-
- org.apache.ofbiz.testtools.SimpleMethodTest
-
- All Implemented Interfaces:
junit.framework.Test
public class SimpleMethodTest extends OFBizTestCase
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
methodLocation
protected java.lang.String
methodName
static java.lang.String
module
static org.springframework.mock.web.MockHttpServletRequest
request
static org.springframework.mock.web.MockHttpServletResponse
response
-
Fields inherited from class org.apache.ofbiz.service.testtools.OFBizTestCase
dispatcher
-
Fields inherited from class org.apache.ofbiz.entity.testtools.EntityTestCase
delegator
-
-
Constructor Summary
Constructors Constructor Description SimpleMethodTest(java.lang.String caseName, java.lang.String methodLocation, java.lang.String methodName)
SimpleMethodTest(java.lang.String caseName, org.w3c.dom.Element mainElement)
Tests of Simple Method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
countTestCases()
void
run(junit.framework.TestResult result)
-
Methods inherited from class org.apache.ofbiz.service.testtools.OFBizTestCase
getDispatcher, setDispatcher
-
Methods inherited from class org.apache.ofbiz.entity.testtools.EntityTestCase
getDelegator, setDelegator
-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, setUp, tearDown, toString
-
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
methodLocation
protected java.lang.String methodLocation
-
methodName
protected java.lang.String methodName
-
request
public static org.springframework.mock.web.MockHttpServletRequest request
-
response
public static org.springframework.mock.web.MockHttpServletResponse response
-
-
Constructor Detail
-
SimpleMethodTest
public SimpleMethodTest(java.lang.String caseName, org.w3c.dom.Element mainElement)
Tests of Simple Method- Parameters:
caseName
- test case namemainElement
- DOM main element
-
SimpleMethodTest
public SimpleMethodTest(java.lang.String caseName, java.lang.String methodLocation, java.lang.String methodName)
-
-
Method Detail
-
countTestCases
public int countTestCases()
- Specified by:
countTestCases
in interfacejunit.framework.Test
- Overrides:
countTestCases
in classjunit.framework.TestCase
-
run
public void run(junit.framework.TestResult result)
- Specified by:
run
in interfacejunit.framework.Test
- Overrides:
run
in classjunit.framework.TestCase
-
-