}
private void test1(TestHarness harness)
{
harness.checkPoint("(int, int, int, double, DataBuffer)");
DataBuffer db = new DataBufferDouble(12);
ComponentSampleModel m = new ComponentSampleModel(DataBuffer.TYPE_DOUBLE,
3, 2, 2, 6, new int[] {0, 1});
m.setSample(2, 1, 0, 99.9, db);
harness.check(db.getElem(0, 10), 99.0d);
m.setSample(2, 1, 1, 88.8, db);
harness.check(db.getElem(0, 11), 88.0d);
// what happens if the data buffer doesn't hold doubles?
DataBuffer db2 = new DataBufferInt(12);
m.setSample(2, 1, 0, 99.9d, db2);
harness.check(db2.getElem(0, 10), 99);
m.setSample(2, 1, 1, 88.8d, db2);
harness.check(db2.getElem(0, 11), 88);
// check that a null data buffer generates a NullPointerException
boolean pass = false;
try
{