Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Update hash
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamuel-bs committed Oct 24, 2017
1 parent 5fb0a41 commit f742573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -875,5 +875,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
* {@link UnsignedBytes}
* {@link ValueType}
*/
static String __CLASS_HASH = "fWhFhDMIHuO9N51DDthfNA==";
static String __CLASS_HASH = "EzXb+gYbz78sOCBS83b8DA==";
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
import com.palantir.atlasdb.keyvalue.api.TableReference;

public class SchemaTest {

@Rule
public TemporaryFolder testFolder = new TemporaryFolder();

private static final String TEST_PACKAGE = "package";
private static final String TEST_TABLE_NAME = "TestTable";
private static final String TEST_PATH = TEST_PACKAGE + "/" + TEST_TABLE_NAME + "Table.java";
private static final TableReference TABLE_REF = TableReference.createWithEmptyNamespace(TEST_TABLE_NAME);
private static final String EXPECTED_FILES_FOLDER_PATH = "src/integrationInput/java";

@Test
public void testRendersGuavaOptionalsByDefault() throws IOException {
Expand Down Expand Up @@ -139,6 +139,7 @@ public void testLongTableNameLengthFailsNamespace() throws IOException {

@Test
// If you are intentionally making Table API changes, please manually regenerate the ApiTestSchema
// and copy the new files to the ${EXPECTED_FILES_FOLDER_PATH} folder.
public void checkAgainstAccidentalTableAPIChanges() throws IOException {
// TODO (amarzoca): Add tests for schemas that use more of the rendering features (Triggers, StreamStores, etc)
Schema schema = ApiTestSchema.getSchema();
Expand Down Expand Up @@ -170,7 +171,7 @@ private void checkIfFilesAreTheSame(List<String> generatedTestTables) {
String generatedFilePath =
String.format("com/palantir/atlasdb/table/description/generated/%s.java", tableName);

File expectedFile = new File("src/integrationInput/java", generatedFilePath);
File expectedFile = new File(EXPECTED_FILES_FOLDER_PATH, generatedFilePath);
File actualFile = new File(testFolder.getRoot(), generatedFilePath);
assertThat(actualFile).hasSameContentAs(expectedFile);
});
Expand Down

0 comments on commit f742573

Please sign in to comment.