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);
  }
}

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
    PollingAccountService service = exchange.getPollingAccountService();
    assertNotNull(service);
    AccountInfo info = service.getAccountInfo();
    assertNotNull(info);
  }
}

Remove non-functioning assertion.