@@ -0,0 +1,1067 @@
+package com.github.sbouclier;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.core.IsEqual.equalTo;%0A%0A/**%0A * KrakenApiException test%0A *%0A * @author St%C3%A9phane Bouclier%0A */%0Apublic class KrakenApiExceptionTest %7B%0A%0A    @Test%0A    public void should_get_error_message() %7B%0A        KrakenApiException ex = new KrakenApiException(%22error%22);%0A%0A        assertThat(ex.getMessage(), equalTo(%22%5Berror%5D%22));%0A    %7D%0A%0A    @Test%0A    public void should_get_error_message_with_throwable() %7B%0A        KrakenApiException ex = new KrakenApiException(%22error%22, new Exception());%0A%0A        assertThat(ex.getMessage(), equalTo(%22%5Berror%5D%22));%0A    %7D%0A%0A    @Test%0A    public void should_get_error_messages() %7B%0A        List%3CString%3E errors = new ArrayList%3C%3E();%0A        errors.add(%22error 1%22);%0A        errors.add(%22error 2%22);%0A        errors.add(%22error 3%22);%0A%0A        KrakenApiException ex = new KrakenApiException(errors);%0A%0A        assertThat(ex.getMessage(), equalTo(%22%5Berror 1, error 2, error 3%5D%22));%0A    %7D%0A%7D%0A

test kraken api exception