test_class.file: server/src/test/java/io/spine/server/event/store/QueryToFiltersTest.java
test_class.identifier: QueryToFiltersTest
test_case.body: @Test
      @DisplayName("convert type query to EntityFilters")
      void convertTypeToFilters() {
          String typeName = " com.example.EventType ";
          EventFilter validFilter = filterForType(typeName);
          EventFilter invalidFilter = filterForType("   ");
          EventStreamQuery query = EventStreamQuery
                  .newBuilder()
                  .addFilter(validFilter)
                  .addFilter(invalidFilter)
                  .build();
          TargetFilters entityFilters = convert(query);
          assertEquals(1, entityFilters.getFilterCount());
  
          CompositeFilter compositeFilter = entityFilters.getFilter(0);
          List<Filter> filters = compositeFilter.getFilterList();
          assertEquals(CompositeOperator.EITHER, compositeFilter.getOperator());
          assertEquals(1, filters.size());
          Any typeNameAsAny = filters.get(0)
                                     .getValue();
          assertEquals(typeName.trim(), toObject(typeNameAsAny, String.class));
      }
test_case.class_method_signature: QueryToFiltersTest.convertTypeToFilters()
test_case.full_signature: @Test @DisplayName("convert type query to EntityFilters") void convertTypeToFilters()
test_case.identifier: convertTypeToFilters
test_case.invocations: filterForType filterForType build addFilter addFilter newBuilder convert assertEquals getFilterCount getFilter getFilterList assertEquals getOperator assertEquals size getValue get assertEquals trim toObject
test_case.modifiers: @Test @DisplayName("convert type query to EntityFilters")
test_case.parameters: ()
test_case.return: void
test_case.signature: void convertTypeToFilters()
focal_class.declarator: query
focal_class.modifier: private final
focal_class.original_string: private final EventStreamQuery query;
focal_class.type: EventStreamQuery
focal_class.var_name: query
focal_class.declarator: builder
focal_class.modifier: private final
focal_class.original_string: private final TargetFilters.Builder builder;
focal_class.type: TargetFilters.Builder
focal_class.var_name: builder
focal_class.file: server/src/main/java/io/spine/server/event/store/QueryToFilters.java
focal_class.identifier: QueryToFilters
focal_class.class_method_signature: QueryToFilters.convert(EventStreamQuery query)
focal_class.full_signature: static TargetFilters convert(EventStreamQuery query)
focal_class.identifier: convert
focal_class.modifiers: static
focal_class.parameters: (EventStreamQuery query)
focal_class.return: TargetFilters
focal_class.signature: TargetFilters convert(EventStreamQuery query)
focal_class.class_method_signature: QueryToFilters.QueryToFilters(EventStreamQuery query)
focal_class.full_signature: private  QueryToFilters(EventStreamQuery query)
focal_class.identifier: QueryToFilters
focal_class.modifiers: private
focal_class.parameters: (EventStreamQuery query)
focal_class.signature:  QueryToFilters(EventStreamQuery query)
focal_class.class_method_signature: QueryToFilters.convert()
focal_class.full_signature: private TargetFilters convert()
focal_class.identifier: convert
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: TargetFilters
focal_class.signature: TargetFilters convert()
focal_class.class_method_signature: QueryToFilters.addTimeFilter()
focal_class.full_signature: @SuppressWarnings("CheckReturnValue") // calling builder private void addTimeFilter()
focal_class.identifier: addTimeFilter
focal_class.modifiers: @SuppressWarnings("CheckReturnValue") // calling builder private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addTimeFilter()
focal_class.class_method_signature: QueryToFilters.addTypeFilter()
focal_class.full_signature: @SuppressWarnings("CheckReturnValue") // calling builder private void addTypeFilter()
focal_class.identifier: addTypeFilter
focal_class.modifiers: @SuppressWarnings("CheckReturnValue") // calling builder private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addTypeFilter()
focal_class.class_method_signature: QueryToFilters.add(CompositeFilter.Builder filter)
focal_class.full_signature: @SuppressWarnings("CheckReturnValue") // calling builder private void add(CompositeFilter.Builder filter)
focal_class.identifier: add
focal_class.modifiers: @SuppressWarnings("CheckReturnValue") // calling builder private
focal_class.parameters: (CompositeFilter.Builder filter)
focal_class.return: void
focal_class.signature: void add(CompositeFilter.Builder filter)
focal_method.body: static TargetFilters convert(EventStreamQuery query) {
          TargetFilters result = new QueryToFilters(query).convert();
          return result;
      }
focal_method.class_method_signature: QueryToFilters.convert(EventStreamQuery query)
focal_method.full_signature: static TargetFilters convert(EventStreamQuery query)
focal_method.identifier: convert
focal_method.invocations: convert
focal_method.modifiers: static
focal_method.parameters: (EventStreamQuery query)
focal_method.return: TargetFilters
focal_method.signature: TargetFilters convert(EventStreamQuery query)