/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.convention.daycount;
import static org.testng.AssertJUnit.assertEquals;
import org.testng.annotations.Test;
import com.opengamma.util.test.TestGroup;
/**
* Test ThirtyEPlusThreeSixtyISDA.
*/
@Test(groups = TestGroup.UNIT)
public class ThirtyEPlusThreeSixtyISDATest extends DayCountTestCase {
private static final ThirtyEPlusThreeSixtyISDA DC = new ThirtyEPlusThreeSixtyISDA();
@Override
protected DayCount getDayCount() {
return DC;
}
@Test
public void test() {
assertEquals(COUPON * DC.getDayCountFraction(D1, D2), DC.getAccruedInterest(D1, D2, D3, COUPON, PAYMENTS), 0);
assertEquals(DC.getName(), "30E+/360 ISDA");
}
}