test_class.file: micro-cors/src/test/java/com/oath/micro/server/web/cors/ConfigureBeansTest.java
test_class.identifier: ConfigureBeansTest
test_case.body: @Test
  	public void testEbayCrossDomainOff() {
  		ConfigureBeans config = new ConfigureBeans(true,"/*",new HashMap<>());
  		assertThat(config.ebayCrossDomain().getMapping().length,equalTo(0));
  	}
test_case.class_method_signature: ConfigureBeansTest.testEbayCrossDomainOff()
test_case.full_signature: @Test public void testEbayCrossDomainOff()
test_case.identifier: testEbayCrossDomainOff
test_case.invocations: assertThat getMapping ebayCrossDomain equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEbayCrossDomainOff()
focal_class.declarator: simple = false
focal_class.modifier: @Value("${cors.simple:false}")
  	private
focal_class.original_string: @Value("${cors.simple:false}")
  	private  boolean simple = false;
focal_class.type: boolean
focal_class.var_name: simple
focal_class.declarator: mapping
focal_class.modifier: @Value("${cors.mapping:/*}")
  	private
focal_class.original_string: @Value("${cors.mapping:/*}")
  	private  String mapping;
focal_class.type: String
focal_class.var_name: mapping
focal_class.declarator: initParameters
focal_class.modifier: @Qualifier("ebay-cors-config" )
  	@Autowired(required=false)
  	private
focal_class.original_string: @Qualifier("ebay-cors-config" )
  	@Autowired(required=false)
  	private  Map<String,String> initParameters;
focal_class.type: Map<String,String>
focal_class.var_name: initParameters
focal_class.file: micro-cors/src/main/java/com/oath/micro/server/web/cors/ConfigureBeans.java
focal_class.identifier: ConfigureBeans
focal_class.class_method_signature: ConfigureBeans.crossDomain()
focal_class.full_signature: @Bean public FilterConfiguration crossDomain()
focal_class.identifier: crossDomain
focal_class.modifiers: @Bean public
focal_class.parameters: ()
focal_class.return: FilterConfiguration
focal_class.signature: FilterConfiguration crossDomain()
focal_class.class_method_signature: ConfigureBeans.ebayCrossDomain()
focal_class.full_signature: @Bean public FilterConfiguration ebayCrossDomain()
focal_class.identifier: ebayCrossDomain
focal_class.modifiers: @Bean public
focal_class.parameters: ()
focal_class.return: FilterConfiguration
focal_class.signature: FilterConfiguration ebayCrossDomain()
focal_method.body: @Bean
  	public FilterConfiguration ebayCrossDomain(){
  		return new FilterConfiguration() {
  			@Override
  			public String getName() {
  				return "ebay-cors";
  			}
  			@Override
  			public String[] getMapping() {
  				if(!simple)
  					return new String[] {mapping };
  				else
  					return new String[0];
  			}
  			
  			@Override
  			public Map<String, String> getInitParameters() {
  				return Optional.ofNullable(initParameters).orElse(new HashMap<>());
  			}
  			@Override
  			public Either<Class<? extends Filter>, Filter> getFilter() {
  				return Either.left( org.ebaysf.web.cors.CORSFilter.class);
  			}
  		};
  	}
focal_method.class_method_signature: ConfigureBeans.ebayCrossDomain()
focal_method.full_signature: @Bean public FilterConfiguration ebayCrossDomain()
focal_method.identifier: ebayCrossDomain
focal_method.invocations: orElse ofNullable left
focal_method.modifiers: @Bean public
focal_method.parameters: ()
focal_method.return: FilterConfiguration
focal_method.signature: FilterConfiguration ebayCrossDomain()