Skip to content

Commit

Permalink
remove deprecated classes (#704)
Browse files Browse the repository at this point in the history
* remove deprecated classes

Signed-off-by: Mukundan Sundararajan <[email protected]>

* remove builder class ref in ITs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix setter in IT

Signed-off-by: Mukundan Sundararajan <[email protected]>
Signed-off-by: Subash Gamage <[email protected]>
  • Loading branch information
mukundansundar authored and subashfmr committed Mar 18, 2022
1 parent c085ca1 commit 72d8cae
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 633 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import io.dapr.client.domain.CloudEvent;
import io.dapr.client.domain.Metadata;
import io.dapr.client.domain.PublishEventRequest;
import io.dapr.client.domain.PublishEventRequestBuilder;

import java.util.UUID;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import io.dapr.client.DaprClientBuilder;
import io.dapr.client.domain.HttpExtension;
import io.dapr.client.domain.InvokeMethodRequest;
import io.dapr.client.domain.InvokeMethodRequestBuilder;
import io.dapr.examples.OpenTelemetryConfig;
import io.dapr.utils.TypeRef;
import io.opentelemetry.api.OpenTelemetry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import io.dapr.client.DaprClient;
import io.dapr.client.domain.HttpExtension;
import io.dapr.client.domain.InvokeMethodRequest;
import io.dapr.client.domain.InvokeMethodRequestBuilder;
import io.dapr.examples.OpenTelemetryInterceptor;
import io.dapr.utils.TypeRef;
import io.opentelemetry.context.Context;
Expand Down
7 changes: 3 additions & 4 deletions sdk-tests/src/test/java/io/dapr/it/pubsub/http/PubSubIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.dapr.client.domain.CloudEvent;
import io.dapr.client.domain.HttpExtension;
import io.dapr.client.domain.Metadata;
import io.dapr.client.domain.PublishEventRequestBuilder;
import io.dapr.client.domain.PublishEventRequest;
import io.dapr.it.BaseIT;
import io.dapr.it.DaprRun;
import io.dapr.serializer.DaprObjectSerializer;
Expand Down Expand Up @@ -195,9 +195,8 @@ public String getContentType() {
cloudEvent.setDatacontenttype("text/plain");

//Publishing a cloud event.
client.publishEvent(new PublishEventRequestBuilder(PUBSUB_NAME, TOPIC_NAME, cloudEvent)
.withContentType("application/cloudevents+json")
.build()).block();
client.publishEvent(new PublishEventRequest(PUBSUB_NAME, TOPIC_NAME, cloudEvent)
.setContentType("application/cloudevents+json")).block();
System.out.println("Published one cloud event.");

Thread.sleep(3000);
Expand Down
3 changes: 1 addition & 2 deletions sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<!--TODO Switch back coverage on removing the deprecated builder code-->
<minimum>79%</minimum>
<minimum>80%</minimum>
</limit>
</limits>
<excludes>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 72d8cae

Please sign in to comment.