Lines Matching refs:index
28 int index = 0;
30 InvalidPathException exception = new InvalidPathException(input, reason, index);
31 assertEquals(index, exception.getIndex());
35 // Test the case where index = -1.
36 index = -1;
37 exception = new InvalidPathException(input, reason, index);
38 assertEquals(index, exception.getIndex());
42 // Test the case where index < -1;
43 index = -2;
45 new InvalidPathException(input, reason, index);
49 // Test the case where input is null, reason is not null and index >= -1.
51 index = 0;
52 new InvalidPathException(null, reason, index);
56 // Test the case where input is null, reason is not null and index < -1.
58 index = -1;
59 new InvalidPathException(null, reason, index);
63 // Test the case where reason is null, input is not null and index >= -1.
65 index = 0;
66 new InvalidPathException(input, null, index);
70 // Test the case where input is not null, reason is null and index < -1.
72 index = -1;
73 new InvalidPathException(input, null, index);