/**
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.util.time;

import org.testng.annotations.Test;
import org.threeten.bp.LocalDate;

import com.opengamma.util.test.AbstractFudgeBuilderTestCase;

/**
 * Test Fudge encoding.
 */
@Test(groups = "unit")
public class LocalDateRangeFudgeEncodingTest extends AbstractFudgeBuilderTestCase {

  public void test_inclusive() {
    LocalDateRange range = LocalDateRange.of(LocalDate.of(2010, 7, 1), LocalDate.of(2010, 8, 1), true);
    assertEncodeDecodeCycle(LocalDateRange.class, range);
  }

  public void test_exclusive() {
    LocalDateRange range = LocalDateRange.of(LocalDate.of(2010, 7, 1), LocalDate.of(2010, 8, 1), false);
    assertEncodeDecodeCycle(LocalDateRange.class, range);
  }

}

@@ -838,11 +838,118 @@
 e);%0A  %7D%0A
+  %0A  public void test_all() %7B%0A    assertEncodeDecodeCycle(LocalDateRange.class, LocalDateRange.ALL);%0A  %7D%0A  
 %0A%7D%0A

Add test for fudge serialization of LocalDate.ALL