@Test public void shouldOverwriteToString() throws Exception { String xmlFile = "resources/changes/v1/changeDescription.xml"; XMLChangeDescription changeDescription = TestUtils.loadXML(XMLChangeDescription.class, xmlFile); assertTrue(changeDescription.toString().contains("changes")); }
@Override public String toString() { return ToStringBuilder.reflectionToString(this); }
XMLChangeDescription { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
XMLChangeDescription { @Override public String toString() { return ToStringBuilder.reflectionToString(this); }  }
XMLChangeDescription { @Override public String toString() { return ToStringBuilder.reflectionToString(this); }  @XmlElements({ @XmlElement(name = "beanShell", namespace = "http://firefly.neuland-bfi.de/v1", type = XMLBeanShell.class), @XmlElement(name = "groovy", namespace = "http://firefly.neuland-bfi.de/v1", type = XMLGroovy.class), @XmlElement(name = "impEx", namespace = "http://firefly.neuland-bfi.de/v1", type = XMLImpEx.class), @XmlElement(name = "sql", namespace = "http://firefly.neuland-bfi.de/v1", type = XMLSql.class) }) List<XMLChange> getChanges(); @XmlElement(name = "precondition", namespace = "http://firefly.neuland-bfi.de/v1") List<XMLPrecondition> getPreconditions(); @Override String toString(); }
XMLChangeDescription { @Override public String toString() { return ToStringBuilder.reflectionToString(this); }  @XmlElements({ @XmlElement(name = "beanShell", namespace = "http://firefly.neuland-bfi.de/v1", type = XMLBeanShell.class), @XmlElement(name = "groovy", namespace = "http://firefly.neuland-bfi.de/v1", type = XMLGroovy.class), @XmlElement(name = "impEx", namespace = "http://firefly.neuland-bfi.de/v1", type = XMLImpEx.class), @XmlElement(name = "sql", namespace = "http://firefly.neuland-bfi.de/v1", type = XMLSql.class) }) List<XMLChange> getChanges(); @XmlElement(name = "precondition", namespace = "http://firefly.neuland-bfi.de/v1") List<XMLPrecondition> getPreconditions(); @Override String toString();  }