test_class.declarator: sut
test_class.modifier: private
test_class.original_string: private StrategyInstanceResolver sut;
test_class.type: StrategyInstanceResolver
test_class.var_name: sut
test_class.declarator: strategyFinder
test_class.modifier: private
test_class.original_string: private StrategyFinder strategyFinder;
test_class.type: StrategyFinder
test_class.var_name: strategyFinder
test_class.file: saga-lib/src/test/java/com/codebullets/sagalib/processing/StrategyInstanceResolverTest.java
test_class.identifier: StrategyInstanceResolverTest
test_case.body: @Test
      public void resolve_strategyReturnsInstance_instanceReturnedWithReturnValue() {
          // given
          ResolveStrategy strategy = mockStrategy();
          SagaInstanceInfo instanceInfo = new SagaInstanceInfo(null, true);
          when(strategy.resolve(any())).thenReturn(Lists.newArrayList(instanceInfo));
  
          // when
          Collection<SagaInstanceInfo> instances = sut.resolve(mock(LookupContext.class));
  
          // then
          assertThat("Expected instance in result set.", instances, hasItem(instanceInfo));
      }
test_case.class_method_signature: StrategyInstanceResolverTest.resolve_strategyReturnsInstance_instanceReturnedWithReturnValue()
test_case.full_signature: @Test public void resolve_strategyReturnsInstance_instanceReturnedWithReturnValue()
test_case.identifier: resolve_strategyReturnsInstance_instanceReturnedWithReturnValue
test_case.invocations: mockStrategy thenReturn when resolve any newArrayList resolve mock assertThat hasItem
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void resolve_strategyReturnsInstance_instanceReturnedWithReturnValue()
focal_class.declarator: strategyFinder
focal_class.modifier: private final
focal_class.original_string: private final StrategyFinder strategyFinder;
focal_class.type: StrategyFinder
focal_class.var_name: strategyFinder
focal_class.file: saga-lib/src/main/java/com/codebullets/sagalib/processing/StrategyInstanceResolver.java
focal_class.identifier: StrategyInstanceResolver
focal_class.interfaces: implements InstanceResolver
focal_class.class_method_signature: StrategyInstanceResolver.StrategyInstanceResolver(final StrategyFinder strategyFinder)
focal_class.full_signature: @Inject public  StrategyInstanceResolver(final StrategyFinder strategyFinder)
focal_class.identifier: StrategyInstanceResolver
focal_class.modifiers: @Inject public
focal_class.parameters: (final StrategyFinder strategyFinder)
focal_class.signature:  StrategyInstanceResolver(final StrategyFinder strategyFinder)
focal_class.class_method_signature: StrategyInstanceResolver.resolve(final LookupContext context)
focal_class.full_signature: @Override public Collection<SagaInstanceInfo> resolve(final LookupContext context)
focal_class.identifier: resolve
focal_class.modifiers: @Override public
focal_class.parameters: (final LookupContext context)
focal_class.return: Collection<SagaInstanceInfo>
focal_class.signature: Collection<SagaInstanceInfo> resolve(final LookupContext context)
focal_method.body: @Override
      public Collection<SagaInstanceInfo> resolve(final LookupContext context) {
          Collection<SagaInstanceInfo> allInstances = new ArrayList<>();
          Collection<ResolveStrategy> resolveStrategies = strategyFinder.find(context);
  
          for (ResolveStrategy strategy : resolveStrategies) {
              Collection<SagaInstanceInfo> resolvedInstances = strategy.resolve(context);
              allInstances.addAll(resolvedInstances);
          }
  
          return allInstances;
      }
focal_method.class_method_signature: StrategyInstanceResolver.resolve(final LookupContext context)
focal_method.full_signature: @Override public Collection<SagaInstanceInfo> resolve(final LookupContext context)
focal_method.identifier: resolve
focal_method.invocations: find resolve addAll
focal_method.modifiers: @Override public
focal_method.parameters: (final LookupContext context)
focal_method.return: Collection<SagaInstanceInfo>
focal_method.signature: Collection<SagaInstanceInfo> resolve(final LookupContext context)