Commit 04653bd5 authored by Matija Obreza's avatar Matija Obreza

Shorthand filtering

parent 09845999
/*
* Copyright 2017 Global Crop Diversity Trust
* Copyright 2019 Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -126,4 +126,13 @@ public class AccessionRefFilter {
genus.add(value);
return this;
}
/**
* Accession Number filter.
*
* @return the string filter
*/
public synchronized StringFilter acceNumb() {
return this.acceNumb == null ? this.acceNumb = new StringFilter() : this.acceNumb;
}
}
/*
* Copyright 2018 Global Crop Diversity Trust
* Copyright 2019 Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -15,7 +15,10 @@
*/
package org.genesys.catalog.model.filters;
import com.querydsl.core.types.Predicate;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.collections4.CollectionUtils;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.blocks.model.filters.UuidModelFilter;
......@@ -24,9 +27,7 @@ import org.genesys.catalog.model.dataset.QDataset;
import org.genesys2.server.model.PublishState;
import org.genesys2.server.service.filter.IFullTextFilter;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.querydsl.core.types.Predicate;
/**
* The Class DatasetFilter.
......@@ -176,4 +177,13 @@ public class DatasetFilter extends UuidModelFilter<DatasetFilter, Dataset> imple
}
return this.owner;
}
/**
* Title filter.
*
* @return the string filter
*/
public synchronized StringFilter title() {
return this.title == null ? this.title = new StringFilter() : this.title;
}
}
......@@ -205,4 +205,14 @@ public class DescriptorFilter extends UuidModelFilter<DescriptorFilter, Descript
public String get_text() {
return _text;
}
/**
* Title filter.
*
* @return the string filter
*/
public synchronized StringFilter title() {
return this.title == null ? this.title = new StringFilter() : this.title;
}
}
/*
* Copyright 2018 Global Crop Diversity Trust
* Copyright 2019 Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -117,7 +117,7 @@ public class DescriptorListFilter extends UuidModelFilter<DescriptorListFilter,
return predicates;
}
public DescriptorListFilter state(PublishState... state) {
public synchronized DescriptorListFilter state(PublishState... state) {
if (this.state == null) {
this.state = new HashSet<>();
}
......@@ -132,10 +132,28 @@ public class DescriptorListFilter extends UuidModelFilter<DescriptorListFilter,
return _text;
}
public PartnerFilter owner() {
public synchronized PartnerFilter owner() {
if (this.owner == null) {
return this.owner = new PartnerFilter();
}
return this.owner;
}
/**
* Title filter.
*
* @return the string filter
*/
public synchronized StringFilter title() {
return this.title == null ? this.title = new StringFilter() : this.title;
}
/**
* Description filter.
*
* @return the string filter
*/
public synchronized StringFilter description() {
return this.description == null ? this.description = new StringFilter() : this.description;
}
}
/*
* Copyright 2017 Global Crop Diversity Trust
* Copyright 2019 Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -15,20 +15,22 @@
*/
package org.genesys.catalog.model.filters;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.querydsl.core.types.Predicate;
import org.apache.commons.collections4.CollectionUtils;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.blocks.model.filters.UuidModelFilter;
import org.genesys.catalog.model.Partner;
import org.genesys.catalog.model.QPartner;
import static org.genesys.catalog.model.QPartner.*;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import static org.genesys.catalog.model.QPartner.partner;
import org.apache.commons.collections4.CollectionUtils;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.blocks.model.filters.UuidModelFilter;
import org.genesys.catalog.model.Partner;
import org.genesys.catalog.model.QPartner;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.querydsl.core.types.Predicate;
/**
* The Class PartnerFilter.
......@@ -46,7 +48,7 @@ public class PartnerFilter extends UuidModelFilter<PartnerFilter, Partner> {
/** The name. */
public StringFilter description;
/** The wiews codes. */
/** The WIEWS codes. */
public Set<String> wiewsCodes;
/**
......@@ -58,6 +60,12 @@ public class PartnerFilter extends UuidModelFilter<PartnerFilter, Partner> {
return collectPredicates(partner);
}
/**
* Collect predicates.
*
* @param partnerPath the partner path
* @return the list
*/
public List<Predicate> collectPredicates(final QPartner partnerPath) {
final List<Predicate> predicates = super.collectPredicates(partnerPath, partnerPath._super);
......@@ -76,8 +84,31 @@ public class PartnerFilter extends UuidModelFilter<PartnerFilter, Partner> {
return predicates;
}
/**
* Wiews codes.
*
* @return the sets the
*/
@JsonGetter("wiewsCodes")
public Set<String> wiewsCodes() {
return wiewsCodes != null ? wiewsCodes.stream().map(String::toUpperCase).collect(Collectors.toSet()) : Collections.emptySet();
}
/**
* Name filter.
*
* @return the string filter
*/
public synchronized StringFilter name() {
return this.name == null ? this.name = new StringFilter() : this.name;
}
/**
* Short name filter.
*
* @return the sets the
*/
public synchronized Set<String> shortName() {
return this.shortName == null ? this.shortName = new HashSet<>() : this.shortName;
}
}
......@@ -102,7 +102,7 @@ public class BrAPIServiceImpl implements BrAPIService {
}
if (StringUtils.isNotBlank(germplasmName)) {
accessionFilter.acceNumb().eq(germplasmName);
accessionFilter.accessionNumber().eq(germplasmName);
}
......
......@@ -418,10 +418,7 @@ public class AccessionFilter extends UuidModelFilter<AccessionFilter, Accession>
* @return the accession geo filter
*/
public synchronized AccessionGeoFilter geo() {
if (this.geo == null) {
return this.geo = new AccessionGeoFilter();
}
return this.geo;
return this.geo == null ? this.geo = new AccessionGeoFilter() : this.geo;
}
/**
......@@ -430,10 +427,7 @@ public class AccessionFilter extends UuidModelFilter<AccessionFilter, Accession>
* @return the accession collect filter
*/
public synchronized AccessionCollectFilter coll() {
if (this.coll == null) {
return this.coll = new AccessionCollectFilter();
}
return this.coll;
return this.coll == null ? this.coll = new AccessionCollectFilter() : this.coll;
}
/**
......@@ -442,22 +436,16 @@ public class AccessionFilter extends UuidModelFilter<AccessionFilter, Accession>
* @return the taxonomy filter
*/
public synchronized TaxonomyFilter taxa() {
if (this.taxonomy == null) {
return this.taxonomy = new TaxonomyFilter();
}
return this.taxonomy;
return this.taxonomy == null ? this.taxonomy = new TaxonomyFilter() : this.taxonomy;
}
/**
* Acce numb.
* Accession Number filter.
*
* @return the string filter
*/
public synchronized StringFilter acceNumb() {
if (accessionNumber == null) {
accessionNumber = new StringFilter();
}
return accessionNumber;
public synchronized StringFilter accessionNumber() {
return this.accessionNumber == null ? this.accessionNumber = new StringFilter() : this.accessionNumber;
}
public synchronized Set<String> doi() {
......@@ -470,4 +458,13 @@ public class AccessionFilter extends UuidModelFilter<AccessionFilter, Accession>
public String get_text() {
return _text;
}
/**
* Institute filter.
*
* @return the institute filter
*/
public synchronized InstituteFilter institute() {
return this.institute == null ? this.institute = new InstituteFilter() : this.institute;
}
}
/*
* Copyright 2018 Global Crop Diversity Trust
* Copyright 2019 Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -16,13 +16,11 @@
package org.genesys2.server.service.filter;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hazelcast.util.CollectionUtil;
import com.querydsl.core.types.Predicate;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Set;
import org.genesys.blocks.model.filters.AuditedVersionedModelFilter;
import org.genesys.blocks.model.filters.DateFilter;
import org.genesys.blocks.model.filters.StringFilter;
......@@ -30,10 +28,13 @@ import org.genesys2.server.model.UserRole;
import org.genesys2.server.model.impl.QUser;
import org.genesys2.server.model.impl.User;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Set;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hazelcast.util.CollectionUtil;
import com.querydsl.core.types.Predicate;
/**
* Filters for {@link User}.
......@@ -114,11 +115,20 @@ public class UserFilter extends AuditedVersionedModelFilter<UserFilter, User> {
return predicates;
}
private static class UserRoleDeserializer extends JsonDeserializer {
private static class UserRoleDeserializer extends JsonDeserializer<UserRole> {
@Override
public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {
public UserRole deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {
return UserRole.valueOf(p.getText());
}
}
/**
* Email filter.
*
* @return the string filter
*/
public synchronized StringFilter email() {
return this.email == null ? this.email = new StringFilter() : this.email;
}
}
......@@ -15,13 +15,15 @@
*/
package org.genesys.test.catalog.services;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.*;
import java.io.File;
import java.io.FileInputStream;
......@@ -35,7 +37,6 @@ import java.util.stream.Collectors;
import javax.validation.ConstraintViolationException;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.catalog.model.dataset.Dataset;
import org.genesys.catalog.model.dataset.DatasetAccessionRef;
import org.genesys.catalog.model.dataset.DatasetCreator;
......@@ -709,7 +710,7 @@ public class DatasetServiceTest extends AbstractDatasetServiceTest {
assertThat(datasetService.listDatasets(filter, PageRequest.of(0, 3)).getContent(), hasSize(0));
filter.accessionRefs.genus.clear();
filter.accessionRefs.acceNumb = new StringFilter().eq("A8"); // only in dataset1
filter.accessionRefs.acceNumb().eq("A8"); // only in dataset1
assertThat(datasetService.listDatasets(filter, PageRequest.of(0, 3)).getContent(), hasSize(1));
assertThat(datasetService.listDatasets(filter, PageRequest.of(0, 3)).getContent().stream().map(d -> d.getUuid()).collect(Collectors.toSet()), contains(dataset1
......
......@@ -15,10 +15,9 @@
*/
package org.genesys.test.catalog.services;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import java.io.IOException;
import java.util.Arrays;
......@@ -27,7 +26,6 @@ import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.lang3.RandomStringUtils;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.catalog.model.ShortFilter;
import org.genesys.catalog.model.filters.DescriptorFilter;
import org.genesys.catalog.model.filters.DescriptorListFilter;
......@@ -68,12 +66,10 @@ public class ShortFilterServiceTest extends CatalogServiceTest {
@Test
public void testCreate() throws IOException {
final DescriptorListFilter filter = new DescriptorListFilter();
filter.title = new StringFilter();
filter.title.eq("TEST");
filter.description = new StringFilter();
filter.title().eq("TEST");
final String[] cropValues = { "yam", "banana", "wheat", "rice", "barley", "apple" };
filter.description.eq("THIS IS description");
filter.description.contains("contains description");
filter.description().eq("THIS IS description");
filter.description().contains("contains description");
filter.crop = Arrays.stream(cropValues).collect(Collectors.toSet());
String shortName = shortFilterService.getCode(filter);
......
......@@ -15,11 +15,9 @@
*/
package org.genesys.test.server.api.v1;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
......@@ -28,7 +26,6 @@ import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.catalog.model.dataset.Dataset;
import org.genesys.catalog.model.dataset.DatasetAccessionRef;
import org.genesys.catalog.model.dataset.DatasetCreator;
......@@ -532,10 +529,9 @@ public class DatasetControllerTest extends AbstractDatasetControllerTest {
assertThat(datasetRepository.count(), is(2L));
final DatasetFilter datasetFilter = new DatasetFilter();
datasetFilter.title = new StringFilter().contains("two");
datasetFilter.title().contains("two");
final PartnerFilter partnerFilter = new PartnerFilter();
partnerFilter.shortName = new HashSet<>();
partnerFilter.shortName.add("PartnerShortNameTwo");
partnerFilter.shortName().add("PartnerShortNameTwo");
datasetFilter.owner = partnerFilter;
final String filterCode = shortFilterService.getCode(datasetFilter);
......
......@@ -16,15 +16,14 @@
package org.genesys.test.server.api.v1;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import java.io.IOException;
import java.util.UUID;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.catalog.model.Partner;
import org.genesys.catalog.model.filters.DescriptorFilter;
import org.genesys.catalog.model.filters.PartnerFilter;
......@@ -125,7 +124,7 @@ public class DescriptorControllerTest extends AbstractApiTest {
final DescriptorFilter descriptorFilter = new DescriptorFilter();
final PartnerFilter partnerFilter = new PartnerFilter();
partnerFilter.name = new StringFilter().eq(PARTNER_NAME);
partnerFilter.name().eq(PARTNER_NAME);
descriptorFilter.owner = partnerFilter;
/*@formatter:off*/
......@@ -152,9 +151,9 @@ public class DescriptorControllerTest extends AbstractApiTest {
assertThat(descriptorRepository.count(), is(1L));
final DescriptorFilter filter = new DescriptorFilter();
filter.title = new StringFilter().eq(descriptor.getTitle());
filter.title().eq(descriptor.getTitle());
// filter.owner = new PartnerFilter();
// final StringFilter partnerName = new StringFilter();
// final StringFilter partnerName();
// partnerName.eq = partner.getName();
// filter.owner.name = partnerName;
......
......@@ -261,8 +261,8 @@ public class DescriptorListControllerTest extends AbstractApiTest {
assertThat(descriptorListRepository.count(), is(1L));
final DescriptorListFilter filter = new DescriptorListFilter();
filter.description = new StringFilter().eq("Test description");
filter.title = new StringFilter().contains("title");
filter.description().eq("Test description");
filter.title().contains("title");
final String filterCode = shortFilterService.getCode(filter);
......
......@@ -69,7 +69,7 @@ public class PartnerControllerTest extends AbstractApiTest {
@Test
public void listPartnersTest() throws Exception {
final PartnerFilter partnerFilter = new PartnerFilter();
partnerFilter.name = new StringFilter().eq("Partner Two");
partnerFilter.name().eq("Partner Two");
Partner partner = partnerRepository.save(setPartner("Partner one", true, "Partner one", UUID.randomUUID()));
partner = partnerRepository.save(setPartner("Partner Two", true, "Partner Two", UUID.randomUUID()));
......@@ -217,7 +217,7 @@ public class PartnerControllerTest extends AbstractApiTest {
@Test
public void listPartnersByFilterCodeTest() throws Exception {
final PartnerFilter partnerFilter = new PartnerFilter();
partnerFilter.name = new StringFilter().eq("Partner one");
partnerFilter.name().eq("Partner one");
final Partner partner = partnerRepository.save(setPartner("Partner one", true, "Partner one", UUID.randomUUID()));
partnerRepository.save(setPartner("Partner Two", true, "Partner Two", UUID.randomUUID()));
......
......@@ -16,11 +16,9 @@
package org.genesys.test.server.api.v1;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
......@@ -28,7 +26,6 @@ import java.util.Calendar;
import java.util.Date;
import java.util.UUID;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.blocks.security.model.BasicUser;
import org.genesys.test.base.AbstractApiTest;
import org.genesys2.server.api.v1.UserManagementController;
......@@ -87,7 +84,7 @@ public class UserManagementControllerTest extends AbstractApiTest {
@WithMockUser(roles = "ADMINISTRATOR")
public void listSubsetsTest() throws Exception {
final UserFilter userFilter = new UserFilter();
userFilter.email = new StringFilter().eq(EMAIL);
userFilter.email().eq(EMAIL);
/*@formatter:off*/
mockMvc.perform(post(UserManagementController.CONTROLLER_URL.concat("/list"))
......
......@@ -332,7 +332,7 @@ public class DatasetControllerTest extends AbstractDatasetControllerTest {
assertThat(datasetRepository.count(), is(2L));
final DatasetFilter datasetFilter = new DatasetFilter();
datasetFilter.title = new StringFilter().contains("two");
datasetFilter.title().contains("two");
final PartnerFilter partnerFilter = new PartnerFilter();
partnerFilter.shortName = new HashSet<>();
partnerFilter.shortName.add("PartnerShortNameTwo");
......
......@@ -126,7 +126,7 @@ public class DescriptorControllerTest extends AbstractApiTest {
final DescriptorFilter descriptorFilter = new DescriptorFilter();
final PartnerFilter partnerFilter = new PartnerFilter();
partnerFilter.name = new StringFilter().eq(PARTNER_NAME);
partnerFilter.name().eq(PARTNER_NAME);
descriptorFilter.owner = partnerFilter;
/*@formatter:off*/
......@@ -153,7 +153,7 @@ public class DescriptorControllerTest extends AbstractApiTest {
assertThat(descriptorRepository.count(), is(1L));
final DescriptorFilter filter = new DescriptorFilter();
filter.title = new StringFilter().eq(descriptor.getTitle());
filter.title().eq(descriptor.getTitle());
final String filterCode = shortFilterService.getCode(filter);
......
......@@ -269,8 +269,8 @@ public class DescriptorListControllerTest extends AbstractApiTest {
assertThat(descriptorListRepository.count(), is(1L));
final DescriptorListFilter filter = new DescriptorListFilter();
filter.description = new StringFilter().eq("Test description");
filter.title = new StringFilter().contains("title");
filter.description().eq("Test description");
filter.title().contains("title");
final String filterCode = shortFilterService.getCode(filter);
......
......@@ -16,17 +16,10 @@
package org.genesys.test.server.api.v2;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.isOneOf;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import java.net.MalformedURLException;
import java.net.URL;
......@@ -34,9 +27,6 @@ import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import org.genesys.blocks.model.filters.StringFilter;
import org.genesys.catalog.model.Partner;
import org.genesys.catalog.model.filters.PartnerFilter;
import org.genesys.catalog.persistence.PartnerRepository;
......@@ -52,6 +42,9 @@ import org.springframework.http.MediaType;
import org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders;
import org.springframework.security.test.context.support.WithMockUser;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
/**
* @author Andrey Lugovskoy
* @author Matija Obreza
......@@ -76,7 +69,7 @@ public class PartnerControllerTest extends AbstractApiTest {
@Test
public void listPartnersTest() throws Exception {
final PartnerFilter partnerFilter = new PartnerFilter();
partnerFilter.name = new StringFilter().eq("Partner Two");
partnerFilter.name().eq("Partner Two");
Partner partner = partnerRepository.save(setPartner("Partner Two", true, "Partner Two", UUID.randomUUID()));
/*@formatter:off*/
......@@ -222,7 +215,7 @@ public class PartnerControllerTest extends AbstractApiTest {
@Test
public void listPartnersByFilterCodeTest() throws Exception {
final PartnerFilter partnerFilter = new PartnerFilter();
partnerFilter.name = new StringFilter().eq("Partner one");
partnerFilter.name().eq("Partner one");
final Partner partner = partnerRepository.save(setPartner("Partner one", true, "Partner one", UUID.randomUUID()));
partnerRepository.save(setPartner("Partner Two", true, "Partner Two", UUID.randomUUID()));
......
......@@ -110,7 +110,7 @@ public class UserManagementControllerTest extends AbstractApiTest {
assertThat(userRepository.count(), is(1L));
final UserFilter userFilter = new UserFilter();
userFilter.email = new StringFilter().eq(user.getEmail());
userFilter.email().eq(user.getEmail());
/*@formatter:off*/
mockMvc
......