1 16 package org.quartz; 17 18 19 22 public class JobDataMapTest extends SerializationTestSupport { 23 private static final String [] VERSIONS = new String [] {"1.4.5", "1.5.1"}; 24 25 29 protected Object getTargetObject() { 30 JobDataMap m = new JobDataMap(); 31 m.put("key", new Integer (5)); 32 return m; 33 } 34 35 39 protected String [] getVersions() { 40 return VERSIONS; 41 } 42 43 47 protected void verifyMatch(Object target, Object deserialized) { 48 JobDataMap targetMap = (JobDataMap)target; 49 JobDataMap deserializedMap = (JobDataMap)deserialized; 50 51 assertNotNull(deserializedMap); 52 assertEquals(targetMap.getWrappedMap(), deserializedMap.getWrappedMap()); 53 assertEquals(targetMap.getAllowsTransientData(), deserializedMap.getAllowsTransientData()); 54 assertEquals(targetMap.isDirty(), deserializedMap.isDirty()); 55 } 56 } 57 | Popular Tags |