File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
marklogic-client-api/src/test/java/com/marklogic/client/util Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 66import com .fasterxml .jackson .databind .JsonNode ;
77import com .fasterxml .jackson .databind .node .ArrayNode ;
88import com .marklogic .client .test .Common ;
9+ import com .marklogic .client .test .junit5 .RequiresML12 ;
910import org .junit .jupiter .api .Test ;
11+ import org .junit .jupiter .api .extension .ExtendWith ;
1012
1113import static org .junit .jupiter .api .Assertions .assertEquals ;
1214
15+ @ ExtendWith (RequiresML12 .class )
1316class VectorUtilTest {
1417
1518 private final float [] VECTOR = new float []{3.14f , 1.59f , 2.65f };
@@ -33,7 +36,7 @@ void encodeAndDecodeWithServer() {
3336 assertEquals ("AAAAAAMAAADD9UhAH4XLP5qZKUA=" , encoded );
3437
3538 ArrayNode decoded = (ArrayNode ) Common .newEvalClient ().newServerEval ()
36- .xquery ("vec:base64-decode('%s')" . formatted ( encoded ))
39+ .xquery (String . format ( "vec:base64-decode('%s')" , encoded ))
3740 .evalAs (JsonNode .class );
3841
3942 assertEquals (3 , decoded .size ());
You can’t perform that action at this time.
0 commit comments