improved tests

This commit is contained in:
Timo Westkämper 2010-10-07 07:23:59 +00:00
parent 412bb42949
commit c12fc9e91d

View File

@ -41,7 +41,10 @@ class ScalaMetaDataSerializerTest {
val serializer = new ScalaMetaDataSerializer("Q", namingStrategy);
serializer.serialize(entityType, SimpleSerializerConfig.DEFAULT, new ScalaWriter(writer));
val str = writer.toString();
assertTrue("companion object isn't before class", str.indexOf("object") < str.indexOf("class"));
assertTrue("companion object isn't before annotations", str.indexOf("object") < str.indexOf("@Table"));
System.err.println(str);
}
}