1415161718192021222324
public LinkParser(Database db) { this.db = db; } public void parse(StringTokenizer st) { Link l = new Link(); l.setFrom(st.nextToken()); l.setTo(st.nextToken()); db.addLink(l); }
138139140141142143144145146147148149150
dt.setType(DateTime.Type.UTC); z.setUntil(dt); db.addZone("zone", z); Link l = new Link(); l.setFrom("zone"); l.setTo("alias"); db.addLink(l); assertEquals(1, db.getZones().size());