Modified Files:
ResultSetTest.java
assertTrue(rs.next());
assertEquals(-1,rs.getByte(1));
- int count = 3;
while (rs.next())
{
+ thrown = false;
try
{
rs.getByte(1);
}
if (!thrown)
fail("Exception expected.");
- count++;
}
- if (count != 9)
- fail("Exception expected.");
}
public void testgetShort() throws Exception
assertTrue(rs.next());
assertEquals(-1,rs.getShort(1));
- int count = 3;
while (rs.next())
{
+ thrown = false;
try
{
rs.getShort(1);
}
if (!thrown)
fail("Exception expected.");
- count++;
}
- if (count != 9)
- fail("Exception expected.");
}
}