// Path: src/main/java/br/com/tecsinapse/dataio/util/Constants.java
// @UtilityClass
// public final class Constants {
// 
//     public static final short DECIMAL_PRECISION = 10;
//     public static final Locale LOCALE_PT_BR = new Locale("pt", "BR");
//     public static final Locale LOCALE_ES_ES = new Locale("es", "ES");
//     public static final String MSG_IGNORED = "Ignored";
//     public static final String MIME_XLS = "application/vnd.ms-excel";
//     public static final String MIME_XLSM = "application/vnd.ms-excel.sheet.macroEnabled.12";
//     public static final String MIME_XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
// 
// }


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import br.com.tecsinapse.dataio.util.Constants;
/*
 * Tecsinapse Data Input and Output
 *
 * License: GNU Lesser General Public License (LGPL), version 3 or later
 * See the LICENSE file in the root directory or <http://www.gnu.org/licenses/lgpl-3.0.html>.
 */

package br.com.tecsinapse.dataio;




public class ExporterFormatterTest {

    private static final SimpleDateFormat DATETIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
    private static final SimpleDateFormat TIME_FORMAT = new SimpleDateFormat("HH:mm:ss");

    @DataProvider(name = "exporterFormatterDs")
    private Object[][] exporterFormatterDs() throws ParseException {
        return new Object[][]{
                { Locale.ENGLISH, ExporterFormatter.ENGLISH, DATETIME_FORMAT.parse("2016-02-28T15:45:46"), "2/28/2016 3:45:46 PM", DATE_FORMAT.parse("2016-02-28"), "2/28/2016", TIME_FORMAT.parse("15:45:46"), "3:45:46 PM", 12025.5, "12,025.5", "$12,025.50"},
// Path: src/main/java/br/com/tecsinapse/dataio/util/Constants.java
// @UtilityClass
// public final class Constants {
// 
//     public static final short DECIMAL_PRECISION = 10;
//     public static final Locale LOCALE_PT_BR = new Locale("pt", "BR");
//     public static final Locale LOCALE_ES_ES = new Locale("es", "ES");
//     public static final String MSG_IGNORED = "Ignored";
//     public static final String MIME_XLS = "application/vnd.ms-excel";
//     public static final String MIME_XLSM = "application/vnd.ms-excel.sheet.macroEnabled.12";
//     public static final String MIME_XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
// 
// }


// Path: src/test/java/br/com/tecsinapse/dataio/ExporterFormatterTest.java
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import br.com.tecsinapse.dataio.util.Constants;

/*
 * Tecsinapse Data Input and Output
 *
 * License: GNU Lesser General Public License (LGPL), version 3 or later
 * See the LICENSE file in the root directory or <http://www.gnu.org/licenses/lgpl-3.0.html>.
 */

package br.com.tecsinapse.dataio;




public class ExporterFormatterTest {

    private static final SimpleDateFormat DATETIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
    private static final SimpleDateFormat TIME_FORMAT = new SimpleDateFormat("HH:mm:ss");

    @DataProvider(name = "exporterFormatterDs")
    private Object[][] exporterFormatterDs() throws ParseException {
        return new Object[][]{
                { Locale.ENGLISH, ExporterFormatter.ENGLISH, DATETIME_FORMAT.parse("2016-02-28T15:45:46"), "2/28/2016 3:45:46 PM", DATE_FORMAT.parse("2016-02-28"), "2/28/2016", TIME_FORMAT.parse("15:45:46"), "3:45:46 PM", 12025.5, "12,025.5", "$12,025.50"},
                { Constants.LOCALE_PT_BR, ExporterFormatter.BRAZILIAN, DATETIME_FORMAT.parse("2016-02-28T15:45:46"), "28/02/2016 15:45:46", DATE_FORMAT.parse("2016-02-28"), "28/02/2016", TIME_FORMAT.parse("15:45:46"), "15:45:46", 12025.5, "12.025,5", "R$ 12.025,50"},