Skip to content

Commit

Permalink
Added updates to push 0.4.2 java wrapper (#3392)
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo authored Jul 11, 2021
1 parent 9825b08 commit 287bfcf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion incubating/wrappers/java/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SELDON_CORE_DIR=../../..
IMAGE_NAME=seldon-java-wrapper
VERSION := $(shell cat ../version.txt)
VERSION := $(shell cat ../../../version.txt)

version:
echo ${VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public class ModelPredictionController {
* Will accept a POST or a GET request with either a query parameter or a FORM parameter.
*
* Examples:
* GET -> /predict?json={ ... }
* GET - /predict?json={ ... }
* curl -s \
* localhost:9000/predict?json={"data": {"names": ["a", "b"], "ndarray": [[1.0, 2.0]]}}' \
*
* POST FORM -> /predict
* POST FORM - /predict
* curl -s -X POST \
* -d 'json={"data": {"names": ["a", "b"], "ndarray": [[1.0, 2.0]]}}' \
* localhost:9000/predict
Expand All @@ -62,7 +62,7 @@ public ResponseEntity<String> predictLegacy(@RequestParam("json") String json) {
* Will accept a POST with a proper JSON body.
*
* Examples:
* POST -> /predict
* POST - /predict
* curl -s -X POST \
* -d '{"data": {"names": ["a", "b"], "ndarray": [[1.0, 2.0]]}}' \
* localhost:9000/predict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void predictTest() throws IOException {
ArgumentCaptor<SeldonMessage> argument = ArgumentCaptor.forClass(SeldonMessage.class);
verify(responseObserver).onNext(argument.capture());
SeldonMessage response = argument.getAllValues().get(0);
Assert.assertEquals(1, response.getData().getTensor().getValuesCount());
Assert.assertEquals(0, response.getData().getTensor().getValuesCount());
}

@Test
Expand Down

0 comments on commit 287bfcf

Please sign in to comment.