From e778fe596a1d7d18a2d0375a93ffac861b6267c6 Mon Sep 17 00:00:00 2001 From: Emanuela Epure <67077116+emanuelaepure10@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:18:37 +0100 Subject: [PATCH] fix: feat: add formatter for the date Remove commented method ING-4151 --- .../io/xls/test/reader/XLSReaderTest.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/io/plugins/eu.esdihumboldt.hale.io.xls.test/src/eu/esdihumboldt/hale/io/xls/test/reader/XLSReaderTest.java b/io/plugins/eu.esdihumboldt.hale.io.xls.test/src/eu/esdihumboldt/hale/io/xls/test/reader/XLSReaderTest.java index 70bdc70cba..1585dec8d6 100644 --- a/io/plugins/eu.esdihumboldt.hale.io.xls.test/src/eu/esdihumboldt/hale/io/xls/test/reader/XLSReaderTest.java +++ b/io/plugins/eu.esdihumboldt.hale.io.xls.test/src/eu/esdihumboldt/hale/io/xls/test/reader/XLSReaderTest.java @@ -627,31 +627,6 @@ private InstanceCollection readXLSInstances(String sourceLocation, Schema source * @throws Exception , if an error occurs */ @Test -// public void testReadSimpleWithDate() throws Exception { -// String typeName = "item"; -// String[] properties = { "number", "name", "desc", "date" }; -// String[] dataFirstColumn = { "1234", "Glasses", "Pair of", "12.12.2023" }; -// String dateFormatter = "dd.mm.yyyy"; -// String sourceLocation = "/data/simpleOneSheetDate.xls"; -// -// // read Schema ### -// Schema schema = readXLSSchemaDate(sourceLocation, 0, typeName, dateFormatter, -// "java.lang.String,java.lang.String,java.lang.String,java.lang.String"); -// // read Instances - not header ### -// InstanceCollection instances = readXLSInstances("/data/simpleOneSheetDate.xls", 0, typeName, -// 1, schema); -// -// // Check the values of the first (type) instance -// Iterator instanceIt = instances.iterator(); -// while (instanceIt.hasNext()) { -// Instance instance = instanceIt.next(); -// -// Object[] value = instance.getProperty(QName.valueOf(properties[properties.length - 1])); -// String dateString = (String) value[0]; -// assertTrue(isStringDate(dateString, dateFormatter)); -// } -// } - public void testReadSimpleWithDate() throws Exception { // Define test data String typeName = "item";