Package io.ebean.test

Class DbJson.PrettyJson

    • Method Detail

      • replace

        public DbJson.PrettyJson replace​(String... propertyNames)
        Replace the values of the given properties with a placeholder value.

        Typically we do this on generated properties such as id and timestamp properties.

      • assertContentMatches

        public void assertContentMatches​(String resourcePath)
        Assert the json matches the content at the given resource path.
        
        
            DbJson.of(timedEntries)
              .replace("id", "eventTime")
              .assertContentMatches("/assertJson/full-1-timed.json");