// Path: src/main/java/de/xn__ho_hia/utils/fiscal_year/EarlyFiscalDateCalculator.java
// final class EarlyFiscalDateCalculator extends AbstractFiscalDateCalculator {
// 
//     EarlyFiscalDateCalculator(final int fiscalStartMonth) {
//         super(fiscalStartMonth);
//     }
// 
//     @Override
//     public int calculateFiscalYear(final LocalDate calendarDate) {
//         final int offset = fiscalYearStartMonth <= calendarDate.getMonthValue() ? 1 : 0;
// 
//         return calendarDate.getYear() + offset;
//     }
// 
//     @Override
//     protected int calculateCalendarYear(final int fiscalYear, final int fiscalMonth) {
//         final int offset = fiscalMonth <= 12 - fiscalYearStartMonth + 1 ? -1 : 0;
// 
//         return fiscalYear + offset;
//     }
// 
// }


import org.junit.Assert;
import org.junit.Test;
import de.xn__ho_hia.utils.fiscal_year.EarlyFiscalDateCalculator;
/*
 * This file is part of fiscal-year. It is subject to the license terms in the LICENSE file found in the top-level
 * directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of fiscal-year,
 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
 * in the LICENSE file.
 */
package de.xn__ho_hia.utils.fiscal_year;



/**
 *
 *
 */
public class EarlyFiscalDateCalculatorTest {

    /**
     */
    @SuppressWarnings("static-method")
    @Test
    public void shouldRemainWithinCurrentYear() {
        final EarlyFiscalDateCalculator calculator = new EarlyFiscalDateCalculator(2);

        final int calendarYear = calculator.calculateCalendarYear(2035, 12);

        Assert.assertEquals(2035, calendarYear);
    }

    /**
     */
    @SuppressWarnings("static-method")
    @Test
    public void shouldBeInPastCalendarYear() {
// Path: src/main/java/de/xn__ho_hia/utils/fiscal_year/EarlyFiscalDateCalculator.java
// final class EarlyFiscalDateCalculator extends AbstractFiscalDateCalculator {
// 
//     EarlyFiscalDateCalculator(final int fiscalStartMonth) {
//         super(fiscalStartMonth);
//     }
// 
//     @Override
//     public int calculateFiscalYear(final LocalDate calendarDate) {
//         final int offset = fiscalYearStartMonth <= calendarDate.getMonthValue() ? 1 : 0;
// 
//         return calendarDate.getYear() + offset;
//     }
// 
//     @Override
//     protected int calculateCalendarYear(final int fiscalYear, final int fiscalMonth) {
//         final int offset = fiscalMonth <= 12 - fiscalYearStartMonth + 1 ? -1 : 0;
// 
//         return fiscalYear + offset;
//     }
// 
// }


// Path: src/test/java/de/xn__ho_hia/utils/fiscal_year/EarlyFiscalDateCalculatorTest.java
import org.junit.Assert;
import org.junit.Test;
import de.xn__ho_hia.utils.fiscal_year.EarlyFiscalDateCalculator;

/*
 * This file is part of fiscal-year. It is subject to the license terms in the LICENSE file found in the top-level
 * directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of fiscal-year,
 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
 * in the LICENSE file.
 */
package de.xn__ho_hia.utils.fiscal_year;



/**
 *
 *
 */
public class EarlyFiscalDateCalculatorTest {

    /**
     */
    @SuppressWarnings("static-method")
    @Test
    public void shouldRemainWithinCurrentYear() {
        final EarlyFiscalDateCalculator calculator = new EarlyFiscalDateCalculator(2);

        final int calendarYear = calculator.calculateCalendarYear(2035, 12);

        Assert.assertEquals(2035, calendarYear);
    }

    /**
     */
    @SuppressWarnings("static-method")
    @Test
    public void shouldBeInPastCalendarYear() {
        final EarlyFiscalDateCalculator calculator = new EarlyFiscalDateCalculator(2);