/*
 * Copyright (C) 2003, 2004 Joe Walnes.
 * Copyright (C) 2006, 2007 XStream Committers.
 * All rights reserved.
 *
 * The software in this package is published under the terms of the BSD
 * style license a copy of which has been included with this distribution in
 * the LICENSE.txt file.
 * 
 * Created on 25. October 2003 by Joe Walnes
 */
package com.thoughtworks.acceptance.objects;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.io.Serializable;

public class StandardObject implements Serializable {
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj);
    }

    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}

@@ -63,16 +63,22 @@
 06, 2007
+, 2011
  XStream
@@ -90,16 +90,16 @@
 itters.%0A
-
  * All r
@@ -390,16 +390,73 @@
 jects;%0A%0A
+import org.apache.commons.lang.builder.CompareToBuilder;%0A
 import o
@@ -695,16 +695,28 @@
 alizable
+, Comparable
  %7B%0A    p
@@ -934,24 +934,24 @@
 oString() %7B%0A
-
         retu
@@ -1000,11 +1000,119 @@
 );%0A    %7D
+%0A%0A    public int compareTo(Object obj) %7B%0A        return CompareToBuilder.reflectionCompare(this, obj);%0A    %7D
 %0A%7D%0A

Make Java 7 compatible.