01: package net.sourceforge.jaxor.util.tests;
02:
03: import net.sourceforge.jaxor.mappers.FieldAdapterImpl;
04: import net.sourceforge.jaxor.mappers.StringMapper;
05: import net.sourceforge.jaxor.MetaField;
06:
07: /**
08: * Created By: Mike
09: * Date: Feb 9, 2004
10: * Time: 12:14:11 AM
11: *
12: * Last Checkin: $Author: mrettig $
13: * Date: $Date: 2004/02/09 06:35:41 $
14: * Revision: $Revision: 1.1 $
15: */
16: public class MockFieldAdapter extends FieldAdapterImpl {
17:
18: public int changeCount = 0;
19:
20: public MockFieldAdapter() {
21: super (new MetaField("name", true, StringMapper.class), null);
22: }
23:
24: public void registerChange(Object obj, Object oldValue) {
25: changeCount++;
26: }
27: }
|