public void testUpdateInformation() throws Exception
{
BoerseSecuritiesInformationManager manager = new BoerseSecuritiesInformationManager();
SecuritiesInformation info = new SecuritiesInformation();
info.setPriceNotation(new BigDecimal(1));
SecuritiesMarketPrice marketPrice = new SecuritiesMarketPrice();
SecuritiesCurrentMarketPrice currentMarketPrice = new SecuritiesCurrentMarketPrice();
ExchangeRate euro = new ExchangeRate();
euro.setRate(new BigDecimal(1));
euro.setSourceCurrency("EUR");
euro.setTargetCurrency("EUR");
ArrayList<ExchangeRate> rates = new ArrayList<ExchangeRate>();
rates.add(euro);
ExchangeRateManager exchangeRate = new ExchangeRateManager(rates, "EUR");
MessageToWriterTransformer systemErrWriter = new MessageToWriterTransformer(System.err);
try
{
boolean updateResult;
//info.setIsin("AT0000662275");
//updateResult = manager.updateInformation(info, marketPrice, currentMarketPrice, exchangeRate, systemErrWriter);
info.setIsin("FR0010315770");
updateResult = manager.updateInformation(info, marketPrice, currentMarketPrice, exchangeRate, systemErrWriter);
info.setIsin("AT0000764865");
updateResult = manager.updateInformation(info, marketPrice, currentMarketPrice, exchangeRate, systemErrWriter);
info.setIsin("DE000CG1CMQ4");
updateResult = manager.updateInformation(info, marketPrice, currentMarketPrice, exchangeRate, systemErrWriter);
info.setIsin("XS0181557454");
updateResult = manager.updateInformation(info, marketPrice, currentMarketPrice, exchangeRate, systemErrWriter);
info.setIsin("DE0007100000");
updateResult = manager.updateInformation(info, marketPrice, currentMarketPrice, exchangeRate, systemErrWriter);
//assertTrue(updateResult);//ignore the result, there may be no internet connection
info.setIsin("DE0008471400");
updateResult = manager.updateInformation(info, marketPrice, currentMarketPrice, exchangeRate, systemErrWriter);
//assertTrue(updateResult);//ignore the result, there may be no internet connection