#include "toplevelfixture.hpp"
#include <boost/test/unit_test.hpp>
#include <ql/currencies/america.hpp>
#include <ql/settings.hpp>
#include <ql/time/calendars/nullcalendar.hpp>
#include <qle/instruments/commodityforward.hpp>
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_CASE (testConstructor) | |
BOOST_AUTO_TEST_CASE (testIsExpired) | |
BOOST_AUTO_TEST_CASE (testIsExpiredCashSettledMaturityEqualsPayment) | |
BOOST_AUTO_TEST_CASE (testIsExpiredCashSettledPaymentGtMaturity) | |
BOOST_AUTO_TEST_CASE (testNegativeQuantityThrows) | |
BOOST_AUTO_TEST_CASE (testNegativeStrikeThrows) | |
BOOST_AUTO_TEST_CASE (testPaymentDateLtMaturityCashSettledThrows) | |
BOOST_AUTO_TEST_CASE (testNonNullPaymentDatePhysicallySettledThrows) | |
BOOST_AUTO_TEST_CASE | ( | testConstructor | ) |
Definition at line 56 of file commodityforward.cpp.
BOOST_AUTO_TEST_CASE | ( | testIsExpired | ) |
Definition at line 72 of file commodityforward.cpp.
BOOST_AUTO_TEST_CASE | ( | testIsExpiredCashSettledMaturityEqualsPayment | ) |
Definition at line 91 of file commodityforward.cpp.
BOOST_AUTO_TEST_CASE | ( | testIsExpiredCashSettledPaymentGtMaturity | ) |
Definition at line 111 of file commodityforward.cpp.
BOOST_AUTO_TEST_CASE | ( | testNegativeQuantityThrows | ) |
Definition at line 143 of file commodityforward.cpp.
BOOST_AUTO_TEST_CASE | ( | testNegativeStrikeThrows | ) |
Definition at line 153 of file commodityforward.cpp.
BOOST_AUTO_TEST_CASE | ( | testPaymentDateLtMaturityCashSettledThrows | ) |
Definition at line 163 of file commodityforward.cpp.
BOOST_AUTO_TEST_CASE | ( | testNonNullPaymentDatePhysicallySettledThrows | ) |
Definition at line 173 of file commodityforward.cpp.