Package wsh.opt.test
Class ScalarSolverTest
- java.lang.Object
 - 
- junit.framework.Assert
 - 
- junit.framework.TestCase
 - 
- wsh.opt.test.ScalarSolverTest
 
 
 
 
- 
- All Implemented Interfaces:
 junit.framework.Test
public class ScalarSolverTest extends junit.framework.TestCaseWrap wsh.opt.ScalarSolver for junit testing. (junit.jar must be in CLASSPATH) 
- 
- 
Constructor Summary
Constructors Constructor Description ScalarSolverTest(java.lang.String name)Standard constructor calls TestCase(name) constructor 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run all tests with text gui if this class main is invokedprotected voidsetUp()static junit.framework.Testsuite()This automatically generates a suite of all "test" methods.protected voidtearDown()voidtestLeftHandSide2()Unit testvoidtestLinearObjFunc()Unit testvoidtestNonUnitScalarRange()Unit testvoidtestParabola()Unit testvoidtestPositiveCurvature()Unit testvoidtestRightHandSide()Unit testvoidtestStepFunction()Unit test- 
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
testLinearObjFunc
public void testLinearObjFunc() throws java.lang.ExceptionUnit test- Throws:
 java.lang.Exception- Any test failure
 
- 
testNonUnitScalarRange
public void testNonUnitScalarRange() throws java.lang.ExceptionUnit test- Throws:
 java.lang.Exception- Any test failure
 
- 
testRightHandSide
public void testRightHandSide() throws java.lang.ExceptionUnit test- Throws:
 java.lang.Exception- Any test failure
 
- 
testLeftHandSide2
public void testLeftHandSide2() throws java.lang.ExceptionUnit test- Throws:
 java.lang.Exception- Any test failure
 
- 
testParabola
public void testParabola() throws java.lang.ExceptionUnit test- Throws:
 java.lang.Exception- Any test failure
 
- 
testPositiveCurvature
public void testPositiveCurvature() throws java.lang.ExceptionUnit test- Throws:
 java.lang.Exception- Any test failure
 
- 
testStepFunction
public void testStepFunction() throws java.lang.ExceptionUnit test- Throws:
 java.lang.Exception- Any test failure
 
- 
setUp
protected void setUp() throws java.lang.Exception- Overrides:
 setUpin classjunit.framework.TestCase- Throws:
 java.lang.Exception
 
- 
tearDown
protected void tearDown() throws java.lang.Exception- Overrides:
 tearDownin classjunit.framework.TestCase- Throws:
 java.lang.Exception
 
- 
suite
public static junit.framework.Test suite()
This automatically generates a suite of all "test" methods.- Returns:
 - A suite of all junit tests as a Test.
 
 
- 
main
public static void main(java.lang.String[] args)
Run all tests with text gui if this class main is invoked- Parameters:
 args- Command-line arguments.
 
 - 
 
 -