remove debug/logging code
package com.quorum.tessera.partyinfo;
+
import com.quorum.tessera.config.Config;
import com.quorum.tessera.context.RuntimeContextFactory;
import com.quorum.tessera.enclave.Enclave;
@@ -8,13 +9,10 @@ import com.quorum.tessera.encryption.PublicKey;
import com.quorum.tessera.partyinfo.model.Party;
import com.quorum.tessera.partyinfo.model.PartyInfo;
import com.quorum.tessera.partyinfo.model.Recipient;
-import org.apache.commons.lang3.exception.ExceptionUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import java.io.UncheckedIOException;
import java.util.*;
@@ -31,8 +29,6 @@ import static org.mockito.Mockito.*;
public class PartyInfoServiceTest {
- private static final Logger LOGGER = LoggerFactory.getLogger(PartyInfoServiceTest.class);
-
private static final String URI = "http://localhost:8080";
private PartyInfoStore partyInfoStore;
@@ -85,16 +81,8 @@ public class PartyInfoServiceTest {
when(enclave.getPublicKeys()).thenReturn(ourKeys);
- try {
partyInfoService.populateStore();
- } catch (Throwable ex) {
- ex.printStackTrace();
- LOGGER.error("HERE",ex);
- assertThat(ex)
- .describedAs(ExceptionUtils.getStackTrace(ex))
- .isNull();
- }
verify(partyInfoStore).getPartyInfo();
verify(partyInfoStore).store(any(PartyInfo.class));
verify(enclave).getPublicKeys();
