Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public class GlossaryExportWriter {

private static final String[] AUDIT_HEADERS = {
"Record Type", "Name", "Glossary Name", "Short Description", "Long Description",
"Status", "Classifications", "Custom Attributes", "Related Categories / Parent",
"Qualified Name", "GUID"
"Status", "Classifications", "Custom Attributes", "Qualified Name", "GUID"
};

public void write(OutputStream outputStream, List<GlossaryExportRow> rows,
Expand Down Expand Up @@ -133,7 +132,6 @@ private String[] toAuditRow(GlossaryExportRow row) {
safe(row.getStatus()),
safe(row.getClassifications()),
safe(row.getCustomAttributes()),
safe(row.getRelatedCategoriesOrParent()),
safe(row.getQualifiedName()),
safe(row.getGuid())
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public void testWriteAuditCsv() throws Exception {
assertTrue(csv.contains("BankBranch"));
assertTrue(csv.contains("testBankingGlossary"));
assertTrue(csv.contains("Record Type"));
assertTrue(!csv.contains("Related Categories / Parent"));

}

@Test
Expand All @@ -71,6 +73,9 @@ public void testWriteAuditXlsx() throws Exception {
Row data = sheet.getRow(1);

assertEquals(header.getCell(0).getStringCellValue(), "Record Type");
assertEquals(header.getCell(8).getStringCellValue(), "Qualified Name");
assertEquals(header.getCell(9).getStringCellValue(), "GUID");
assertEquals(header.getLastCellNum(), (short) 10);
assertEquals(data.getCell(1).getStringCellValue(), "BankBranch");
assertEquals(data.getCell(2).getStringCellValue(), "testBankingGlossary");
}
Expand Down