mirror of https://github.com/dapr/java-sdk.git
Fix unit tests. Add comments.
This commit is contained in:
parent
9bf4adeae5
commit
db97c19bd0
|
@ -7,10 +7,8 @@ package io.dapr.actors.runtime;
|
|||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.dapr.actors.ActorId;
|
||||
import io.dapr.client.ObjectSerializer;
|
||||
import io.dapr.config.Properties;
|
||||
import io.dapr.serializer.DaprObjectSerializer;
|
||||
import io.dapr.serializer.DefaultObjectSerializer;
|
||||
import io.dapr.utils.TypeRef;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
|
@ -28,6 +26,9 @@ class DaprStateAsyncProvider {
|
|||
*/
|
||||
private static final Charset CHARSET = Properties.STRING_CHARSET.get();
|
||||
|
||||
/**
|
||||
* Marker to identify Json serializers.
|
||||
*/
|
||||
public static final String JSON_CONTENT_TYPE = "application/json";
|
||||
|
||||
/**
|
||||
|
|
|
@ -145,7 +145,7 @@ public class DaprStateAsyncProviderTest {
|
|||
})))
|
||||
.thenReturn(Mono.empty());
|
||||
|
||||
DaprStateAsyncProvider provider = new DaprStateAsyncProvider(daprClient, new CustomJsonSerializer());
|
||||
DaprStateAsyncProvider provider = new DaprStateAsyncProvider(daprClient, SERIALIZER);
|
||||
provider.apply("MyActor",
|
||||
new ActorId("123"),
|
||||
createInsertChange("name", "Jon Doe"),
|
||||
|
@ -190,7 +190,7 @@ public class DaprStateAsyncProviderTest {
|
|||
})))
|
||||
.thenReturn(Mono.empty());
|
||||
|
||||
DaprStateAsyncProvider provider = new DaprStateAsyncProvider(daprClient, SERIALIZER);
|
||||
DaprStateAsyncProvider provider = new DaprStateAsyncProvider(daprClient, new CustomJsonSerializer());
|
||||
provider.apply("MyActor",
|
||||
new ActorId("123"),
|
||||
createInsertChange("object", new Customer().setId(1000).setName("Roxane")))
|
||||
|
|
Loading…
Reference in New Issue