mirror of
https://github.com/apache/sqoop.git
synced 2025-05-02 18:11:13 +08:00
SQOOP-3393: TestNetezzaExternalTableExportMapper hangs
(Daniel Voros via Szabolcs Vasas) This closes #63
This commit is contained in:
parent
122d1c0b27
commit
3c1fb870e2
@ -44,6 +44,7 @@
|
|||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
import static org.hamcrest.CoreMatchers.equalTo;
|
import static org.hamcrest.CoreMatchers.equalTo;
|
||||||
import static org.hamcrest.CoreMatchers.is;
|
import static org.hamcrest.CoreMatchers.is;
|
||||||
@ -53,6 +54,7 @@
|
|||||||
import static org.mockito.Mockito.mock;
|
import static org.mockito.Mockito.mock;
|
||||||
import static org.mockito.Mockito.when;
|
import static org.mockito.Mockito.when;
|
||||||
|
|
||||||
|
@Category(UnitTest.class)
|
||||||
public class TestNetezzaExternalTableExportMapper {
|
public class TestNetezzaExternalTableExportMapper {
|
||||||
|
|
||||||
// chained rule, see #rules
|
// chained rule, see #rules
|
||||||
@ -199,6 +201,7 @@ private Mapper.Context getContext() throws java.io.IOException, InterruptedExcep
|
|||||||
Mapper.Context context = mock(Mapper.Context.class);
|
Mapper.Context context = mock(Mapper.Context.class);
|
||||||
|
|
||||||
Configuration conf = new Configuration();
|
Configuration conf = new Configuration();
|
||||||
|
conf.set("mapreduce.task.id", UUID.randomUUID().toString());
|
||||||
when(context.getConfiguration()).thenReturn(conf);
|
when(context.getConfiguration()).thenReturn(conf);
|
||||||
|
|
||||||
TaskAttemptID taskAttemptID = new TaskAttemptID();
|
TaskAttemptID taskAttemptID = new TaskAttemptID();
|
||||||
|
Loading…
Reference in New Issue
Block a user