diff --git a/restlight-jaxrs-provider/src/test/java/io/esastack/restlight/jaxrs/adapter/MessageBodyReaderAdapterTest.java b/restlight-jaxrs-provider/src/test/java/io/esastack/restlight/jaxrs/adapter/MessageBodyReaderAdapterTest.java index 90cfcf46..cb560e9e 100644 --- a/restlight-jaxrs-provider/src/test/java/io/esastack/restlight/jaxrs/adapter/MessageBodyReaderAdapterTest.java +++ b/restlight-jaxrs-provider/src/test/java/io/esastack/restlight/jaxrs/adapter/MessageBodyReaderAdapterTest.java @@ -48,7 +48,7 @@ class MessageBodyReaderAdapterTest { void testBasic() { assertThrows(NullPointerException.class, () -> new MessageBodyWriterAdapter<>(null)); MessageBodyReaderAdapter adapter = new MessageBodyReaderAdapter<>(mock(Providers.class)); - assertEquals(Ordered.LOWEST_PRECEDENCE, adapter.getOrder()); + assertEquals(90, adapter.getOrder()); assertTrue(adapter.supports(mock(Param.class))); } diff --git a/restlight-jaxrs-provider/src/test/java/io/esastack/restlight/jaxrs/adapter/MessageBodyWriterAdapterTest.java b/restlight-jaxrs-provider/src/test/java/io/esastack/restlight/jaxrs/adapter/MessageBodyWriterAdapterTest.java index f8ae4530..41a4aa03 100644 --- a/restlight-jaxrs-provider/src/test/java/io/esastack/restlight/jaxrs/adapter/MessageBodyWriterAdapterTest.java +++ b/restlight-jaxrs-provider/src/test/java/io/esastack/restlight/jaxrs/adapter/MessageBodyWriterAdapterTest.java @@ -65,7 +65,7 @@ void testWriteTo() throws Throwable { final Providers providers = mock(Providers.class); final MessageBodyWriterAdapter adapter = new MessageBodyWriterAdapter<>(providers); - assertEquals(Ordered.LOWEST_PRECEDENCE, adapter.getOrder()); + assertEquals(90, adapter.getOrder()); final HttpResponse response = mock(HttpResponse.class); final ResponseEntity entity = mock(ResponseEntity.class);