Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Dec 5, 2023
1 parent 03423e3 commit 64efbeb
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,7 @@ public void testUpdatesToModelIdNotSupported() throws IOException {
);
Exception e = expectThrows(
IllegalArgumentException.class,
() -> merge(
mapperService,
fieldMapping(
b -> b.field("type", "semantic_text")
.field("model_id", "another_model")
)
)
() -> merge(mapperService, fieldMapping(b -> b.field("type", "semantic_text").field("model_id", "another_model")))
);
assertThat(e.getMessage(), containsString("Cannot update parameter [model_id] from [test_model] to [another_model]"));
}
Expand All @@ -83,7 +77,6 @@ protected Collection<? extends Plugin> getPlugins() {
return singletonList(new MachineLearning(Settings.EMPTY));
}


@Override
protected void minimalMapping(XContentBuilder b) throws IOException {
b.field("type", "semantic_text").field("model_id", "test_model");
Expand All @@ -105,8 +98,7 @@ protected boolean supportsStoredFields() {
}

@Override
protected void registerParameters(ParameterChecker checker) throws IOException {
}
protected void registerParameters(ParameterChecker checker) throws IOException {}

@Override
protected Object generateRandomInputValue(MappedFieldType ft) {
Expand Down

0 comments on commit 64efbeb

Please sign in to comment.