- From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 11 Jul 2007 10:05:51 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/autotest
In directory hutz:/tmp/cvs-serv3930/autotest
Modified Files:
AutoTest.java
Log Message:
Removing the loop used for testing
Index: AutoTest.java
===================================================================
RCS file: /sources/public/2002/css-validator/autotest/AutoTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- AutoTest.java 11 Jul 2007 10:03:15 -0000 1.2
+++ AutoTest.java 11 Jul 2007 10:05:49 -0000 1.3
@@ -27,53 +27,53 @@
* </ul>
*/
/**
-
+ *
*/
public class AutoTest {
-
- XMLReader saxReader;
-
- /**
- * Constructor.
- * @throws SAXException
- */
- public AutoTest() throws SAXException {
- saxReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
- saxReader.setContentHandler(new AutoTestContentHandler());
- }
-
- /**
- * Parse an xml file
- * @param uri the uri of the file to parse
- * @throws IOException
- * @throws SAXException
- */
- public void parse(String uri) throws IOException, SAXException {
- saxReader.parse(uri);
- }
-
- /**
- * Entry point of the program
- * @param args list of arguments of the program: uri [options]
- */
- public static void main(String[] args) {
- if (args.length != 1) {
- System.out.println("Usage : AutoTest uri");
- System.exit(1);
+
+ XMLReader saxReader;
+
+ /**
+ * Constructor.
+ *
+ * @throws SAXException
+ */
+ public AutoTest() throws SAXException {
+ saxReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
+ saxReader.setContentHandler(new AutoTestContentHandler());
}
-
- String uri = args[0];
-
- try {
- AutoTest parser = new AutoTest();
- for (int j = 0; j < 10; ++j) {
- for (int i = 0; i < 1000; i++) {
- parser.parse(uri);
- }
- Thread.sleep(5000);
- }
- } catch (Throwable t) {
- t.printStackTrace();
+
+ /**
+ * Parse an xml file
+ *
+ * @param uri
+ * the uri of the file to parse
+ * @throws IOException
+ * @throws SAXException
+ */
+ public void parse(String uri) throws IOException, SAXException {
+ saxReader.parse(uri);
+ }
+
+ /**
+ * Entry point of the program
+ *
+ * @param args
+ * list of arguments of the program: uri [options]
+ */
+ public static void main(String[] args) {
+ if (args.length != 1) {
+ System.out.println("Usage : AutoTest uri");
+ System.exit(1);
+ }
+
+ String uri = args[0];
+
+ try {
+ AutoTest parser = new AutoTest();
+ parser.parse(uri);
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
}
- }
}
\ No newline at end of file
Received on Wednesday, 11 July 2007 10:05:53 UTC