diff options
author | 2018-08-14 09:34:46 -0400 | |
---|---|---|
committer | 2018-08-14 09:39:23 -0400 | |
commit | b32effcaf5684d5e2f338a4537b71a2375c534e5 (patch) | |
tree | e1b80407f414509ffcc766b987ec6a95f7254b4e /src/test/java/com/att/nsa/cambria/resources/CambriaEventSetTest.java | |
parent | 0823cb186012c8e6b7de3d979dfabb9f838da7c2 (diff) |
update the testcases after the kafka 11 changes
Issue-ID: DMAAP-526
Change-Id: I477a8ee05fb3cdd76af726b6ca0d1a69aa9eef93
Signed-off-by: sunil unnava <su622b@att.com>
Diffstat (limited to 'src/test/java/com/att/nsa/cambria/resources/CambriaEventSetTest.java')
-rw-r--r-- | src/test/java/com/att/nsa/cambria/resources/CambriaEventSetTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/java/com/att/nsa/cambria/resources/CambriaEventSetTest.java b/src/test/java/com/att/nsa/cambria/resources/CambriaEventSetTest.java index bff1179..b9fa1e5 100644 --- a/src/test/java/com/att/nsa/cambria/resources/CambriaEventSetTest.java +++ b/src/test/java/com/att/nsa/cambria/resources/CambriaEventSetTest.java @@ -30,7 +30,9 @@ import org.junit.After; import org.junit.Before;
import org.junit.Test;
-import com.att.nsa.cambria.CambriaApiException;
+import com.att.dmf.mr.CambriaApiException;
+import com.att.dmf.mr.resources.CambriaEventSet;
+import com.att.dmf.mr.resources.CambriaOutboundEventStream;
public class CambriaEventSetTest {
@@ -54,14 +56,14 @@ public class CambriaEventSetTest { InputStream stream = new ByteArrayInputStream(str.getBytes());
try {
event = new CambriaEventSet("application/cambria", stream, true, "hi");
- } catch (CambriaApiException e) {
+ } catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
event.next();
- } catch (CambriaApiException | IOException e) {
+ } catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
|