Sunteți pe pagina 1din 3

salariedincomedetails1 is a SalariedIncomeDetails initially {

latestGrossMonthlyIncome=400000;
secondGrossMonthlyIncome=600000;
thirdGrossMonthlyIncome=500000;
}

salariedincomedetails2 is a SalariedIncomeDetails initially {


latestGrossMonthlyIncome=400000;
secondGrossMonthlyIncome=600000;
thirdGrossMonthlyIncome=500000;
}

salariedincomedetails3 is a SalariedIncomeDetails initially {


latestGrossMonthlyIncome=400000;
secondGrossMonthlyIncome=600000;
thirdGrossMonthlyIncome=500000;
}

salariedincomedetails4 is a SalariedIncomeDetails initially {


latestGrossMonthlyIncome=400000;
secondGrossMonthlyIncome=600000;
thirdGrossMonthlyIncome=500000;
}

employmentdetails1 is a EmploymentDetails initially {


occupationType="IS";
}

employmentdetails2 is a EmploymentDetails initially {


occupationType="IS";
}

employmentdetails3 is a EmploymentDetails initially {


occupationType="IS";
}

employmentdetails4 is a EmploymentDetails initially {


occupationType="IS";
}

applicantdetails is a fixed array of 4 Applicant;


applicantdetails[0]= a Applicant initially{
isFinancialApplicant=true;
employmentDetails=employmentdetails1;
salariedIncomeDetails=salariedincomedetails1;
}
applicantdetails[1]= a Applicant initially{
isFinancialApplicant=true;
employmentDetails=employmentdetails2;
salariedIncomeDetails=salariedincomedetails2;
}

applicantdetails[2]= a Applicant initially{


isFinancialApplicant=true;
employmentDetails=employmentdetails3;
salariedIncomeDetails=salariedincomedetails3;
}
applicantdetails[3]= a Applicant initially{
isFinancialApplicant=true;
employmentDetails=employmentdetails4;
salariedIncomeDetails=salariedincomedetails4;
}

application is a Application initially {


applicantDetails=applicantdetails;
}

theRoot is some BOBRoot;


theRoot = TestObject;
theRoot.application = application;
theBT_Common.termSetInput = theRoot;
assert().assertEquals("The average CIBIL Score should be: ",400
,theBT_Common.avgCIBILScore, 0);

(
(
(anyApplicant.employmentDetails.occupationType = "INS" and
anyApplicant.selfEmployedIncomeDetails.avgGrossAnnualIncome < 180000 and
theBT_Common.loanAmount > 3 *
anyApplicant.selfEmployedIncomeDetails.avgGrossAnnualIncome )
or
(anyApplicant.employmentDetails.occupationType = "INS" and
anyApplicant.selfEmployedIncomeDetails.avgGrossAnnualIncome >= 180000 and
theBT_Common.loanAmount > 5 *
anyApplicant.selfEmployedIncomeDetails.avgGrossAnnualIncome )
)
)

(
(
(anyApplicant.employmentDetails.occupationType = "IS" and
anyApplicant.salariedIncomeDetails.avgGrossMonthlyIncome < 40000 and
theBT_Common.loanAmount > 42 *
anyApplicant.salariedIncomeDetails.avgGrossMonthlyIncome)
or
(anyApplicant.employmentDetails.occupationType = "IS" and
anyApplicant.salariedIncomeDetails.avgGrossMonthlyIncome >= 40000 and
anyApplicant.salariedIncomeDetails.avgGrossMonthlyIncome < 80000 and
theBT_Common.loanAmount > 48 *
anyApplicant.salariedIncomeDetails.avgGrossMonthlyIncome)
or
(anyApplicant.employmentDetails.occupationType = "IS" and
anyApplicant.salariedIncomeDetails.avgGrossMonthlyIncome >= 80000 and
theBT_Common.loanAmount > 54 *
anyApplicant.salariedIncomeDetails.avgGrossMonthlyIncome)
)
)

theRoot.proposedEMI > theRoot.amountLeftForFurtherDeductionNonSal +


theRoot.amountLeftForFurtherDeductionSal

( (
(anyApplicant.employmentDetails.occupationType = "IS" and
( anyApplicant.employmentDetails.noYrInCurrOrganization < 1 or
anyApplicant.employmentDetails.breakInService > 6) )
) )

S-ar putea să vă placă și