@@ -0,0 +1,1266 @@
+package gov.nih.nci.ispy.test;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport gov.nih.nci.ispy.service.annotation.IdMapperEntry;%0Aimport gov.nih.nci.ispy.service.annotation.IdMapperFileBasedService;%0A%0Apublic class IdMapperFileBasedServiceTester %7B%0A%0A%09public IdMapperFileBasedServiceTester() %7B%0A%09%09super();%0A%09%09// TODO Auto-generated constructor stub%0A%09%7D%0A%0A%09/**%0A%09 * @param args%0A%09 */%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09IdMapperFileBasedService idMapper = IdMapperFileBasedService.getInstance();%0A%09%09idMapper.setMappingFile(%22C:%5C%5Ceclipse%5C%5Cworkspace%5C%5Cispyportal%5C%5CWebRoot%5C%5CWEB-INF%5C%5Cdata_files%5C%5CidMappingFile4-6-06.txt%22);%0A%09%09 %0A%09%09List%3CString%3E inputList = new ArrayList%3CString%3E();%0A%09%09inputList.add(%22212283%22);%0A%09%09inputList.add(%221024%22);%0A%09%09List%3CIdMapperEntry%3E entries = idMapper.getMapperEntriesForIds(inputList);%0A%0A%09%09for (IdMapperEntry entry:entries) %7B%0A%09%09  System.out.println(entry);%0A%09%09%7D%0A%09%09%0A%09%09String%5B%5D%5B%5D idArr = idMapper.getMappingForIds(inputList);%0A%09%09%0A%09%09for (int row=0; row %3C idArr.length; row++) %7B%0A%09%09  String%5B%5D rowData = idArr%5Brow%5D;%0A%09%09  for (int col=0; col %3C rowData.length; col++) %7B%0A%09%09    System.out.print(rowData%5Bcol%5D);%0A%09%09    if (col %3C rowData.length-1) %7B%0A%09%09    %09System.out.print(%22%5Ct%22);%0A%09%09    %7D%0A%09%09    else %7B%0A%09%09    %09System.out.println();%0A%09%09    %7D%0A%09%09  %7D%0A%09%09%7D%0A%09%09%0A%09%7D%0A%0A%7D%0A

Test class to test the id mapping.