Skip to content

Commit

Permalink
fix #27490 - remove old walkaround and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzywanski committed Nov 25, 2024
1 parent 4633d6d commit 2bca5a0
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMock
<%_ if (cacheProviderAny) { _%>
import org.springframework.cache.CacheManager;
import org.springframework.cache.Cache;
import <%= packageName %>.domain.<%= user.persistClass %>;
import java.util.Objects;
<%_ } _%>
<%_ if (cacheProviderMemcached) { _%>
Expand Down Expand Up @@ -503,12 +502,7 @@ class UserResourceIT {
.exchange()
.expectStatus().isOk()
.expectHeader().contentType(MediaType.APPLICATION_JSON)
.returnResult(<%= user.adminUserDto %>.class).getResponseBody()
<%_ if (databaseTypeCouchbase) { _%>
.elementAt(3).block();
<%_ } else { _%>
.blockFirst();
<%_ } _%>
.returnResult(<%= user.adminUserDto %>.class).getResponseBody().blockFirst();
assertThat(foundUser.getLogin()).isEqualTo(DEFAULT_LOGIN);
assertThat(foundUser.getFirstName()).isEqualTo(DEFAULT_FIRSTNAME);
assertThat(foundUser.getLastName()).isEqualTo(DEFAULT_LASTNAME);
Expand Down

0 comments on commit 2bca5a0

Please sign in to comment.