@Test(expected=IllegalArgumentException.class) public void unknownConstant() { ConstantLookup.getValue("NotAConstant"); }
public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; }
ConstantLookup { public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; } }
ConstantLookup { public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; }  }
ConstantLookup { public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; }  static boolean isDefined(String name); static double getValue(String name); }
ConstantLookup { public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; }  static boolean isDefined(String name); static double getValue(String name);  }