test_class.declarator: MENU_COUNT = 16
test_class.modifier: private static final
test_class.original_string: private static final int MENU_COUNT = 16;
test_class.type: int
test_class.var_name: MENU_COUNT
test_class.declarator: factory =
              new TestActorRequestFactory(EntityQueryProcessorTest.class)
test_class.modifier: private static final
test_class.original_string: private static final TestActorRequestFactory factory =
              new TestActorRequestFactory(EntityQueryProcessorTest.class);
test_class.type: TestActorRequestFactory
test_class.var_name: factory
test_class.declarator: queries = factory.query()
test_class.modifier: private static final
test_class.original_string: private static final QueryFactory queries = factory.query();
test_class.type: QueryFactory
test_class.var_name: queries
test_class.declarator: context
test_class.modifier: private
test_class.original_string: private BlackBoxContext context;
test_class.type: BlackBoxContext
test_class.var_name: context
test_class.declarator: processor
test_class.modifier: private
test_class.original_string: private EntityQueryProcessor processor;
test_class.type: EntityQueryProcessor
test_class.var_name: processor
test_class.file: server/src/test/java/io/spine/server/stand/EntityQueryProcessorTest.java
test_class.identifier: EntityQueryProcessorTest
test_case.body: @Test
      @DisplayName("fail if the query does not specify filters and `include_all` is not set")
      void failOnInvalidQuery() {
          Target target = Target
                  .newBuilder()
                  .setType(TypeName.of(Mirror.class).value())
                  .buildPartial();
          Query query = Query
                  .newBuilder()
                  .setId(QueryId.newBuilder().setValue(newUuid()))
                  .setContext(factory.newActorContext())
                  .setTarget(target)
                  .buildPartial();
          assertThrows(ValidationException.class, () -> processor.process(query));
      }
test_case.class_method_signature: EntityQueryProcessorTest.failOnInvalidQuery()
test_case.full_signature: @Test @DisplayName("fail if the query does not specify filters and `include_all` is not set") void failOnInvalidQuery()
test_case.identifier: failOnInvalidQuery
test_case.invocations: buildPartial setType newBuilder value of buildPartial setTarget setContext setId newBuilder setValue newBuilder newUuid newActorContext assertThrows process
test_case.modifiers: @Test @DisplayName("fail if the query does not specify filters and `include_all` is not set")
test_case.parameters: ()
test_case.return: void
test_case.signature: void failOnInvalidQuery()
focal_class.declarator: repository
focal_class.modifier: private final
focal_class.original_string: private final RecordBasedRepository<?, ? extends Entity, ? extends EntityState> repository;
focal_class.type: RecordBasedRepository<?, ? extends Entity, ? extends EntityState>
focal_class.var_name: repository
focal_class.file: server/src/main/java/io/spine/server/stand/EntityQueryProcessor.java
focal_class.identifier: EntityQueryProcessor
focal_class.interfaces: implements QueryProcessor
focal_class.class_method_signature: EntityQueryProcessor.EntityQueryProcessor(
              RecordBasedRepository<?, ? extends Entity, ? extends EntityState> repository)
focal_class.full_signature:   EntityQueryProcessor(
              RecordBasedRepository<?, ? extends Entity, ? extends EntityState> repository)
focal_class.identifier: EntityQueryProcessor
focal_class.parameters: (
              RecordBasedRepository<?, ? extends Entity, ? extends EntityState> repository)
focal_class.signature:  EntityQueryProcessor(
              RecordBasedRepository<?, ? extends Entity, ? extends EntityState> repository)
focal_class.class_method_signature: EntityQueryProcessor.process(Query query)
focal_class.full_signature: @Override public ImmutableCollection<EntityStateWithVersion> process(Query query)
focal_class.identifier: process
focal_class.modifiers: @Override public
focal_class.parameters: (Query query)
focal_class.return: ImmutableCollection<EntityStateWithVersion>
focal_class.signature: ImmutableCollection<EntityStateWithVersion> process(Query query)
focal_class.class_method_signature: EntityQueryProcessor.loadByQuery(Query query)
focal_class.full_signature: private Iterator<EntityRecord> loadByQuery(Query query)
focal_class.identifier: loadByQuery
focal_class.modifiers: private
focal_class.parameters: (Query query)
focal_class.return: Iterator<EntityRecord>
focal_class.signature: Iterator<EntityRecord> loadByQuery(Query query)
focal_class.class_method_signature: EntityQueryProcessor.loadAll(ResponseFormat format)
focal_class.full_signature: private Iterator<EntityRecord> loadAll(ResponseFormat format)
focal_class.identifier: loadAll
focal_class.modifiers: private
focal_class.parameters: (ResponseFormat format)
focal_class.return: Iterator<EntityRecord>
focal_class.signature: Iterator<EntityRecord> loadAll(ResponseFormat format)
focal_class.class_method_signature: EntityQueryProcessor.toEntityState(EntityRecord record)
focal_class.full_signature: private static EntityStateWithVersion toEntityState(EntityRecord record)
focal_class.identifier: toEntityState
focal_class.modifiers: private static
focal_class.parameters: (EntityRecord record)
focal_class.return: EntityStateWithVersion
focal_class.signature: EntityStateWithVersion toEntityState(EntityRecord record)
focal_method.body: @Override
      public ImmutableCollection<EntityStateWithVersion> process(Query query) {
          Iterator<EntityRecord> entities = query.all()
                                            ? loadAll(query.responseFormat())
                                            : loadByQuery(query);
          ImmutableList<EntityStateWithVersion> result = stream(entities)
                  .map(EntityQueryProcessor::toEntityState)
                  .collect(toImmutableList());
          return result;
      }
focal_method.class_method_signature: EntityQueryProcessor.process(Query query)
focal_method.full_signature: @Override public ImmutableCollection<EntityStateWithVersion> process(Query query)
focal_method.identifier: process
focal_method.invocations: all loadAll responseFormat loadByQuery collect map stream toImmutableList
focal_method.modifiers: @Override public
focal_method.parameters: (Query query)
focal_method.return: ImmutableCollection<EntityStateWithVersion>
focal_method.signature: ImmutableCollection<EntityStateWithVersion> process(Query query)