@@ -47,7 +47,7 @@ void getRepositoriesGetAll() {
4747 final var repositoryCount = ((DataRepositories ) result ).getCount ();
4848
4949 assertThat (repositoryCount ).isGreaterThan (0 );
50- for (var repository : repositoryList ) {
50+ for (final var repository : repositoryList ) {
5151 assertThat (repository .getId ()).isNotNull ();
5252 assertThat (repository .getTitle ()).isNotNull ();
5353 }
@@ -98,14 +98,14 @@ void testCreateDeleteCollection() {
9898
9999 private void assertDocumentSearchResult (RetievalSearchResults search , String dayOfWeek ) {
100100 assertThat (search .getResults ()).isNotEmpty ();
101- for (var resultsByFilter : search .getResults ()) {
101+ for (final var resultsByFilter : search .getResults ()) {
102102 assertThat (resultsByFilter .getFilterId ()).isEqualTo ("question" );
103103 assertThat (resultsByFilter .getResults ()).isNotEmpty ();
104- for (var result : resultsByFilter .getResults ()) {
104+ for (final var result : resultsByFilter .getResults ()) {
105105 assertThat (result .getDataRepository ().getDocuments ()).isNotEmpty ();
106- for (var document : result .getDataRepository ().getDocuments ()) {
106+ for (final var document : result .getDataRepository ().getDocuments ()) {
107107 assertThat (document .getChunks ()).isNotEmpty ();
108- for (var chunk : document .getChunks ()) {
108+ for (final var chunk : document .getChunks ()) {
109109 assertThat (chunk .getContent ()).contains (dayOfWeek );
110110 }
111111 }
@@ -122,7 +122,7 @@ void testCollectionsGetAll() {
122122 final var collectionsCount = ((CollectionsListResponse ) result ).getCount ();
123123
124124 assertThat (collectionsCount ).isGreaterThan (0 );
125- for (var collection : collectionsList ) {
125+ for (final var collection : collectionsList ) {
126126 assertThat (collection .getId ()).isNotNull ();
127127 assertThat (collection .getTitle ()).isNotEmpty ();
128128 assertThat (collection .getEmbeddingConfig ()).isNotNull ();
@@ -138,7 +138,7 @@ void testGetDocumentById(UUID collectionId, UUID documentId) {
138138 final var chunks = ((DocumentResponse ) result ).getChunks ();
139139
140140 assertThat (chunks ).isNotEmpty ();
141- for (var chunk : chunks ) {
141+ for (final var chunk : chunks ) {
142142 assertThat (chunk .getContent ()).isNotEmpty ();
143143 assertThat (chunk .getMetadata ()).isNotNull ().isNotEmpty ();
144144 }
0 commit comments