@Test public void testReusablePersisters() { TableRenderer renderer = new TableRenderer("package", Namespace.DEFAULT_NAMESPACE, OptionalType.JAVA8); String renderedTableDefinition = renderer.render("table", getTableWithUserSpecifiedPersister(TABLE_REF), NO_INDICES); assertThat(renderedTableDefinition).contains("REUSABLE_PERSISTER.hydrateFromBytes") .contains("private final com.palantir.atlasdb.persister.JsonNodePersister REUSABLE_PERSISTER ="); }
public String render(String rawTableName, TableDefinition table, SortedSet<IndexMetadata> indices) { return new ClassRenderer(rawTableName, table, indices).render(); }
TableRenderer { public String render(String rawTableName, TableDefinition table, SortedSet<IndexMetadata> indices) { return new ClassRenderer(rawTableName, table, indices).render(); } }
TableRenderer { public String render(String rawTableName, TableDefinition table, SortedSet<IndexMetadata> indices) { return new ClassRenderer(rawTableName, table, indices).render(); } TableRenderer(String packageName, Namespace namespace, OptionalType optionalType); }
TableRenderer { public String render(String rawTableName, TableDefinition table, SortedSet<IndexMetadata> indices) { return new ClassRenderer(rawTableName, table, indices).render(); } TableRenderer(String packageName, Namespace namespace, OptionalType optionalType); String getClassName(String rawTableName, TableDefinition table); String render(String rawTableName, TableDefinition table, SortedSet<IndexMetadata> indices); }
TableRenderer { public String render(String rawTableName, TableDefinition table, SortedSet<IndexMetadata> indices) { return new ClassRenderer(rawTableName, table, indices).render(); } TableRenderer(String packageName, Namespace namespace, OptionalType optionalType); String getClassName(String rawTableName, TableDefinition table); String render(String rawTableName, TableDefinition table, SortedSet<IndexMetadata> indices);  }