test_class.declarator: instant
test_class.modifier: private
test_class.original_string: private Instant instant;
test_class.type: Instant
test_class.var_name: instant
test_class.declarator: policy
test_class.modifier: private
test_class.original_string: private Policy policy;
test_class.type: Policy
test_class.var_name: policy
test_class.declarator: policyEvent
test_class.modifier: private
test_class.original_string: private T policyEvent;
test_class.type: T
test_class.var_name: policyEvent
test_class.declarator: strategy
test_class.modifier: private
test_class.original_string: private EventStrategy<T, Policy> strategy;
test_class.type: EventStrategy<T, Policy>
test_class.var_name: strategy
test_class.file: services/policies/persistence/src/test/java/org/eclipse/ditto/services/policies/persistence/actors/strategies/events/AbstractPolicyEventStrategyTest.java
test_class.identifier: AbstractPolicyEventStrategyTest
test_case.body: @Test
      public void testHandleReturnsNullForNullEntity() {
          assertThat(getStrategyUnderTest().handle(getPolicyEvent(instant, policy), null, 0L)).isNull();
      }
test_case.class_method_signature: AbstractPolicyEventStrategyTest.testHandleReturnsNullForNullEntity()
test_case.full_signature: @Test public void testHandleReturnsNullForNullEntity()
test_case.identifier: testHandleReturnsNullForNullEntity
test_case.invocations: isNull assertThat handle getStrategyUnderTest getPolicyEvent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHandleReturnsNullForNullEntity()
focal_class.file: services/policies/persistence/src/main/java/org/eclipse/ditto/services/policies/persistence/actors/strategies/events/AbstractPolicyEventStrategy.java
focal_class.identifier: AbstractPolicyEventStrategy
focal_class.interfaces: implements EventStrategy<T, Policy>
focal_class.class_method_signature: AbstractPolicyEventStrategy.AbstractPolicyEventStrategy()
focal_class.full_signature: protected  AbstractPolicyEventStrategy()
focal_class.identifier: AbstractPolicyEventStrategy
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  AbstractPolicyEventStrategy()
focal_class.class_method_signature: AbstractPolicyEventStrategy.handle(final T event, @Nullable final Policy policy, final long revision)
focal_class.full_signature: @Nullable @Override public Policy handle(final T event, @Nullable final Policy policy, final long revision)
focal_class.identifier: handle
focal_class.modifiers: @Nullable @Override public
focal_class.parameters: (final T event, @Nullable final Policy policy, final long revision)
focal_class.return: Policy
focal_class.signature: Policy handle(final T event, @Nullable final Policy policy, final long revision)
focal_class.class_method_signature: AbstractPolicyEventStrategy.applyEvent(final T event, final Policy policy, final PolicyBuilder policyBuilder)
focal_class.full_signature: protected PolicyBuilder applyEvent(final T event, final Policy policy, final PolicyBuilder policyBuilder)
focal_class.identifier: applyEvent
focal_class.modifiers: protected
focal_class.parameters: (final T event, final Policy policy, final PolicyBuilder policyBuilder)
focal_class.return: PolicyBuilder
focal_class.signature: PolicyBuilder applyEvent(final T event, final Policy policy, final PolicyBuilder policyBuilder)
focal_class.class_method_signature: AbstractPolicyEventStrategy.applyEvent(final T event, final PolicyBuilder policyBuilder)
focal_class.full_signature: protected PolicyBuilder applyEvent(final T event, final PolicyBuilder policyBuilder)
focal_class.identifier: applyEvent
focal_class.modifiers: protected
focal_class.parameters: (final T event, final PolicyBuilder policyBuilder)
focal_class.return: PolicyBuilder
focal_class.signature: PolicyBuilder applyEvent(final T event, final PolicyBuilder policyBuilder)
focal_method.body: @Nullable
      @Override
      public Policy handle(final T event, @Nullable final Policy policy, final long revision) {
          if (null != policy) {
              PolicyBuilder policyBuilder = policy.toBuilder()
                      .setRevision(revision)
                      .setModified(event.getTimestamp().orElse(null));
              policyBuilder = applyEvent(event, policy, policyBuilder);
              return policyBuilder.build();
          }
          return null;
      }
focal_method.class_method_signature: AbstractPolicyEventStrategy.handle(final T event, @Nullable final Policy policy, final long revision)
focal_method.full_signature: @Nullable @Override public Policy handle(final T event, @Nullable final Policy policy, final long revision)
focal_method.identifier: handle
focal_method.invocations: setModified setRevision toBuilder orElse getTimestamp applyEvent build
focal_method.modifiers: @Nullable @Override public
focal_method.parameters: (final T event, @Nullable final Policy policy, final long revision)
focal_method.return: Policy
focal_method.signature: Policy handle(final T event, @Nullable final Policy policy, final long revision)