com.lgc.wsh.opt.test
Class ScalarSolverTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.lgc.wsh.opt.test.ScalarSolverTest
All Implemented Interfaces:
junit.framework.Test

public class ScalarSolverTest
extends junit.framework.TestCase

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

ScalarSolverTest

public ScalarSolverTest(java.lang.String name)
Standard constructor calls TestCase(name) constructor

Parameters:
name - Name of junit Test.
Method Detail

testLinearObjFunc

public void testLinearObjFunc()
                       throws java.lang.Exception
Unit test

Throws:
java.lang.Exception - Any test failure

testNonUnitScalarRange

public void testNonUnitScalarRange()
                            throws java.lang.Exception
Unit test

Throws:
java.lang.Exception - Any test failure

testRightHandSide

public void testRightHandSide()
                       throws java.lang.Exception
Unit test

Throws:
java.lang.Exception - Any test failure

testLeftHandSide2

public void testLeftHandSide2()
                       throws java.lang.Exception
Unit test

Throws:
java.lang.Exception - Any test failure

testParabola

public void testParabola()
                  throws java.lang.Exception
Unit test

Throws:
java.lang.Exception - Any test failure

testPositiveCurvature

public void testPositiveCurvature()
                           throws java.lang.Exception
Unit test

Throws:
java.lang.Exception - Any test failure

testStepFunction

public void testStepFunction()
                      throws java.lang.Exception
Unit test

Throws:
java.lang.Exception - Any test failure

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.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.