This commit is contained in:
14
test/com/wentch/redkale/test/util/TestABean.java
Normal file
14
test/com/wentch/redkale/test/util/TestABean.java
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.wentch.redkale.test.util;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author zhangjx
|
||||
*/
|
||||
public class TestABean {
|
||||
public long time;
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import java.util.Map;
|
||||
*
|
||||
* @author zhangjx
|
||||
*/
|
||||
public class TestBean {
|
||||
public class TestBean extends TestABean {
|
||||
|
||||
private String name;
|
||||
|
||||
|
||||
@@ -23,12 +23,14 @@ public class UntilTestMain {
|
||||
final TestBean bean = new TestBean();
|
||||
bean.setId(123456);
|
||||
bean.setName("zhangjx");
|
||||
bean.time = 2000;
|
||||
final TestXBean beanx = new TestXBean();
|
||||
Reproduce<TestXBean, TestBean> action1 = Reproduce.create(TestXBean.class, TestBean.class);
|
||||
Reproduce<TestXBean, TestBean> action2 = new Reproduce<TestXBean, TestBean>() {
|
||||
|
||||
@Override
|
||||
public TestXBean copy(TestXBean dest, TestBean src) {
|
||||
dest.time = src.time;
|
||||
dest.setId(src.getId());
|
||||
dest.setName(src.getName());
|
||||
dest.setMap(src.getMap());
|
||||
|
||||
Reference in New Issue
Block a user