| Line 206... |
Line 206... |
| 206 |
"HDFC Bank, ICICI Bank, State Bank of India, Axis Bank " + i, null, SEP_20));
|
206 |
"HDFC Bank, ICICI Bank, State Bank of India, Axis Bank " + i, null, SEP_20));
|
| 207 |
}
|
207 |
}
|
| 208 |
assertTrue(service.modelDetail(offer).length() <= 1024);
|
208 |
assertTrue(service.modelDetail(offer).length() <= 1024);
|
| 209 |
assertTrue(service.modelTitle(offer).length() <= 256);
|
209 |
assertTrue(service.modelTitle(offer).length() <= 256);
|
| 210 |
}
|
210 |
}
|
| - |
|
211 |
|
| - |
|
212 |
// ------------------------------------------------------ scheme without months
|
| - |
|
213 |
|
| - |
|
214 |
/**
|
| - |
|
215 |
* Edge 60 Pro's Rs.2,500, Sep'26 page 9 row 21: the tenure cell is a bare "CIB" -
|
| - |
|
216 |
* the circular names the EMI type and gives no months.
|
| - |
|
217 |
*
|
| - |
|
218 |
* 52 offers are of this shape and every one carries a cashback, so dropping the cell
|
| - |
|
219 |
* left the badge silent about the EMI it applies to. The type is stated because the
|
| - |
|
220 |
* circular stated it; the months are NOT invented, because it did not give them.
|
| - |
|
221 |
*/
|
| - |
|
222 |
@Test
|
| - |
|
223 |
public void statesASchemeThatWasGivenWithoutMonths() {
|
| - |
|
224 |
Line line = cashback("CC_EMI", "2500", "IDFC First Bank", null, SEP_20);
|
| - |
|
225 |
line.schemeOnly = "CIB";
|
| - |
|
226 |
String detail = service.modelDetail(model("Motorola", line));
|
| - |
|
227 |
assertTrue(detail, detail.contains("Rs.2,500 on Credit Card EMI (CIB)"));
|
| - |
|
228 |
// no fabricated tenure
|
| - |
|
229 |
assertTrue(detail, !detail.matches(".*CIB \\d.*"));
|
| - |
|
230 |
}
|
| - |
|
231 |
|
| - |
|
232 |
/** A scheme code is never attached to a mode that has no EMI at all. */
|
| - |
|
233 |
@Test
|
| - |
|
234 |
public void doesNotPutASchemeOnAFullSwipeLine() {
|
| - |
|
235 |
Line line = cashback("CC_FULL_SWIPE", "2000", "IDFC First Bank", null, SEP_20);
|
| - |
|
236 |
line.schemeOnly = "CIB";
|
| - |
|
237 |
String detail = service.modelDetail(model("Motorola", line));
|
| - |
|
238 |
assertTrue(detail, detail.contains("Rs.2,000 on Credit Card Full Swipe"));
|
| - |
|
239 |
assertTrue(detail, !detail.contains("(CIB)"));
|
| - |
|
240 |
}
|
| - |
|
241 |
|
| - |
|
242 |
/** Real months always win over a bare code. */
|
| - |
|
243 |
@Test
|
| - |
|
244 |
public void prefersRealTenuresOverTheBareCode() {
|
| - |
|
245 |
Line line = cashback("CC_EMI", "3000", "HDFC Bank", "LCE 3, 6 months", SEP_20);
|
| - |
|
246 |
line.schemeOnly = "CIB";
|
| - |
|
247 |
String detail = service.modelDetail(model("Samsung", line));
|
| - |
|
248 |
assertTrue(detail, detail.contains("(LCE 3, 6 months)"));
|
| - |
|
249 |
assertTrue(detail, !detail.contains("(CIB)"));
|
| - |
|
250 |
}
|
| 211 |
}
|
251 |
}
|