Skip to content

Commit

Permalink
Add more UTs
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <zaniu@amazon.com>
  • Loading branch information
zane-neo committed Apr 12, 2024
1 parent f0f3a5b commit b3aed63
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ public void predict_ModelNotDeployed() {
remoteModel.predict(mlInput, mlModel);
}

@Test
public void test_predict_throw_IllegalStateException() {
exceptionRule.expect(IllegalStateException.class);
exceptionRule.expectMessage("Method is not implemented");
remoteModel.predict(mlInput);
}

@Test
public void predict_NullConnectorExecutor() {
ActionListener<MLTaskResponse> actionListener = mock(ActionListener.class);
Expand Down

0 comments on commit b3aed63

Please sign in to comment.