test_class.file: step-functions/step-functions-client/src/test/java/step/functions/execution/ConfigurableTokenLifecycleStrategyTest.java
test_class.identifier: ConfigurableTokenLifecycleStrategyTest
test_case.body: @Test
  	public void testAddErrorOnTokenCallErrorTrue() {
  		AtomicBoolean callBackCalled = new AtomicBoolean(false);
  		TokenLifecycleStrategy s = new ConfigurableTokenLifecycleStrategy(true, true, true, true, null);
  		s.afterTokenCallError(new TokenLifecycleStrategyCallback(null, null) {
  
  			@Override
  			public void addTokenError(String errorMessage, Exception exception) {
  				Assert.assertEquals("my message", exception.getMessage());
  				callBackCalled.set(true);
  			}
  			
  		}, new TokenWrapper(), new Exception("my message"));
  
  		Assert.assertTrue(callBackCalled.get());
  	}
test_case.class_method_signature: ConfigurableTokenLifecycleStrategyTest.testAddErrorOnTokenCallErrorTrue()
test_case.full_signature: @Test public void testAddErrorOnTokenCallErrorTrue()
test_case.identifier: testAddErrorOnTokenCallErrorTrue
test_case.invocations: afterTokenCallError assertEquals getMessage set assertTrue get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAddErrorOnTokenCallErrorTrue()
focal_class.declarator: addErrorOnTokenReleaseError = true
focal_class.modifier: private
focal_class.original_string: private boolean addErrorOnTokenReleaseError = true;
focal_class.type: boolean
focal_class.var_name: addErrorOnTokenReleaseError
focal_class.declarator: addErrorOnTokenReservationError = true
focal_class.modifier: private
focal_class.original_string: private boolean addErrorOnTokenReservationError = true;
focal_class.type: boolean
focal_class.var_name: addErrorOnTokenReservationError
focal_class.declarator: addErrorOnTokenCallError = true
focal_class.modifier: private
focal_class.original_string: private boolean addErrorOnTokenCallError = true;
focal_class.type: boolean
focal_class.var_name: addErrorOnTokenCallError
focal_class.declarator: addErrorOnAgentError = true
focal_class.modifier: private
focal_class.original_string: private boolean addErrorOnAgentError = true;
focal_class.type: boolean
focal_class.var_name: addErrorOnAgentError
focal_class.declarator: concernedAgentErrors
focal_class.modifier: private
focal_class.original_string: private Set<AgentErrorCode> concernedAgentErrors;
focal_class.type: Set<AgentErrorCode>
focal_class.var_name: concernedAgentErrors
focal_class.declarator: listeners = new ArrayList<>()
focal_class.modifier: private
focal_class.original_string: private List<TokenErrorListener> listeners = new ArrayList<>();
focal_class.type: List<TokenErrorListener>
focal_class.var_name: listeners
focal_class.file: step-functions/step-functions-client/src/main/java/step/functions/execution/ConfigurableTokenLifecycleStrategy.java
focal_class.identifier: ConfigurableTokenLifecycleStrategy
focal_class.interfaces: implements TokenLifecycleStrategy
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.ConfigurableTokenLifecycleStrategy(boolean addErrorOnTokenReleaseError,
  			boolean addErrorOnTokenReservationError, boolean addErrorOnTokenCallError, boolean addErrorOnAgentError,
  			Set<AgentErrorCode> concernedAgentErrors)
focal_class.full_signature: public  ConfigurableTokenLifecycleStrategy(boolean addErrorOnTokenReleaseError,
  			boolean addErrorOnTokenReservationError, boolean addErrorOnTokenCallError, boolean addErrorOnAgentError,
  			Set<AgentErrorCode> concernedAgentErrors)
focal_class.identifier: ConfigurableTokenLifecycleStrategy
focal_class.modifiers: public
focal_class.parameters: (boolean addErrorOnTokenReleaseError,
  			boolean addErrorOnTokenReservationError, boolean addErrorOnTokenCallError, boolean addErrorOnAgentError,
  			Set<AgentErrorCode> concernedAgentErrors)
focal_class.signature:  ConfigurableTokenLifecycleStrategy(boolean addErrorOnTokenReleaseError,
  			boolean addErrorOnTokenReservationError, boolean addErrorOnTokenCallError, boolean addErrorOnAgentError,
  			Set<AgentErrorCode> concernedAgentErrors)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.isAddErrorOnTokenReleaseError()
