1 37 package net.sourceforge.cruisecontrol; 38 39 import org.jdom.Element; 40 41 import java.util.Date ; 42 43 public class MockModificationSet extends ModificationSet { 44 45 private int modCheckCount = 0; 46 private Element modifications = new Element("modifications"); 47 private boolean modified = true; 48 private Date time = null; 49 50 public Element getModifications(Date lastBuild) { 51 modCheckCount++; 52 return modifications; 53 } 54 55 public boolean isModified() { 56 return modified; 57 } 58 59 public void setModified(boolean isModified) { 60 modified = isModified; 61 } 62 63 public java.util.Hashtable getProperties() { 64 java.util.Hashtable table = new java.util.Hashtable (); 65 table.put("filemodified", "true"); 66 table.put("fileremoved", "true"); 67 return table; 68 } 69 70 public Date getTimeOfCheck() { 71 return time; 72 } 73 74 public void setTimeOfCheck(Date timeOfCheck) { 75 time = timeOfCheck; 76 } 77 78 public int getModCheckCount() { 79 return modCheckCount; 80 } 81 } | Popular Tags |