@Test public void sholdClone() { ModelsForTest models = new ModelsForTest(ServiceType.SOAP, PackageType.COMMAND_LINE); DeployableServiceSpec airlineSpec = models.getAirlineSpec(); DeployableServiceSpec cloned = airlineSpec.clone(); assertEquals(airlineSpec, cloned); assertTrue(cloned != airlineSpec); }
public DeployableServiceSpec clone() { return (DeployableServiceSpec) SerializationUtils.clone(this); }
DeployableServiceSpec extends ServiceSpec implements Serializable { public DeployableServiceSpec clone() { return (DeployableServiceSpec) SerializationUtils.clone(this); } }
DeployableServiceSpec extends ServiceSpec implements Serializable { public DeployableServiceSpec clone() { return (DeployableServiceSpec) SerializationUtils.clone(this); } DeployableServiceSpec();  DeployableServiceSpec(String name, ServiceType serviceType, PackageType packageType,
	    ResourceImpact resourceImpact, String version, String packageUri, int port, String endpointName,
	    int numberOfInstances);  DeployableServiceSpec(String name, ServiceType serviceType, PackageType packageType,
	    ResourceImpact resourceImpact, String version, String packageUri, String endpointName, int numberOfInstances); }
DeployableServiceSpec extends ServiceSpec implements Serializable { public DeployableServiceSpec clone() { return (DeployableServiceSpec) SerializationUtils.clone(this); } DeployableServiceSpec();  DeployableServiceSpec(String name, ServiceType serviceType, PackageType packageType,
	    ResourceImpact resourceImpact, String version, String packageUri, int port, String endpointName,
	    int numberOfInstances);  DeployableServiceSpec(String name, ServiceType serviceType, PackageType packageType,
	    ResourceImpact resourceImpact, String version, String packageUri, String endpointName, int numberOfInstances); void setNumberOfInstances(int numberOfInstances); String getPackageUri(); void setPackageUri(String packageUri); PackageType getPackageType(); void setPackageType(PackageType packageType); String getEndpointName(); void setEndpointName(String endpointName); String getOwner(); void setOwner(String owner); String getGroup(); void setGroup(String group); ResourceImpact getResourceImpact(); void setResourceImpact(ResourceImpact resourceImpact); String getVersion(); void setVersion(String version); int getNumberOfInstances(); void setPort(int port); int getPort(); @Override int hashCode(); @Override boolean equals(Object obj); DeployableServiceSpec clone(); @Override String toString(); DesiredQoS getDesiredQoS(); void setDesiredQoS(DesiredQoS desiredQoS); }
DeployableServiceSpec extends ServiceSpec implements Serializable { public DeployableServiceSpec clone() { return (DeployableServiceSpec) SerializationUtils.clone(this); } DeployableServiceSpec();  DeployableServiceSpec(String name, ServiceType serviceType, PackageType packageType,
	    ResourceImpact resourceImpact, String version, String packageUri, int port, String endpointName,
	    int numberOfInstances);  DeployableServiceSpec(String name, ServiceType serviceType, PackageType packageType,
	    ResourceImpact resourceImpact, String version, String packageUri, String endpointName, int numberOfInstances); void setNumberOfInstances(int numberOfInstances); String getPackageUri(); void setPackageUri(String packageUri); PackageType getPackageType(); void setPackageType(PackageType packageType); String getEndpointName(); void setEndpointName(String endpointName); String getOwner(); void setOwner(String owner); String getGroup(); void setGroup(String group); ResourceImpact getResourceImpact(); void setResourceImpact(ResourceImpact resourceImpact); String getVersion(); void setVersion(String version); int getNumberOfInstances(); void setPort(int port); int getPort(); @Override int hashCode(); @Override boolean equals(Object obj); DeployableServiceSpec clone(); @Override String toString(); DesiredQoS getDesiredQoS(); void setDesiredQoS(DesiredQoS desiredQoS);  }