focal_class.full_signature: public boolean isAddErrorOnTokenReleaseError()
focal_class.identifier: isAddErrorOnTokenReleaseError
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAddErrorOnTokenReleaseError()
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.setAddErrorOnTokenReleaseError(boolean addErrorOnTokenReleaseError)
focal_class.full_signature: public void setAddErrorOnTokenReleaseError(boolean addErrorOnTokenReleaseError)
focal_class.identifier: setAddErrorOnTokenReleaseError
focal_class.modifiers: public
focal_class.parameters: (boolean addErrorOnTokenReleaseError)
focal_class.return: void
focal_class.signature: void setAddErrorOnTokenReleaseError(boolean addErrorOnTokenReleaseError)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.isAddErrorOnTokenReservationError()
focal_class.full_signature: public boolean isAddErrorOnTokenReservationError()
focal_class.identifier: isAddErrorOnTokenReservationError
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAddErrorOnTokenReservationError()
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.setAddErrorOnTokenReservationError(boolean addErrorOnTokenReservationError)
focal_class.full_signature: public void setAddErrorOnTokenReservationError(boolean addErrorOnTokenReservationError)
focal_class.identifier: setAddErrorOnTokenReservationError
focal_class.modifiers: public
focal_class.parameters: (boolean addErrorOnTokenReservationError)
focal_class.return: void
focal_class.signature: void setAddErrorOnTokenReservationError(boolean addErrorOnTokenReservationError)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.isAddErrorOnTokenCallError()
focal_class.full_signature: public boolean isAddErrorOnTokenCallError()
focal_class.identifier: isAddErrorOnTokenCallError
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAddErrorOnTokenCallError()
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.setAddErrorOnTokenCallError(boolean addErrorOnTokenCallError)
focal_class.full_signature: public void setAddErrorOnTokenCallError(boolean addErrorOnTokenCallError)
focal_class.identifier: setAddErrorOnTokenCallError
focal_class.modifiers: public
focal_class.parameters: (boolean addErrorOnTokenCallError)
focal_class.return: void
focal_class.signature: void setAddErrorOnTokenCallError(boolean addErrorOnTokenCallError)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.isAddErrorOnAgentError()
focal_class.full_signature: public boolean isAddErrorOnAgentError()
focal_class.identifier: isAddErrorOnAgentError
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAddErrorOnAgentError()
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.setAddErrorOnAgentError(boolean addErrorOnAgentError)
focal_class.full_signature: public void setAddErrorOnAgentError(boolean addErrorOnAgentError)
focal_class.identifier: setAddErrorOnAgentError
focal_class.modifiers: public
focal_class.parameters: (boolean addErrorOnAgentError)
focal_class.return: void
focal_class.signature: void setAddErrorOnAgentError(boolean addErrorOnAgentError)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.getConcernedAgentErrors()
focal_class.full_signature: public Set<AgentErrorCode> getConcernedAgentErrors()
focal_class.identifier: getConcernedAgentErrors
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<AgentErrorCode>
focal_class.signature: Set<AgentErrorCode> getConcernedAgentErrors()
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.setConcernedAgentErrors(Set<AgentErrorCode> concernedAgentErrors)
focal_class.full_signature: public void setConcernedAgentErrors(Set<AgentErrorCode> concernedAgentErrors)
focal_class.identifier: setConcernedAgentErrors
focal_class.modifiers: public
focal_class.parameters: (Set<AgentErrorCode> concernedAgentErrors)
focal_class.return: void
focal_class.signature: void setConcernedAgentErrors(Set<AgentErrorCode> concernedAgentErrors)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.afterTokenReleaseError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			Exception e)
focal_class.full_signature: @Override public void afterTokenReleaseError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			Exception e)
focal_class.identifier: afterTokenReleaseError
focal_class.modifiers: @Override public
focal_class.parameters: (TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			Exception e)
focal_class.return: void
focal_class.signature: void afterTokenReleaseError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			Exception e)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.afterTokenReservationError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			Exception e)
focal_class.full_signature: @Override public void afterTokenReservationError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			Exception e)
focal_class.identifier: afterTokenReservationError
focal_class.modifiers: @Override public
focal_class.parameters: (TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			Exception e)
focal_class.return: void
focal_class.signature: void afterTokenReservationError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			Exception e)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.afterTokenCallError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e)
focal_class.full_signature: @Override public void afterTokenCallError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e)
focal_class.identifier: afterTokenCallError
focal_class.modifiers: @Override public
focal_class.parameters: (TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e)
focal_class.return: void
focal_class.signature: void afterTokenCallError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.afterTokenCall(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			OutputMessage outputMessage)
focal_class.full_signature: @Override public void afterTokenCall(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			OutputMessage outputMessage)
focal_class.identifier: afterTokenCall
focal_class.modifiers: @Override public
focal_class.parameters: (TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			OutputMessage outputMessage)
focal_class.return: void
focal_class.signature: void afterTokenCall(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper,
  			OutputMessage outputMessage)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.addTokenError(TokenLifecycleStrategyCallback callback, String errorMessage, Exception e)
focal_class.full_signature: protected void addTokenError(TokenLifecycleStrategyCallback callback, String errorMessage, Exception e)
focal_class.identifier: addTokenError
focal_class.modifiers: protected
focal_class.parameters: (TokenLifecycleStrategyCallback callback, String errorMessage, Exception e)
focal_class.return: void
focal_class.signature: void addTokenError(TokenLifecycleStrategyCallback callback, String errorMessage, Exception e)
focal_class.class_method_signature: ConfigurableTokenLifecycleStrategy.registerTokenErrorListener(TokenErrorListener e)
focal_class.full_signature: public boolean registerTokenErrorListener(TokenErrorListener e)
focal_class.identifier: registerTokenErrorListener
focal_class.modifiers: public
focal_class.parameters: (TokenErrorListener e)
focal_class.return: boolean
focal_class.signature: boolean registerTokenErrorListener(TokenErrorListener e)
focal_method.body: @Override
  	public void afterTokenCallError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e) {
  		if(addErrorOnTokenCallError) { 
  			addTokenError(callback, "Error while calling agent", e);
  		}
  	}
focal_method.class_method_signature: ConfigurableTokenLifecycleStrategy.afterTokenCallError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e)
focal_method.full_signature: @Override public void afterTokenCallError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e)
focal_method.identifier: afterTokenCallError
focal_method.invocations: addTokenError
focal_method.modifiers: @Override public
focal_method.parameters: (TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e)
focal_method.return: void
focal_method.signature: void afterTokenCallError(TokenLifecycleStrategyCallback callback, TokenWrapper tokenWrapper, Exception e)