Package io.ebean.test
Class DbJson
- java.lang.Object
-
- io.ebean.test.DbJson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDbJson.PrettyJsonContains the JSON of beans(s).
-
Constructor Summary
Constructors Constructor Description DbJson()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DbJson.PrettyJsonof(Object bean)Create a PrettyJson object that has the JSON form of the entity bean or beans.static StringreadResource(String resourcePath)Read the content for the given resource path.
-
-
-
Constructor Detail
-
DbJson
public DbJson()
-
-
Method Detail
-
of
public static DbJson.PrettyJson of(Object bean)
Create a PrettyJson object that has the JSON form of the entity bean or beans.DbJson.of(timedEntries) .replace("id", "eventTime") .assertContentMatches("/assertJson/full-1-timed.json");
-
readResource
public static String readResource(String resourcePath)
Read the content for the given resource path.
-
-