|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.lgc.wsh.opt.test.ScalarSolverTest
public class ScalarSolverTest
Wrap com.lgc.wsh.opt.ScalarSolver for junit testing. (junit.jar must be in CLASSPATH)
| Constructor Summary | |
|---|---|
ScalarSolverTest(java.lang.String name)
Standard constructor calls TestCase(name) constructor |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Run all tests with text gui if this class main is invoked |
protected void |
setUp()
|
static junit.framework.Test |
suite()
This automatically generates a suite of all "test" methods. |
protected void |
tearDown()
|
void |
testLeftHandSide2()
Unit test |
void |
testLinearObjFunc()
Unit test |
void |
testNonUnitScalarRange()
Unit test |
void |
testParabola()
Unit test |
void |
testPositiveCurvature()
Unit test |
void |
testRightHandSide()
Unit test |
void |
testStepFunction()
Unit test |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScalarSolverTest(java.lang.String name)
name - Name of junit Test.| Method Detail |
|---|
public void testLinearObjFunc()
throws java.lang.Exception
java.lang.Exception - Any test failure
public void testNonUnitScalarRange()
throws java.lang.Exception
java.lang.Exception - Any test failure
public void testRightHandSide()
throws java.lang.Exception
java.lang.Exception - Any test failure
public void testLeftHandSide2()
throws java.lang.Exception
java.lang.Exception - Any test failure
public void testParabola()
throws java.lang.Exception
java.lang.Exception - Any test failure
public void testPositiveCurvature()
throws java.lang.Exception
java.lang.Exception - Any test failure
public void testStepFunction()
throws java.lang.Exception
java.lang.Exception - Any test failure
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic static junit.framework.Test suite()
public static void main(java.lang.String[] args)
args - Command-line arguments.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||