Search in sources :

Example 1 with EzySimpleJsonWriter

use of com.tvd12.ezyfox.json.EzySimpleJsonWriter in project ezyfox-server by youngmonkeys.

the class EzySimpleXmlReaderTest method test3.

@Test
public void test3() {
    EzyXmlReader reader = EzySimpleXmlMapper.builder().contextPath("com.tvd12.ezyfoxserver").classLoader(getClass().getClassLoader()).build();
    EzySimpleSettings settings = reader.read(new File("src/main/resources/ezy-settings.xml"), EzySimpleSettings.class);
    System.out.println(new EzySimpleJsonWriter().writeAsString(settings));
}
Also used : EzyXmlReader(com.tvd12.ezyfox.mapping.jaxb.EzyXmlReader) EzySimpleJsonWriter(com.tvd12.ezyfox.json.EzySimpleJsonWriter) EzySimpleSettings(com.tvd12.ezyfoxserver.setting.EzySimpleSettings) File(java.io.File) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzySimpleJsonWriter (com.tvd12.ezyfox.json.EzySimpleJsonWriter)1 EzyXmlReader (com.tvd12.ezyfox.mapping.jaxb.EzyXmlReader)1 EzySimpleSettings (com.tvd12.ezyfoxserver.setting.EzySimpleSettings)1 BaseTest (com.tvd12.test.base.BaseTest)1 File (java.io.File)1 Test (org.testng.annotations.Test)1