Search in sources :

Example 1 with HyphenStyle

use of org.simpleframework.xml.stream.HyphenStyle in project retrofit by square.

the class SimpleXmlConverterFactoryTest method setUp.

@Before
public void setUp() {
    Format format = new Format(0, null, new HyphenStyle(), Verbosity.HIGH);
    Persister persister = new Persister(format);
    Retrofit retrofit = new Retrofit.Builder().baseUrl(server.url("/")).addConverterFactory(SimpleXmlConverterFactory.create(persister)).build();
    service = retrofit.create(Service.class);
}
Also used : Retrofit(retrofit2.Retrofit) Format(org.simpleframework.xml.stream.Format) HyphenStyle(org.simpleframework.xml.stream.HyphenStyle) Persister(org.simpleframework.xml.core.Persister) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 Persister (org.simpleframework.xml.core.Persister)1 Format (org.simpleframework.xml.stream.Format)1 HyphenStyle (org.simpleframework.xml.stream.HyphenStyle)1 Retrofit (retrofit2.Retrofit)1