use of edu.cornell.kfs.pmw.batch.TaxRule in project cu-kfs by CU-CommunityApps.
the class PaymentWorksTaxRuleDependencyServiceImplTest method testDetermineTaxRuleToUseForDataPopulationForeignIndividual.
@Test
void testDetermineTaxRuleToUseForDataPopulationForeignIndividual() {
PaymentWorksVendor pmwVendor = new PaymentWorksVendor();
pmwVendor.setSupplierCategory("Foreign Individual");
pmwVendor.setRequestingCompanyTinType(PaymentWorksConstants.PaymentWorksTinType.FOREIGN_TIN.getPmwCodeAsString());
TaxRule actualResults = taxRuleService.determineTaxRuleToUseForDataPopulation(pmwVendor, "CA");
assertEquals(TaxRule.FOREIGN_INDIVIDUAL, actualResults);
}
use of edu.cornell.kfs.pmw.batch.TaxRule in project cu-kfs by CU-CommunityApps.
the class PaymentWorksTaxRuleDependencyServiceImplTest method testDetermineTaxRuleToUseForDataPopulationForeignIndividualUsTaxPayerId.
@Test
void testDetermineTaxRuleToUseForDataPopulationForeignIndividualUsTaxPayerId() {
PaymentWorksVendor pmwVendor = new PaymentWorksVendor();
pmwVendor.setSupplierCategory("Foreign Individual");
pmwVendor.setRequestingCompanyTinType(PaymentWorksConstants.PaymentWorksTinType.SSN.getPmwCodeAsString());
TaxRule actualResults = taxRuleService.determineTaxRuleToUseForDataPopulation(pmwVendor, "CA");
assertEquals(TaxRule.FOREIGN_INDIVIDUAL_US_TAX_PAYER, actualResults);
}
use of edu.cornell.kfs.pmw.batch.TaxRule in project cu-kfs by CU-CommunityApps.
the class PaymentWorksTaxRuleDependencyServiceImplTest method testDetermineTaxRuleToUseForDataPopulationForeignEntity.
@Test
void testDetermineTaxRuleToUseForDataPopulationForeignEntity() {
PaymentWorksVendor pmwVendor = new PaymentWorksVendor();
pmwVendor.setSupplierCategory("Foreign Entity");
TaxRule actualResults = taxRuleService.determineTaxRuleToUseForDataPopulation(pmwVendor, "CA");
assertEquals(TaxRule.FOREIGN_ENTITY, actualResults);
}
Aggregations