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