Package uk.gov.nationalarchives.droid.export.interfaces

Examples of uk.gov.nationalarchives.droid.export.interfaces.JobOptions


   
    @Test
    public void testWriteHeadersOnOpen() throws IOException {
        Writer writer = mock(Writer.class);
       
        JobOptions jobOptions = mock(JobOptions.class);
        when(jobOptions.getParameter("location")).thenReturn("test.csv");

       // String hashAlgorithm = config.getProperties().getProperty("HASH_ALGORITHM").toString();
        when(config.getBooleanProperty(DroidGlobalProperty.CSV_EXPORT_ROW_PER_FORMAT)).thenReturn(false);
        itemWriter.setOptions(ExportOptions.ONE_ROW_PER_FORMAT);
        itemWriter.open(writer);
View Full Code Here

TOP

Related Classes of uk.gov.nationalarchives.droid.export.interfaces.JobOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.