Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ dependencies {
api 'org.dom4j:dom4j:2.1.4'
api 'com.google.code.gson:gson:2.10.1'
api 'net.sourceforge.htmlcleaner:htmlcleaner:2.29'
api 'com.opencsv:opencsv:5.10'
api 'com.opencsv:opencsv:5.11.1'
api 'org.apache.commons:commons-lang3:3.17.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,14 @@
*/
package com.marklogic.client.test.example.extension;

import com.marklogic.client.FailedRequestException;
import com.marklogic.client.ForbiddenUserException;
import com.marklogic.client.ResourceNotFoundException;
import com.marklogic.client.example.extension.OpenCSVBatcherExample;
import com.opencsv.exceptions.CsvValidationException;
import org.junit.jupiter.api.Test;

import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.*;
class OpenCSVBatcherTest {

public class OpenCSVBatcherTest {
@Test
public void testMain()
throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException, CsvValidationException
{
boolean succeeded = false;
try {
OpenCSVBatcherExample.main(new String[0]);
succeeded = true;
} catch (IOException e) {
e.printStackTrace();
} catch (ParserConfigurationException e) {
e.printStackTrace();
}
assertTrue( succeeded);
}
@Test
void testMain() throws Exception {
// This is a simple smoke test to ensure that the main method runs without exceptions.
OpenCSVBatcherExample.main(new String[0]);
}
}