use of org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException in project head by mifos.
the class LoanOfferingBOIntegrationTest method testBuildloanOfferingWithNoInterestTypes.
@Test
public void testBuildloanOfferingWithNoInterestTypes() throws SystemException, ApplicationException {
createIntitalObjects();
Date startDate = offSetCurrentDate(0);
try {
new LoanOfferingBO(TestObjectFactory.getContext(), "Loan Product", "LOAN", productCategory, prdApplicableMaster, startDate, null, new Money(getCurrency(), "1000"), new Money(getCurrency(), "3000"), 12.0, 2.0, 3.0, (short) 20, (short) 1, (short) 12, false, false, false, frequency, principalglCodeEntity, intglCodeEntity, waiverInterest);
Assert.fail();
} catch (ProductDefinitionException e) {
}
}
use of org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException in project head by mifos.
the class LoanOfferingBOIntegrationTest method testUpdateDefAmountNotBetweenMinMaxAmounts.
@Test
public void testUpdateDefAmountNotBetweenMinMaxAmounts() {
PrdApplicableMasterEntity prdApplicableMaster = new PrdApplicableMasterEntity(ApplicableTo.CLIENTS);
createIntitalObjects();
Date startDate = offSetCurrentDate(0);
Date endDate = offSetCurrentDate(2);
product = createLoanOfferingBO("Loan Product", "LOAP");
try {
product.update((short) 1, "Loan Product", "LOAN", productCategory, prdApplicableMaster, startDate, endDate, "Loan Product updated", PrdStatus.LOAN_ACTIVE, null, interestTypes, (short) 0, new Money(getCurrency(), "1000"), new Money(getCurrency(), "3000"), new Money(getCurrency(), "2000"), 12.0, 2.0, 3.0, (short) 20, (short) 1, (short) 12, false, false, false, null, null, null, (short) 2, RecurrenceType.WEEKLY, waiverInterest);
Assert.fail();
} catch (ProductDefinitionException e) {
}
}
use of org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException in project head by mifos.
the class LoanOfferingBOIntegrationTest method testupdateloanOfferingWithNoMaxAmount.
@Test
public void testupdateloanOfferingWithNoMaxAmount() throws SystemException, ApplicationException {
createIntitalObjects();
Date startDate = offSetCurrentDate(0);
product = createLoanOfferingBO("Loan Product", "LOAP");
try {
product.update((short) 1, "Loan Product", "LOAN", productCategory, prdApplicableMaster, startDate, null, "Loan Product updated", PrdStatus.LOAN_ACTIVE, null, interestTypes, (short) 0, null, new Money(getCurrency(), "1000"), new Money(getCurrency(), "2000"), 12.0, 2.0, 3.0, (short) 20, (short) 1, (short) 12, false, false, false, null, null, null, (short) 2, RecurrenceType.WEEKLY, waiverInterest);
Assert.fail();
} catch (ProductDefinitionException e) {
}
}
use of org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException in project head by mifos.
the class LoanOfferingBOIntegrationTest method testUpdateloanOfferingWithNoInterestTypes.
@Test
public void testUpdateloanOfferingWithNoInterestTypes() throws SystemException, ApplicationException {
createIntitalObjects();
Date startDate = offSetCurrentDate(0);
product = createLoanOfferingBO("Loan Product", "LOAP");
try {
product.update((short) 1, "Loan Product", "LOAN", productCategory, prdApplicableMaster, startDate, null, "Loan Product updated", PrdStatus.LOAN_ACTIVE, null, null, (short) 0, new Money(getCurrency(), "3000"), new Money(getCurrency(), "1000"), new Money(getCurrency(), "2000"), 12.0, 2.0, 3.0, (short) 20, (short) 1, (short) 12, false, false, false, null, null, null, (short) 2, RecurrenceType.WEEKLY, waiverInterest);
Assert.fail();
} catch (ProductDefinitionException e) {
}
}
use of org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException in project head by mifos.
the class LoanOfferingBOIntegrationTest method testUpdateDefInstallmentsNotBetweenMinMaxInstallments.
@Test
public void testUpdateDefInstallmentsNotBetweenMinMaxInstallments() {
createIntitalObjects();
Date startDate = offSetCurrentDate(0);
Date endDate = offSetCurrentDate(2);
product = createLoanOfferingBO("Loan Product", "LOAP");
try {
product.update((short) 1, "Loan Product", "LOAN", productCategory, prdApplicableMaster, startDate, endDate, "Loan Product updated", PrdStatus.LOAN_ACTIVE, null, interestTypes, (short) 0, new Money(getCurrency(), "3000"), new Money(getCurrency(), "1000"), new Money(getCurrency(), "1000"), 12.0, 2.0, 12.0, (short) 12, (short) 1, (short) 22, false, false, false, null, null, null, (short) 2, RecurrenceType.WEEKLY, waiverInterest);
Assert.fail();
} catch (ProductDefinitionException e) {
}
}
Aggregations