diff --git a/src/test/java/com/samskivert/depot/EnumKeyRecord.java b/src/test/java/com/samskivert/depot/EnumKeyRecord.java index 4b74ab7..8062d36 100644 --- a/src/test/java/com/samskivert/depot/EnumKeyRecord.java +++ b/src/test/java/com/samskivert/depot/EnumKeyRecord.java @@ -20,7 +20,14 @@ public class EnumKeyRecord extends PersistentRecord public static final int SCHEMA_VERSION = 1; - public enum Type { A, B, C, D }; + public enum Type { + A, B, C, D; + + // override toString to be sure that we don't rely on it in our internals + public String toString () { + return "Type:" + name(); + } + }; /** The type is key. */ @Id public Type type;