test_class.declarator: YAHOO = "YAHOO"
test_class.modifier: private static final
test_class.original_string: private static final String YAHOO = "YAHOO";
test_class.type: String
test_class.var_name: YAHOO
test_class.declarator: pairService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private PairService pairService;
test_class.type: PairService
test_class.var_name: pairService
test_class.file: trading-common/src/test/java/fr/ymanvieu/trading/common/provider/PairServiceTest.java
test_class.identifier: PairServiceTest
test_case.body: @Test
  	public void testCreate() {
  		String code = "XAUUSD=X";
  		String name = "XAU/USD";
  		String source = "XAU";
  		String target = "USD";
  
  		pairService.create(code, name, source, target, null, YAHOO);
  
  		Pair result = pairService.getForCodeAndProvider(code, YAHOO);
  
  		assertThat(result).extracting("symbol", "name", "source.code", "target.code", "providerCode") //
  				.containsExactly(code, name, source, target, YAHOO);
  	}
test_case.class_method_signature: PairServiceTest.testCreate()
test_case.full_signature: @Test public void testCreate()
test_case.identifier: testCreate
test_case.invocations: create getForCodeAndProvider containsExactly extracting assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreate()
focal_class.declarator: pairRepo
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private PairRepository pairRepo;
focal_class.type: PairRepository
focal_class.var_name: pairRepo
focal_class.declarator: pairMapper
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private PairMapper pairMapper;
focal_class.type: PairMapper
focal_class.var_name: pairMapper
focal_class.file: trading-common/src/main/java/fr/ymanvieu/trading/common/provider/PairService.java
focal_class.identifier: PairService
focal_class.class_method_signature: PairService.getForCodeAndProvider(String code, String provider)
focal_class.full_signature: public Pair getForCodeAndProvider(String code, String provider)
focal_class.identifier: getForCodeAndProvider
focal_class.modifiers: public
focal_class.parameters: (String code, String provider)
focal_class.return: Pair
focal_class.signature: Pair getForCodeAndProvider(String code, String provider)
focal_class.class_method_signature: PairService.create(String code, String name, String source, String target, String exchange, String provider)
focal_class.full_signature: public Pair create(String code, String name, String source, String target, String exchange, String provider)
focal_class.identifier: create
focal_class.modifiers: public
focal_class.parameters: (String code, String name, String source, String target, String exchange, String provider)
focal_class.return: Pair
focal_class.signature: Pair create(String code, String name, String source, String target, String exchange, String provider)
focal_class.class_method_signature: PairService.remove(String symbol, String providerCode)
focal_class.full_signature: public void remove(String symbol, String providerCode)
focal_class.identifier: remove
focal_class.modifiers: public
focal_class.parameters: (String symbol, String providerCode)
focal_class.return: void
focal_class.signature: void remove(String symbol, String providerCode)
focal_class.class_method_signature: PairService.getAllWithSymbolOrNameContaining(String symbolOrName)
focal_class.full_signature: public List<UpdatedPair> getAllWithSymbolOrNameContaining(String symbolOrName)
focal_class.identifier: getAllWithSymbolOrNameContaining
focal_class.modifiers: public
focal_class.parameters: (String symbolOrName)
focal_class.return: List<UpdatedPair>
focal_class.signature: List<UpdatedPair> getAllWithSymbolOrNameContaining(String symbolOrName)
focal_class.class_method_signature: PairService.getAllFromProvider(String providerCode)
focal_class.full_signature: public List<Pair> getAllFromProvider(String providerCode)
focal_class.identifier: getAllFromProvider
focal_class.modifiers: public
focal_class.parameters: (String providerCode)
focal_class.return: List<Pair>
focal_class.signature: List<Pair> getAllFromProvider(String providerCode)
focal_class.class_method_signature: PairService.getAll()
focal_class.full_signature: public List<UpdatedPair> getAll()
focal_class.identifier: getAll
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<UpdatedPair>
focal_class.signature: List<UpdatedPair> getAll()
focal_method.body: public Pair create(String code, String name, String source, String target, String exchange, String provider) {
  		PairEntity pe = new PairEntity(code, name, new SymbolEntity(source), new SymbolEntity(target), exchange, provider);
  		pe = pairRepo.save(pe);
  		return pairMapper.mapToPair(pe);
  	}
focal_method.class_method_signature: PairService.create(String code, String name, String source, String target, String exchange, String provider)
focal_method.full_signature: public Pair create(String code, String name, String source, String target, String exchange, String provider)
focal_method.identifier: create
focal_method.invocations: save mapToPair
focal_method.modifiers: public
focal_method.parameters: (String code, String name, String source, String target, String exchange, String provider)
focal_method.return: Pair
focal_method.signature: Pair create(String code, String name, String source, String target, String exchange, String provider)