@Test public void testCopyPlacemarkGroupsOnlyForNullSubset() throws IOException { final PlacemarkDescriptor pinDescriptor = PinDescriptor.getInstance(); final PlacemarkDescriptor gcpDescriptor = GcpDescriptor.getInstance(); final Placemark pin1 = Placemark.createPointPlacemark(pinDescriptor, "P1", "", "", new PixelPos(1.5f, 1.5f), null, product.getGeoCoding()); final Placemark pin2 = Placemark.createPointPlacemark(pinDescriptor, "P2", "", "", new PixelPos(3.5f, 3.5f), null, product.getGeoCoding()); final Placemark pin3 = Placemark.createPointPlacemark(pinDescriptor, "P3", "", "", new PixelPos(9.5f, 9.5f), null, product.getGeoCoding()); final Placemark gcp1 = Placemark.createPointPlacemark(gcpDescriptor, "G1", "", "", new PixelPos(2.5f, 2.5f), null, product.getGeoCoding()); final Placemark gcp2 = Placemark.createPointPlacemark(gcpDescriptor, "G2", "", "", new PixelPos(4.5f, 4.5f), null, product.getGeoCoding()); final Placemark gcp3 = Placemark.createPointPlacemark(gcpDescriptor, "G3", "", "", new PixelPos(10.5f, 10.5f), null, product.getGeoCoding()); product.getPinGroup().add(pin1); product.getPinGroup().add(pin2); product.getPinGroup().add(pin3); product.getGcpGroup().add(gcp1); product.getGcpGroup().add(gcp2); product.getGcpGroup().add(gcp3); assertEquals(3, product.getPinGroup().getNodeCount()); assertEquals(3, product.getGcpGroup().getNodeCount()); final ProductSubsetDef subsetDef = null; final Product product2 = ProductSubsetBuilder.createProductSubset(product, subsetDef, "subset", ""); assertEquals(3, product2.getPinGroup().getNodeCount()); assertEquals(3, product2.getGcpGroup().getNodeCount()); assertEquals("P1", product2.getPinGroup().get(0).getName()); assertEquals("P2", product2.getPinGroup().get(1).getName()); assertEquals("P3", product2.getPinGroup().get(2).getName()); assertEquals("G1", product2.getGcpGroup().get(0).getName()); assertEquals("G2", product2.getGcpGroup().get(1).getName()); assertEquals("G3", product2.getGcpGroup().get(2).getName()); }
public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name,
                                              String desc); static Product createProductSubset(Product sourceProduct, boolean sourceProductOwner,
                                              ProductSubsetDef subsetDef, String name, String desc); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name,
                                              String desc); static Product createProductSubset(Product sourceProduct, boolean sourceProductOwner,
                                              ProductSubsetDef subsetDef, String name, String desc);  }