APISonar


org.gnucash.android.export.ExportFormat.XML

> org > gnucash > android > export > ExportFormat > XML
org APIs gnucash APIs android APIs export APIs ExportFormat APIs XML APIs

Example 1
public void shouldCreateBackupFileName() throws Exporter.ExporterException {
        Exporter exporter = new GncXmlExporter(new ExportParams(ExportFormat.XML));
        List<String> xmlFiles = exporter.generateExport();

        assertThat(xmlFiles).hasSize(1);
        assertThat(new File(xmlFiles.get(0)))
                .exists()
                .hasExtension(ExportFormat.XML.getExtension().substring(1));

    }
Example 2
private static String getBackupFilePath(String bookUID){
        Book book = BooksDbAdapter.getInstance().getRecord(bookUID);
        return getBackupFolderPath(book.getUID())
               + Exporter.buildExportFilename(ExportFormat.XML, book.getDisplayName());
    }