1 19 package org.apache.avalon.excalibur.monitor.test; 20 21 22 27 public class Mock 28 { 29 private long m_lastModified = System.currentTimeMillis(); 30 private String m_content = ""; 31 private final String m_name; 32 33 public Mock(String name) 34 { 35 m_name = name; 36 } 37 38 public String getName() 39 { 40 return m_name; 41 } 42 43 public String getContent() 44 { 45 return m_content; 46 } 47 48 public void setContent(String content) 49 { 50 m_content = (null == content) ? "" : content; 51 touch(); 52 } 53 54 public long lastModified() 55 { 56 return m_lastModified; 57 } 58 59 public void touch() 60 { 61 m_lastModified = System.currentTimeMillis(); 62 } 63 } 64 | Popular Tags |