test_class.declarator: aggregateRoot
test_class.modifier: private
test_class.original_string: private AggregateRootTestEnv.ProjectRoot aggregateRoot;
test_class.type: AggregateRootTestEnv.ProjectRoot
test_class.var_name: aggregateRoot
test_class.declarator: context
test_class.modifier: private
test_class.original_string: private BoundedContext context;
test_class.type: BoundedContext
test_class.var_name: context
test_class.file: server/src/test/java/io/spine/server/aggregate/AggregateRootTest.java
test_class.identifier: AggregateRootTest
test_case.body: @Test
      @DisplayName("obtain part state by its class")
      void returnPartStateByClass() {
          EntityState definitionPart = aggregateRoot.partState(ProjectDefinition.class);
          assertNotNull(definitionPart);
  
          EntityState lifeCyclePart = aggregateRoot.partState(ProjectLifecycle.class);
          assertNotNull(lifeCyclePart);
      }
test_case.class_method_signature: AggregateRootTest.returnPartStateByClass()
test_case.full_signature: @Test @DisplayName("obtain part state by its class") void returnPartStateByClass()
test_case.identifier: returnPartStateByClass
test_case.invocations: partState assertNotNull partState assertNotNull
test_case.modifiers: @Test @DisplayName("obtain part state by its class")
test_case.parameters: ()
test_case.return: void
test_case.signature: void returnPartStateByClass()
focal_class.declarator: context
focal_class.modifier: private final
focal_class.original_string: private final BoundedContext context;
focal_class.type: BoundedContext
focal_class.var_name: context
focal_class.declarator: id
focal_class.modifier: private final
focal_class.original_string: private final I id;
focal_class.type: I
focal_class.var_name: id
focal_class.file: server/src/main/java/io/spine/server/aggregate/AggregateRoot.java
focal_class.identifier: AggregateRoot
focal_class.class_method_signature: AggregateRoot.AggregateRoot(BoundedContext context, I id)
focal_class.full_signature: protected  AggregateRoot(BoundedContext context, I id)
focal_class.identifier: AggregateRoot
focal_class.modifiers: protected
focal_class.parameters: (BoundedContext context, I id)
focal_class.signature:  AggregateRoot(BoundedContext context, I id)
focal_class.class_method_signature: AggregateRoot.id()
focal_class.full_signature: public I id()
focal_class.identifier: id
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: I
focal_class.signature: I id()
focal_class.class_method_signature: AggregateRoot.partState(Class<S> partStateClass)
focal_class.full_signature: protected S partState(Class<S> partStateClass)
focal_class.identifier: partState
focal_class.modifiers: protected
focal_class.parameters: (Class<S> partStateClass)
focal_class.return: S
focal_class.signature: S partState(Class<S> partStateClass)
focal_class.class_method_signature: AggregateRoot.repositoryOf(Class<S> stateClass)
focal_class.full_signature: @SuppressWarnings("unchecked") // We ensure ID type when adding to the map. private AggregatePartRepository<I, A, ?> repositoryOf(Class<S> stateClass)
focal_class.identifier: repositoryOf
focal_class.modifiers: @SuppressWarnings("unchecked") // We ensure ID type when adding to the map. private
focal_class.parameters: (Class<S> stateClass)
focal_class.return: AggregatePartRepository<I, A, ?>
focal_class.signature: AggregatePartRepository<I, A, ?> repositoryOf(Class<S> stateClass)
focal_method.body: protected <S extends EntityState, A extends AggregatePart<I, S, ?, ?>>
      S partState(Class<S> partStateClass) {
          AggregatePartRepository<I, A, ?> repo = repositoryOf(partStateClass);
          AggregatePart<I, S, ?, ?> aggregatePart = repo.loadOrCreate(id());
          S partState = aggregatePart.state();
          return partState;
      }
focal_method.class_method_signature: AggregateRoot.partState(Class<S> partStateClass)
focal_method.full_signature: protected S partState(Class<S> partStateClass)
focal_method.identifier: partState
focal_method.invocations: repositoryOf loadOrCreate id state
focal_method.modifiers: protected
focal_method.parameters: (Class<S> partStateClass)
focal_method.return: S
focal_method.signature: S partState(Class<S> partStateClass)