Not ready for Java 1.7 constructs just yet.
This commit is contained in:
parent
7c2de3a6f2
commit
866c4435b6
1 changed files with 4 additions and 3 deletions
|
@ -42,8 +42,6 @@ import org.w3c.dom.Node;
|
||||||
import org.w3c.dom.NodeList;
|
import org.w3c.dom.NodeList;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
|
|
||||||
import com.sun.net.httpserver.HttpServer;
|
|
||||||
|
|
||||||
import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
|
import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -242,7 +240,10 @@ public class WebXmlTest extends AbstractTestClass {
|
||||||
}
|
}
|
||||||
} catch (ClassNotFoundException e) {
|
} catch (ClassNotFoundException e) {
|
||||||
return "The class does not exist.";
|
return "The class does not exist.";
|
||||||
} catch (InstantiationException | IllegalAccessException e) {
|
} catch (InstantiationException e) {
|
||||||
|
return "The class does not have a public constructor "
|
||||||
|
+ "that takes zero arguments.";
|
||||||
|
} catch (IllegalAccessException e) {
|
||||||
return "The class does not have a public constructor "
|
return "The class does not have a public constructor "
|
||||||
+ "that takes zero arguments.";
|
+ "that takes zero arguments.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue