@Test public void testEquals() { DiagramSet a = new DiagramSet(); DiagramSet b = new DiagramSet(); assertEquals(a, b); DefaultImport defaultImport = new DefaultImport("className"); WSDLImport wsdlImport = new WSDLImport("location", "namespace"); ImportsValue importsValue = new ImportsValue(); importsValue.addImport(defaultImport); importsValue.addImport(wsdlImport); DiagramSet c = new DiagramSet(); c.setImports(new Imports(importsValue)); DiagramSet d = new DiagramSet(); assertNotEquals(c, d); }
@Override public boolean equals(Object o) { if (o instanceof DiagramSet) { DiagramSet other = (DiagramSet) o; return Objects.equals(name, other.name) && Objects.equals(documentation, other.documentation) && Objects.equals(id, other.id) && Objects.equals(packageProperty, other.packageProperty) && Objects.equals(processType, other.processType) && Objects.equals(version, other.version) && Objects.equals(adHoc, other.adHoc) && Objects.equals(processInstanceDescription, other.processInstanceDescription) && Objects.equals(imports, other.imports) && Objects.equals(executable, other.executable) && Objects.equals(slaDueDate, other.slaDueDate); } return false; }
DiagramSet implements BaseDiagramSet { @Override public boolean equals(Object o) { if (o instanceof DiagramSet) { DiagramSet other = (DiagramSet) o; return Objects.equals(name, other.name) && Objects.equals(documentation, other.documentation) && Objects.equals(id, other.id) && Objects.equals(packageProperty, other.packageProperty) && Objects.equals(processType, other.processType) && Objects.equals(version, other.version) && Objects.equals(adHoc, other.adHoc) && Objects.equals(processInstanceDescription, other.processInstanceDescription) && Objects.equals(imports, other.imports) && Objects.equals(executable, other.executable) && Objects.equals(slaDueDate, other.slaDueDate); } return false; } }
DiagramSet implements BaseDiagramSet { @Override public boolean equals(Object o) { if (o instanceof DiagramSet) { DiagramSet other = (DiagramSet) o; return Objects.equals(name, other.name) && Objects.equals(documentation, other.documentation) && Objects.equals(id, other.id) && Objects.equals(packageProperty, other.packageProperty) && Objects.equals(processType, other.processType) && Objects.equals(version, other.version) && Objects.equals(adHoc, other.adHoc) && Objects.equals(processInstanceDescription, other.processInstanceDescription) && Objects.equals(imports, other.imports) && Objects.equals(executable, other.executable) && Objects.equals(slaDueDate, other.slaDueDate); } return false; } DiagramSet();  DiagramSet(final @MapsTo("name") Name name,
                      final @MapsTo("documentation") Documentation documentation,
                      final @MapsTo("id") Id id,
                      final @MapsTo("packageProperty") Package packageProperty,
                      final @MapsTo("processType") ProcessType processType,
                      final @MapsTo("version") Version version,
                      final @MapsTo(ADHOC) AdHoc adHoc,
                      final @MapsTo("processInstanceDescription") ProcessInstanceDescription processInstanceDescription,
                      final @MapsTo("imports") Imports imports,
                      final @MapsTo("executable") Executable executable,
                      final @MapsTo("slaDueDate") SLADueDate slaDueDate);  DiagramSet(final String name); }
