1 package net.sf.tomp.djunit.simple; 2 3 import net.sf.tomp.djunit.TestData; 4 5 import java.io.IOException; 6 7 import java.util.HashMap; 8 import java.util.Map; 9 10 public class TestDataCache 11 { 12 private Map cache = new HashMap(); 13 14 public TestData getTestData(String testDataFileName) 15 throws IOException 16 { 17 return (TestData) cache.get(testDataFileName); 18 } 19 20 public void putTestData(String testDataFileName, TestData td) 21 throws IOException 22 { 23 cache.put(testDataFileName, td); 24 } 25 }