|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase Libor.LiborProcess.CalibratorTest
A jUnit
test suite for the class Calibrator
.
Sets up a Libor process of dimension 15 and then computes caplet implied
volatilities from both analytic prices and Monte Carlo prices and checks
if they are equal to the known Libor volatilities. This is done for every
caplet.
Constructor Summary | |
CalibratorTest(java.lang.String testName)
Constructor. |
Method Summary | |
static junit.framework.Test |
calibratorTestSuite()
Returns the test suite object which is then run
in one of the test suite runners juint.textui.TestRunner or
junit.swingui.TestRunner. |
static void |
main(java.lang.String[] args)
run the tests in a Swing GUI |
protected void |
setUp()
Do nothing on setUp since the test fixture is static final. |
protected void |
tearDown()
Do nothing on tearDown since none of the tests
alters the basic data. |
void |
testCapletImpliedSigma()
Test the caplet implied volatilities computed from analytic caplet prices. |
void |
testMonteCarloCapletImpliedSigma()
Test the caplet implied volatilities computed from Monte Carlo caplet prices. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CalibratorTest(java.lang.String testName)
Method Detail |
protected void setUp()
setUp
since the test fixture is static final.
protected void tearDown()
tearDown
since none of the tests
alters the basic data.
public static junit.framework.Test calibratorTestSuite()
run
in one of the test suite runners juint.textui.TestRunner or
junit.swingui.TestRunner.
public void testCapletImpliedSigma() throws NoSolutionException
NoSolutionException
public void testMonteCarloCapletImpliedSigma() throws NoSolutionException
NoSolutionException
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |