package org.innovateuk.ifs.finance.domain;

import org.innovateuk.ifs.application.domain.Application;
import org.innovateuk.ifs.organisation.domain.Organisation;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class ApplicationFinanceTest {
    private ApplicationFinance applicationFinance;
    private Organisation organisation;
    private Application application;
    private String workPostcode;

    @Before
    public void setUp() {
        organisation = new Organisation("Worth Internet Systems");
        application = new Application();
        applicationFinance = new ApplicationFinance(application, organisation);
    }

    @Test
    public void constructorsShouldCreateInstancesOnValidInput() {
        new ApplicationFinance();
        new ApplicationFinance(application, organisation);
    }

    @Test
    public void applicationFinanceShouldReturnCorrectAttributeValues() {
        assertEquals(applicationFinance.getOrganisation(), organisation);
        assertEquals(applicationFinance.getApplication(), application);
    }

    @Test
    public void applicationFinanceShouldReturnCorrectAttributeValuesAfterSetId() {
        Long newId = 2L;
        applicationFinance.setId(newId);
        assertEquals(applicationFinance.getId(), newId);
    }
}
@@ -418,41 +418,8 @@
 ion;
-%0A    private String workPostcode;
 %0A%0A  

Work postcode field removed from ApplicationFinanceTest