package com.xeiam.xchange.btce.v3.service.polling;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.btce.v3.BTCEExchange;
import com.xeiam.xchange.btce.v3.ExchangeUtils;
import com.xeiam.xchange.btce.v3.dto.account.BTCEAccountInfo;
import com.xeiam.xchange.dto.account.AccountInfo;
import com.xeiam.xchange.exceptions.NonceException;
import com.xeiam.xchange.service.polling.account.PollingAccountService;
import org.junit.Test;

import static org.junit.Assert.assertNotNull;

/**
 * Integration tests for AccountInfo retrieval.
 *
 * For these tests to function, a file 'v3/exchangeConfiguration.json' must be on the
 * classpath and contain valid api and secret keys.
 *
 * @author Peter N. Steinmetz
 *         Date: 3/30/15
 *         Time: 7:15 PM
 */
public class AccountInfoFetchIntegration {

  @Test
  public void fetchAccountInfoTest() throws Exception {
    Exchange exchange = ExchangeUtils.createExchangeFromJsonConfiguration();
    if (exchange==null) return;  // forces pass if not configuration is available
    assertNotNull(exchange);
    PollingAccountService service = exchange.getPollingAccountService();
    assertNotNull(service);
    AccountInfo info = service.getAccountInfo();
    assertNotNull(info);
  }
}

@@ -1123,37 +1123,8 @@
 ble%0A
-    assertNotNull(exchange);%0A
     

Remove non-functioning assertion.