@Override @Test public void testCreateSingleBandDoubleInitialValue () { try { super.testCreateSingleBandDoubleInitialValue(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Override @Test public void testCreateThreeBandsIntInitialValue () { try { super.testCreateThreeBandsIntInitialValue(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Override @Test public void testCreateSingleBandDoubleBlack () { try { super.testCreateSingleBandDoubleBlack(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Test public void testCreateSingleBandUnsignedShortBlack () { log("testCreateSingleBandUnsignedShortBlack"); final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.UNSIGNED_SHORT)); assertImage(image, 1, 16, 16, EditableImage.DataType.UNSIGNED_SHORT); assertIntContents(image, 0); }
@Test public void testCreateSingleBandFloatBlack () { log("testCreateSingleBandFloatBlack"); final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.FLOAT)); assertImage(image, 1, 32, 32, EditableImage.DataType.FLOAT); assertFloatContents(image, 0f); }
@Test public void testCreateSingleBandDoubleBlack () { log("testCreateSingleBandDoubleBlack"); final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.DOUBLE)); assertImage(image, 1, 64, 64, EditableImage.DataType.DOUBLE); assertDoubleContents(image, 0); }
@Override @Test public void testCreateSingleBandFloatInitialValue () { try { super.testCreateSingleBandFloatInitialValue(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Override @Test public void testCreateSingleBandIntBlack () { try { super.testCreateSingleBandIntBlack(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Override @Test public void testCreateThreeBandsDoubleInitialValue () { try { super.testCreateThreeBandsDoubleInitialValue(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Override @Test public void testCreateSingleBandFloatBlack () { try { super.testCreateSingleBandFloatBlack(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Override @Test public void testCreateThreeBandsFloatInitialValue () { try { super.testCreateThreeBandsFloatInitialValue(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Override @Test public void testCreateSingleBandIntInitialValue () { try { super.testCreateSingleBandIntInitialValue(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Override @Test public void testCreateThreeBandsUnsignedShortInitialValue () { try { super.testCreateThreeBandsUnsignedShortInitialValue(); fail("Should be unsupported..."); } catch (UnsupportedOperationException e) { // ok } }
@Test public void testCreateSingleBandIntInitialValue () { log("testCreateSingleBandIntInitialValue"); for (int i = 0; i < intValues.length; i++) { final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.INT, intValues[i])); assertImage(image, 1, 32, 32, EditableImage.DataType.INT); assertIntContents(image, intValues[i]); } }
@Test public void testCreateSingleBandFloatInitialValue () { log("testCreateSingleBandFloatInitialValue"); for (int i = 0; i < floatValues.length; i++) { final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.FLOAT, floatValues[i])); assertImage(image, 1, 32, 32, EditableImage.DataType.FLOAT); assertFloatContents(image, floatValues[i]); } }
@Test public void testCreateSingleBandDoubleInitialValue () { log("testCreateSingleBandDoubleInitialValue"); for (int i = 0; i < doubleValues.length; i++) { final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.DOUBLE, doubleValues[i])); assertImage(image, 1, 64, 64, EditableImage.DataType.DOUBLE); assertDoubleContents(image, doubleValues[i]); } }
@Test public void testCreateSingleBandByteBlack () { log("testCreateSingleBandByteBlack"); final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.BYTE)); assertImage(image, 1, 8, 8, EditableImage.DataType.BYTE); assertIntContents(image, 0); }
@Test public void testCreateSingleBandIntBlack () { log("testCreateSingleBandFloatBlack"); final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.INT)); assertImage(image, 1, 32, 32, EditableImage.DataType.INT); assertIntContents(image, 0); }
@Test public void testCreateSingleBandByteInitialValue () { log("testCreateSingleBandByteInitialValue"); for (int i = 0; i < byteValues.length; i++) { final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.BYTE, byteValues[i])); assertImage(image, 1, 8, 8, EditableImage.DataType.BYTE); assertIntContents(image, byteValues[i]); } }
@Test public void testCreateSingleBandUnsignedShortInitialValue () { log("testCreateSingleBandUnsignedShortInitialValue"); for (int i = 0; i < shortValues.length; i++) { final EditableImage image = EditableImage.create(new CreateOp(WIDTH, HEIGHT, EditableImage.DataType.UNSIGNED_SHORT, shortValues[i])); assertImage(image, 1, 16, 16, EditableImage.DataType.UNSIGNED_SHORT); assertIntContents(image, shortValues[i]); } }