コード例 #1
0
 public void testMfgSection() {
   // setup the test object with guts
   DecoderIndexFile di = new DecoderIndexFile();
   setupDoc();
   // invoke parsing
   di.readMfgSection(decoderIndexElement);
   // check results
   Assert.assertEquals("Digitrax ID from name ", "129", di.mfgIdFromName("Digitrax"));
   Assert.assertEquals("NMRA ID from name ", null, di.mfgIdFromName("NMRA"));
   Assert.assertEquals("Digitrax name from id ", "Digitrax", di.mfgNameFromId("129"));
 }