File tree Expand file tree Collapse file tree
src/it/java/io/weaviate/integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package io .weaviate .integration ;
22
33import java .io .IOException ;
4- import java .util .Map ;
5- import java .util .UUID ;
64
75import org .assertj .core .api .Assertions ;
86import org .junit .BeforeClass ;
97import org .junit .Test ;
108
119import io .weaviate .ConcurrentTest ;
1210import io .weaviate .client6 .v1 .api .WeaviateClient ;
13- import io .weaviate .client6 .v1 .api .collections .Property ;
1411import io .weaviate .client6 .v1 .api .collections .WeaviateObject ;
1512import io .weaviate .containers .Container ;
1613import io .weaviate .containers .Weaviate ;
@@ -27,17 +24,12 @@ public static void __() {
2724 public void test10_000Objects () throws IOException {
2825 var nsThings = ns ("Things" );
2926
30- var things = client .collections .create (
31- nsThings ,
32- c -> c .properties (Property .text ("letter" )));
27+ var things = client .collections .create (nsThings );
3328
3429 // Act
3530 try (var batch = things .batch .start ()) {
3631 for (int i = 0 ; i < 10_000 ; i ++) {
37- String uuid = UUID .randomUUID ().toString ();
38- batch .add (WeaviateObject .of (builder -> builder
39- .uuid (uuid )
40- .properties (Map .of ("letter" , uuid .substring (0 , 1 )))));
32+ batch .add (WeaviateObject .of ());
4133 }
4234 } catch (InterruptedException e ) {
4335 }
You can’t perform that action at this time.
0 commit comments