From 18de824b7d1f73102d6fc837a7468919b9262271 Mon Sep 17 00:00:00 2001 From: Inal Arsanukaev Date: Tue, 7 Feb 2017 18:29:25 +0300 Subject: [PATCH] BJ-86: Up damsel, fix test (#11) --- pom.xml | 6 +++--- .../eventstock/client/poll/ClientTest.java | 18 +++++------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index a4587c2..3f36bf3 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.rbkmoney eventstock-client - 1.0.4 + 1.0.5 @@ -34,7 +34,7 @@ com.rbkmoney damsel - 1.99-557f549 + 1.132-27bc11c provided @@ -70,4 +70,4 @@ - \ No newline at end of file + diff --git a/src/test/java/com/rbkmoney/eventstock/client/poll/ClientTest.java b/src/test/java/com/rbkmoney/eventstock/client/poll/ClientTest.java index 9619cc1..656c04a 100644 --- a/src/test/java/com/rbkmoney/eventstock/client/poll/ClientTest.java +++ b/src/test/java/com/rbkmoney/eventstock/client/poll/ClientTest.java @@ -5,12 +5,8 @@ import com.rbkmoney.damsel.domain.Currency; import com.rbkmoney.damsel.event_stock.EventConstraint; import com.rbkmoney.damsel.event_stock.EventRange; import com.rbkmoney.damsel.payment_processing.Event; -import com.rbkmoney.eventstock.client.*; import com.rbkmoney.damsel.base.InvalidRequest; -import com.rbkmoney.damsel.domain.Currency; -import com.rbkmoney.damsel.domain.*; import com.rbkmoney.damsel.event_stock.*; -import com.rbkmoney.damsel.event_stock.EventRange; import com.rbkmoney.damsel.payment_processing.*; import com.rbkmoney.eventstock.client.DefaultSubscriberConfig; import com.rbkmoney.eventstock.client.EventFilter; @@ -22,9 +18,7 @@ import com.rbkmoney.thrift.filter.converter.TemporalConverter; import com.rbkmoney.thrift.filter.rule.PathConditionRule; import com.rbkmoney.woody.api.event.*; import com.rbkmoney.woody.api.trace.MetadataProperties; -import com.rbkmoney.woody.api.trace.context.TraceContext; import com.rbkmoney.woody.thrift.impl.http.THServiceBuilder; -import com.rbkmoney.woody.thrift.impl.http.THSpawnClientBuilder; import org.apache.thrift.TException; import org.junit.Assert; import org.junit.Test; @@ -33,7 +27,6 @@ import org.slf4j.LoggerFactory; import java.net.URI; import java.net.URISyntaxException; -import java.nio.ByteBuffer; import java.time.Instant; import java.util.*; import java.util.concurrent.CountDownLatch; @@ -259,14 +252,13 @@ public class ClientTest extends AbstractTest { new InvoiceCreated( new Invoice( id+"", - new PartyRef("1", 1), - "1", - "kek", + "kek_id", 1, + "kek_time", InvoiceStatus.unpaid(new InvoiceUnpaid()), - "kek", - "kek", - new Cash(100, new Currency("", "RUB", (short) 1, (short) 0)) + new InvoiceDetails("kek_product"), + "kek_time", + new Cash(100, new CurrencyRef("RUB")) ) ) )