|
|
|
@ -16,6 +16,9 @@ public class DemoDataConfig extends AbstractDataConfig {
|
|
|
|
|
private ExtendedField y = new ExtendedField(); |
|
|
|
|
private ExtendedField z = new ExtendedField(); |
|
|
|
|
|
|
|
|
|
private ExtendedField expect = new ExtendedField(); |
|
|
|
|
private ExtendedField actual = new ExtendedField(); |
|
|
|
|
|
|
|
|
|
public ExtendedField getX() { |
|
|
|
|
return x; |
|
|
|
|
} |
|
|
|
@ -48,12 +51,30 @@ public class DemoDataConfig extends AbstractDataConfig {
|
|
|
|
|
this.targetName = targetName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ExtendedField getExpect() { |
|
|
|
|
return expect; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setExpect(ExtendedField expect) { |
|
|
|
|
this.expect = expect; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ExtendedField getActual() { |
|
|
|
|
return actual; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setActual(ExtendedField actual) { |
|
|
|
|
this.actual = actual; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected void readAttr(XMLableReader reader) { |
|
|
|
|
readExtendedField(x, "x", reader); |
|
|
|
|
this.setTargetName(reader.getAttrAsString("targetName", "")); |
|
|
|
|
readExtendedField(y, "y", reader); |
|
|
|
|
readExtendedField(z, "z", reader); |
|
|
|
|
readExtendedField(expect, "expect", reader); |
|
|
|
|
readExtendedField(actual, "actual", reader); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -62,6 +83,8 @@ public class DemoDataConfig extends AbstractDataConfig {
|
|
|
|
|
writer.attr("targetName", this.getTargetName()); |
|
|
|
|
writeExtendedField(y, "y", writer); |
|
|
|
|
writeExtendedField(z, "z", writer); |
|
|
|
|
writeExtendedField(expect, "expect", writer); |
|
|
|
|
writeExtendedField(actual, "actual", writer); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -69,7 +92,9 @@ public class DemoDataConfig extends AbstractDataConfig {
|
|
|
|
|
return new ExtendedField[]{ |
|
|
|
|
x, |
|
|
|
|
y, |
|
|
|
|
z |
|
|
|
|
z, |
|
|
|
|
expect, |
|
|
|
|
actual |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -80,12 +105,15 @@ public class DemoDataConfig extends AbstractDataConfig {
|
|
|
|
|
result.setTargetName(this.getTargetName()); |
|
|
|
|
result.setY(this.getY().clone()); |
|
|
|
|
result.setZ(this.getZ().clone()); |
|
|
|
|
result.setExpect(this.getExpect().clone()); |
|
|
|
|
result.setActual(this.getActual().clone()); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int hashCode() { |
|
|
|
|
return super.hashCode() + AssistUtils.hashCode(this.getX(), this.getY(), this.getZ(), this.getTargetName()); |
|
|
|
|
return super.hashCode() + AssistUtils.hashCode(this.getX(), this.getY(), this.getZ(), |
|
|
|
|
this.getTargetName(), this.getExpect(), this.getActual()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -95,6 +123,8 @@ public class DemoDataConfig extends AbstractDataConfig {
|
|
|
|
|
&& AssistUtils.equals(this.getTargetName(), ((DemoDataConfig) obj).getTargetName()) |
|
|
|
|
&& AssistUtils.equals(this.getY(), ((DemoDataConfig) obj).getY()) |
|
|
|
|
&& AssistUtils.equals(this.getZ(), ((DemoDataConfig) obj).getZ()) |
|
|
|
|
&& AssistUtils.equals(this.getExpect(), ((DemoDataConfig) obj).getExpect()) |
|
|
|
|
&& AssistUtils.equals(this.getActual(), ((DemoDataConfig) obj).getActual()) |
|
|
|
|
; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|