Repository: incubator-gobblin Updated Branches: refs/heads/master 26ab1d3f6 -> 252300e99
[GOBBLIN-176] Fix missing dependency error Project: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/commit/2fe4e75b Tree: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/tree/2fe4e75b Diff: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/diff/2fe4e75b Branch: refs/heads/master Commit: 2fe4e75b1359fe4c23152dd7896d9174720c5463 Parents: 26ab1d3 Author: aditya1105 <[email protected]> Authored: Sat Jul 29 21:11:07 2017 +0530 Committer: aditya1105 <[email protected]> Committed: Sat Jul 29 21:11:07 2017 +0530 ---------------------------------------------------------------------- .../test/java/gobblin/service/FlowConfigTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/2fe4e75b/gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-client/src/test/java/gobblin/service/FlowConfigTest.java ---------------------------------------------------------------------- diff --git a/gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-client/src/test/java/gobblin/service/FlowConfigTest.java b/gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-client/src/test/java/gobblin/service/FlowConfigTest.java index 327eb21..8e395a9 100644 --- a/gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-client/src/test/java/gobblin/service/FlowConfigTest.java +++ b/gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-client/src/test/java/gobblin/service/FlowConfigTest.java @@ -23,7 +23,6 @@ import java.net.ServerSocket; import java.util.Map; import org.apache.commons.io.FileUtils; -import org.eclipse.jetty.http.HttpStatus; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; @@ -39,6 +38,7 @@ import com.google.inject.Module; import com.google.inject.name.Names; import com.linkedin.data.template.StringMap; import com.linkedin.restli.client.RestLiResponseException; +import com.linkedin.restli.common.HttpStatus; import com.linkedin.restli.server.resources.BaseResource; import com.typesafe.config.Config; @@ -119,7 +119,7 @@ public class FlowConfigTest { try { _client.createFlowConfig(flowConfig); } catch (RestLiResponseException e) { - Assert.assertEquals(e.getStatus(), HttpStatus.UNPROCESSABLE_ENTITY_422); + Assert.assertEquals(e.getStatus(), HttpStatus.S_422_UNPROCESSABLE_ENTITY.getCode()); return; } @@ -139,7 +139,7 @@ public class FlowConfigTest { try { _client.createFlowConfig(flowConfig); } catch (RestLiResponseException e) { - Assert.assertEquals(e.getStatus(), HttpStatus.UNPROCESSABLE_ENTITY_422); + Assert.assertEquals(e.getStatus(), HttpStatus.S_422_UNPROCESSABLE_ENTITY.getCode()); return; } @@ -171,7 +171,7 @@ public class FlowConfigTest { try { _client.createFlowConfig(flowConfig); } catch (RestLiResponseException e) { - Assert.assertEquals(e.getStatus(), HttpStatus.CONFLICT_409); + Assert.assertEquals(e.getStatus(), HttpStatus.S_409_CONFLICT.getCode()); return; } @@ -233,7 +233,7 @@ public class FlowConfigTest { try { _client.getFlowConfig(flowId); } catch (RestLiResponseException e) { - Assert.assertEquals(e.getStatus(), HttpStatus.NOT_FOUND_404); + Assert.assertEquals(e.getStatus(), HttpStatus.S_404_NOT_FOUND.getCode()); return; } @@ -247,7 +247,7 @@ public class FlowConfigTest { try { _client.getFlowConfig(flowId); } catch (RestLiResponseException e) { - Assert.assertEquals(e.getStatus(), HttpStatus.NOT_FOUND_404); + Assert.assertEquals(e.getStatus(), HttpStatus.S_404_NOT_FOUND.getCode()); return; } @@ -261,7 +261,7 @@ public class FlowConfigTest { try { _client.getFlowConfig(flowId); } catch (RestLiResponseException e) { - Assert.assertEquals(e.getStatus(), HttpStatus.NOT_FOUND_404); + Assert.assertEquals(e.getStatus(), HttpStatus.S_404_NOT_FOUND.getCode()); return; } @@ -282,7 +282,7 @@ public class FlowConfigTest { try { _client.updateFlowConfig(flowConfig); } catch (RestLiResponseException e) { - Assert.assertEquals(e.getStatus(), HttpStatus.NOT_FOUND_404); + Assert.assertEquals(e.getStatus(), HttpStatus.S_404_NOT_FOUND.getCode()); return; }
