File tree 1 file changed +3
-2
lines changed
services/src/test/java/io/scalecube/services/registry
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
package io .scalecube .services .registry ;
2
2
3
+ import static io .scalecube .services .transport .jackson .JacksonCodec .CONTENT_TYPE ;
3
4
import static org .junit .jupiter .api .Assertions .*;
4
5
import static org .mockito .Mockito .mock ;
5
6
@@ -67,7 +68,7 @@ void testRegisterThenUnregisterServiceEndpoint() {
67
68
ServiceEndpoint .builder ()
68
69
.id ("endpoint" + i )
69
70
.address (Address .create ("endpoint" + i , 4848 ))
70
- .contentTypes (Set .of ("json" ))
71
+ .contentTypes (Set .of (CONTENT_TYPE ))
71
72
.serviceRegistrations (
72
73
List .of (
73
74
new ServiceRegistration (
@@ -116,7 +117,7 @@ void testLookupService() {
116
117
ServiceEndpoint .builder ()
117
118
.id ("endpoint" + i )
118
119
.address (Address .create ("endpoint" + i , 4848 ))
119
- .contentTypes (Set .of ("application/json" ))
120
+ .contentTypes (Set .of (CONTENT_TYPE ))
120
121
.serviceRegistrations (
121
122
List .of (
122
123
new ServiceRegistration (
You can’t perform that action at this time.
0 commit comments