| 1 19 20 31 32 import java.io.*; 33 import java.util.*; 34 import org.w3c.dom.*; 35 import java.math.*; 36 37 import root.*; 38 39 40 public class TestDupInternalNames extends BaseTest { 41 public static void main(String [] argv) { 42 TestDupInternalNames o = new TestDupInternalNames(); 43 if (argv.length > 0) 44 o.setDocumentDir(argv[0]); 45 try { 46 o.run(); 47 } catch (Exception e) { 48 e.printStackTrace(); 49 System.exit(1); 50 } 51 System.exit(0); 52 } 53 54 public void run() throws Exception { 55 Root dupInternalNames; 56 57 this.readDocument(); 58 59 out("creating the bean graph"); 60 dupInternalNames = Root.read(doc); 61 62 out("bean graph created"); 64 dupInternalNames.write(out); 65 66 AnalogInput in = dupInternalNames.getIn(); 67 in.setPointNumber(new BigInteger("5")); 68 AnalogOutput o = dupInternalNames.getOut(); 69 o.setPointNumber(new BigInteger("89")); 70 dupInternalNames.write(out); 71 } 72 } 73 | Popular Tags |