DiagramSet implements BaseDiagramSet { @Override public boolean equals(Object o) { if (o instanceof DiagramSet) { DiagramSet other = (DiagramSet) o; return Objects.equals(name, other.name) && Objects.equals(documentation, other.documentation) && Objects.equals(id, other.id) && Objects.equals(packageProperty, other.packageProperty) && Objects.equals(processType, other.processType) && Objects.equals(version, other.version) && Objects.equals(adHoc, other.adHoc) && Objects.equals(processInstanceDescription, other.processInstanceDescription) && Objects.equals(imports, other.imports) && Objects.equals(executable, other.executable) && Objects.equals(slaDueDate, other.slaDueDate); } return false; } DiagramSet();  DiagramSet(final @MapsTo("name") Name name,
                      final @MapsTo("documentation") Documentation documentation,
                      final @MapsTo("id") Id id,
                      final @MapsTo("packageProperty") Package packageProperty,
                      final @MapsTo("processType") ProcessType processType,
                      final @MapsTo("version") Version version,
                      final @MapsTo(ADHOC) AdHoc adHoc,
                      final @MapsTo("processInstanceDescription") ProcessInstanceDescription processInstanceDescription,
                      final @MapsTo("imports") Imports imports,
                      final @MapsTo("executable") Executable executable,
                      final @MapsTo("slaDueDate") SLADueDate slaDueDate);  DiagramSet(final String name); @Override Name getName(); void setName(final Name name); @Override Documentation getDocumentation(); void setDocumentation(final Documentation documentation); @Override Id getId(); void setId(Id id); @Override Package getPackageProperty(); void setPackageProperty(final Package packageProperty); @Override ProcessType getProcessType(); void setProcessType(ProcessType processType); @Override Version getVersion(); void setVersion(final Version version); @Override AdHoc getAdHoc(); void setAdHoc(final AdHoc adHoc); @Override ProcessInstanceDescription getProcessInstanceDescription(); void setProcessInstanceDescription(final ProcessInstanceDescription processInstanceDescription); @Override Imports getImports(); void setImports(Imports imports); @Override Executable getExecutable(); void setExecutable(final Executable executable); @Override SLADueDate getSlaDueDate(); void setSlaDueDate(final SLADueDate slaDueDate); @Override int hashCode(); @Override boolean equals(Object o); }
DiagramSet implements BaseDiagramSet { @Override public boolean equals(Object o) { if (o instanceof DiagramSet) { DiagramSet other = (DiagramSet) o; return Objects.equals(name, other.name) && Objects.equals(documentation, other.documentation) && Objects.equals(id, other.id) && Objects.equals(packageProperty, other.packageProperty) && Objects.equals(processType, other.processType) && Objects.equals(version, other.version) && Objects.equals(adHoc, other.adHoc) && Objects.equals(processInstanceDescription, other.processInstanceDescription) && Objects.equals(imports, other.imports) && Objects.equals(executable, other.executable) && Objects.equals(slaDueDate, other.slaDueDate); } return false; } DiagramSet();  DiagramSet(final @MapsTo("name") Name name,
                      final @MapsTo("documentation") Documentation documentation,
                      final @MapsTo("id") Id id,
                      final @MapsTo("packageProperty") Package packageProperty,
                      final @MapsTo("processType") ProcessType processType,
                      final @MapsTo("version") Version version,
                      final @MapsTo(ADHOC) AdHoc adHoc,
                      final @MapsTo("processInstanceDescription") ProcessInstanceDescription processInstanceDescription,
                      final @MapsTo("imports") Imports imports,
                      final @MapsTo("executable") Executable executable,
                      final @MapsTo("slaDueDate") SLADueDate slaDueDate);  DiagramSet(final String name); @Override Name getName(); void setName(final Name name); @Override Documentation getDocumentation(); void setDocumentation(final Documentation documentation); @Override Id getId(); void setId(Id id); @Override Package getPackageProperty(); void setPackageProperty(final Package packageProperty); @Override ProcessType getProcessType(); void setProcessType(ProcessType processType); @Override Version getVersion(); void setVersion(final Version version); @Override AdHoc getAdHoc(); void setAdHoc(final AdHoc adHoc); @Override ProcessInstanceDescription getProcessInstanceDescription(); void setProcessInstanceDescription(final ProcessInstanceDescription processInstanceDescription); @Override Imports getImports(); void setImports(Imports imports); @Override Executable getExecutable(); void setExecutable(final Executable executable); @Override SLADueDate getSlaDueDate(); void setSlaDueDate(final SLADueDate slaDueDate); @Override int hashCode(); @Override boolean equals(Object o); static final String ADHOC; }