import discovery.computername.OtagoComputerNameResolver; import gui.LabRegistry; /** * * @author Mark */ public class NameResolverTest { public static void main(String[] args) { test("SB316-15"); test("SB31614"); test("SB303-12"); test("TF10537"); test("TF8812"); } private static void test(String name) { OtagoComputerNameResolver r1 = new OtagoComputerNameResolver(name, null); r1.resolve(); System.out.println(r1.getComputerName() + " " + r1.getLabName() + " " + r1.getMachineId() + " " + new LabRegistry().getLab(r1.getLabName()).getLabDescription()); } }