From 5aad2361927142656f4aec42204bec7b454ab084 Mon Sep 17 00:00:00 2001 From: Alex Gyori Date: Wed, 22 Jun 2016 19:37:20 -0500 Subject: [PATCH] fixed test to not rely on serialization order --- .../converter/simplexml/SimpleXmlConverterFactoryTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/retrofit-converters/simplexml/src/test/java/retrofit2/converter/simplexml/SimpleXmlConverterFactoryTest.java b/retrofit-converters/simplexml/src/test/java/retrofit2/converter/simplexml/SimpleXmlConverterFactoryTest.java index 8b5ed7d620..7ad58b22d3 100644 --- a/retrofit-converters/simplexml/src/test/java/retrofit2/converter/simplexml/SimpleXmlConverterFactoryTest.java +++ b/retrofit-converters/simplexml/src/test/java/retrofit2/converter/simplexml/SimpleXmlConverterFactoryTest.java @@ -71,8 +71,9 @@ interface Service { assertThat(body.getCount()).isEqualTo(10); RecordedRequest request = server.takeRequest(); - assertThat(request.getBody().readUtf8()).isEqualTo( - "hello world10"); + assertThat(request.getBody().readUtf8()).isIn( + "hello world10", + "10hello world"); assertThat(request.getHeader("Content-Type")).isEqualTo("application/xml; charset=UTF-8"); }