public static ProductProjectionSearchBuilder ofStaged() { return of(ProductProjectionType.STAGED); }
@Test public void searchRequestIsAsExpected() { final ProductProjectionSearch actual = ProductProjectionSearchBuilder.ofCurrent() .facets(m -> m.allVariants().price().centAmount().allRanges()) .queryFilters(m -> m.allVariants().price().centAmount().isGreaterThanOrEqualTo(4L)) .sort(m -> m.createdAt().asc()) .expansionPaths(m -> m.categories()) .build(); final ProductProjectionSearch expected = ProductProjectionSearch.ofCurrent() .withFacets(m -> m.allVariants().price().centAmount().allRanges()) .withQueryFilters(m -> m.allVariants().price().centAmount().isGreaterThanOrEqualTo(4L)) .withSort(m -> m.createdAt().asc()) .withExpansionPaths(m -> m.categories()); assertThat(actual).isEqualTo(expected); } }
public static ProductProjectionSearchBuilder of(final ProductProjectionType productProjectionType) { return new ProductProjectionSearchBuilder(ProductProjectionSearch.of(productProjectionType)); }
public static ProductProjectionSearchBuilder of(final ProductProjectionType productProjectionType) { return new ProductProjectionSearchBuilder(ProductProjectionSearch.of(productProjectionType)); }
public static ProductProjectionSearchBuilder ofStaged() { return of(ProductProjectionType.STAGED); }
public static ProductProjectionSearchBuilder of(final ProductProjectionType productProjectionType) { return new ProductProjectionSearchBuilder(ProductProjectionSearch.of(productProjectionType)); }
public static ProductProjectionSearchBuilder ofStaged() { return of(ProductProjectionType.STAGED); }
public static ProductProjectionSearchBuilder ofCurrent() { return of(ProductProjectionType.CURRENT); }
public static ProductProjectionSearchBuilder ofCurrent() { return of(ProductProjectionType.CURRENT); }
public static ProductProjectionSearchBuilder ofCurrent() { return of(ProductProjectionType.CURRENT); }