Skip to content

Commit

Permalink
spotless check
Browse files Browse the repository at this point in the history
Signed-off-by: Dharin Shah <[email protected]>
  • Loading branch information
Dharin-shah committed Jan 27, 2024
1 parent 9938f11 commit 6ac87ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ public static Matcher<SearchHit> hasMatchedQueries(final String[] matchedQueries
return new OpenSearchMatchers.SearchHitMatchedQueriesMatcher(matchedQueries);
}


public static <T, V> CombinableMatcher<T> hasProperty(Function<? super T, ? extends V> property, Matcher<V> valueMatcher) {
return OpenSearchMatchers.HasPropertyLambdaMatcher.hasProperty(property, valueMatcher);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@

package org.opensearch.test.hamcrest;

import java.util.Arrays;
import org.opensearch.search.SearchHit;
import org.hamcrest.Description;
import org.hamcrest.FeatureMatcher;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import org.hamcrest.core.CombinableMatcher;

import java.util.Arrays;
import java.util.function.Function;

public class OpenSearchMatchers {
Expand Down Expand Up @@ -132,14 +132,12 @@ protected boolean matchesSafely(SearchHit searchHit) {

@Override
public void describeMismatchSafely(final SearchHit searchHit, final Description mismatchDescription) {
mismatchDescription.appendText(" matched queries were ")
.appendValue(Arrays.toString(searchHit.getMatchedQueries()));
mismatchDescription.appendText(" matched queries were ").appendValue(Arrays.toString(searchHit.getMatchedQueries()));
}

@Override
public void describeTo(final Description description) {
description.appendText("searchHit matched queries should be ")
.appendValue(Arrays.toString(matchedQueries));
description.appendText("searchHit matched queries should be ").appendValue(Arrays.toString(matchedQueries));
}
}

Expand Down

0 comments on commit 6ac87ef

Please sign in to comment.