package org.knowm.xchange.okex.v5;

import org.junit.Test;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.ExchangeSpecification;

import static org.assertj.core.api.Assertions.assertThat;

public class OkexExchangeIntegrationTest {

    @Test
    public void testCreateExchangeShouldApplyDefaultSpecification() {
        ExchangeSpecification spec = ExchangeFactory.INSTANCE.createExchange(OkexExchange.class).getDefaultExchangeSpecification();
        spec.setApiKey("");
        spec.setSecretKey("");
        spec.setExchangeSpecificParametersItem("passphrase", "");
        final Exchange exchange = ExchangeFactory.INSTANCE.createExchange(spec);

        assertThat(exchange.getExchangeSpecification().getSslUri())
                .isEqualTo("https://www.okex.com");
        assertThat(exchange.getExchangeSpecification().getHost()).isEqualTo("okex.com");
    }

}
@@ -280,17 +280,16 @@
 nTest %7B%0A
-%0A
     @Tes
@@ -492,16 +492,18 @@
 tion();%0A
+//
         
@@ -514,32 +514,34 @@
 .setApiKey(%22%22);%0A
+//
         spec.set
@@ -551,24 +551,26 @@
 retKey(%22%22);%0A
+//
         spec
@@ -920,10 +920,9 @@
 ;%0A    %7D%0A
-%0A
 %7D

Build fix