mirror of
https://github.com/apache/sqoop.git
synced 2025-05-10 22:13:07 +08:00
SQOOP-2232: Sqoop2: Test initializer against local filesystem
(Abraham Elmahrek via Jarek Jarcec Cecho)
This commit is contained in:
parent
a9f7b3ddd0
commit
700d55ac74
@ -43,6 +43,7 @@ public void testWorkDirectoryBeingSet() {
|
||||
LinkConfiguration linkConfig = new LinkConfiguration();
|
||||
ToJobConfiguration jobConfig = new ToJobConfiguration();
|
||||
|
||||
linkConfig.linkConfig.uri = "file:///";
|
||||
jobConfig.toJobConfig.outputDirectory = TARGET_DIR;
|
||||
|
||||
InitializerContext initializerContext = new InitializerContext(new MutableMapContext());
|
||||
@ -62,6 +63,7 @@ public void testOutputDirectoryIsAFile() throws Exception {
|
||||
LinkConfiguration linkConfig = new LinkConfiguration();
|
||||
ToJobConfiguration jobConfig = new ToJobConfiguration();
|
||||
|
||||
linkConfig.linkConfig.uri = "file:///";
|
||||
jobConfig.toJobConfig.outputDirectory = file.getAbsolutePath();
|
||||
|
||||
InitializerContext initializerContext = new InitializerContext(new MutableMapContext());
|
||||
@ -78,6 +80,7 @@ public void testOutputDirectoryIsNotEmpty() throws Exception {
|
||||
LinkConfiguration linkConfig = new LinkConfiguration();
|
||||
ToJobConfiguration jobConfig = new ToJobConfiguration();
|
||||
|
||||
linkConfig.linkConfig.uri = "file:///";
|
||||
jobConfig.toJobConfig.outputDirectory = dir.getAbsolutePath();
|
||||
|
||||
InitializerContext initializerContext = new InitializerContext(new MutableMapContext());
|
||||
|
Loading…
Reference in New Issue
Block a user