public class equals implements Testlet
{
public void test(TestHarness harness)
{
MultiPixelPackedSampleModel m1 = new MultiPixelPackedSampleModel(
DataBuffer.TYPE_INT, 10, 20, 8, 5, 1);
MultiPixelPackedSampleModel m2 = new MultiPixelPackedSampleModel(
DataBuffer.TYPE_INT, 10, 20, 8, 5, 1);
harness.check(m1.equals(m2));
harness.check(m2.equals(m1));
m1 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 10, 20, 8, 5, 1);
harness.check(!m1.equals(m2));
m2 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 10, 20, 8, 5, 1);
harness.check(m1.equals(m2));
m1 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 20, 8, 5, 1);
harness.check(!m1.equals(m2));
m2 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 20, 8, 5, 1);
harness.check(m1.equals(m2));
m1 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 21, 8, 5, 1);
harness.check(!m1.equals(m2));
m2 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 21, 8, 5, 1);
harness.check(m1.equals(m2));
m1 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 21, 4, 5, 1);
harness.check(!m1.equals(m2));
m2 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 21, 4, 5, 1);
harness.check(m1.equals(m2));
m1 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 21, 4, 6, 1);
harness.check(!m1.equals(m2));
m2 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 21, 4, 6, 1);
harness.check(m1.equals(m2));
m1 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 21, 4, 6, 2);
harness.check(!m1.equals(m2));
m2 = new MultiPixelPackedSampleModel(DataBuffer.TYPE_BYTE, 11, 21, 4, 6, 2);
harness.check(m1.equals(m2));
harness.check(!m1.equals(null));
harness.check(!m1.equals("Hello World!"));
}