Search in sources :

Example 1 with CcCityInfo

use of diboot.core.test.binder.entity.CcCityInfo in project diboot by dibo-software.

the class TestFieldBinder method testCity.

@Test
public void testCity() {
    CcCityInfo ccCityInfo = new CcCityInfo();
    ccCityInfo.setRegionId(10020L).setParentId(10010L);
    CcCityInfoVO ccCityInfoVO = Binder.convertAndBindRelations(ccCityInfo, CcCityInfoVO.class);
    System.out.println(ccCityInfoVO.getProvenceName());
    Assert.assertTrue(ccCityInfoVO.getProvenceName() != null);
}
Also used : CcCityInfo(diboot.core.test.binder.entity.CcCityInfo) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

CcCityInfo (diboot.core.test.binder.entity.CcCityInfo)1 Test (org.junit.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1