Skip to content

Commit 7aac434

Browse files
committed
MLE-22657 Bumped opencsv dependency to address CSV
Also made the smoke test less bad.
1 parent ef6ac06 commit 7aac434

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

examples/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ dependencies {
1919
api 'org.dom4j:dom4j:2.1.4'
2020
api 'com.google.code.gson:gson:2.10.1'
2121
api 'net.sourceforge.htmlcleaner:htmlcleaner:2.29'
22-
api 'com.opencsv:opencsv:5.10'
22+
api 'com.opencsv:opencsv:5.11.1'
2323
api 'org.apache.commons:commons-lang3:3.17.0'
2424
}

marklogic-client-api/src/test/java/com/marklogic/client/test/example/extension/OpenCSVBatcherTest.java

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,14 @@
33
*/
44
package com.marklogic.client.test.example.extension;
55

6-
import com.marklogic.client.FailedRequestException;
7-
import com.marklogic.client.ForbiddenUserException;
8-
import com.marklogic.client.ResourceNotFoundException;
96
import com.marklogic.client.example.extension.OpenCSVBatcherExample;
10-
import com.opencsv.exceptions.CsvValidationException;
117
import org.junit.jupiter.api.Test;
128

13-
import javax.xml.parsers.ParserConfigurationException;
14-
import java.io.IOException;
15-
import static org.junit.jupiter.api.Assertions.*;
9+
class OpenCSVBatcherTest {
1610

17-
public class OpenCSVBatcherTest {
18-
@Test
19-
public void testMain()
20-
throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException, CsvValidationException
21-
{
22-
boolean succeeded = false;
23-
try {
24-
OpenCSVBatcherExample.main(new String[0]);
25-
succeeded = true;
26-
} catch (IOException e) {
27-
e.printStackTrace();
28-
} catch (ParserConfigurationException e) {
29-
e.printStackTrace();
30-
}
31-
assertTrue( succeeded);
32-
}
11+
@Test
12+
void testMain() throws Exception {
13+
// This is a simple smoke test to ensure that the main method runs without exceptions.
14+
OpenCSVBatcherExample.main(new String[0]);
15+
}
3316
}

0 commit comments

Comments
 (0)