com.sun.xml.fastinfoset.roundtriptests.AllRoundTripTest Maven / Gradle / Ivy
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2004-2018 Oracle and/or its affiliates. All rights reserved.
*
* Oracle licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sun.xml.fastinfoset.roundtriptests;
import com.sun.xml.fastinfoset.roundtriptests.rtt.DOMRoundTripRtt;
import com.sun.xml.fastinfoset.roundtriptests.rtt.DOMSAXRoundTripRtt;
import com.sun.xml.fastinfoset.roundtriptests.rtt.RoundTripRtt;
import com.sun.xml.fastinfoset.roundtriptests.rtt.SAXRoundTripRtt;
import com.sun.xml.fastinfoset.roundtriptests.rtt.SAXStAXDiffRtt;
import com.sun.xml.fastinfoset.roundtriptests.rtt.StAXRoundTripRtt;
import java.io.File;
import java.io.FileFilter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
/**
* @author Alexey Stashok
*/
public class AllRoundTripTest {
private RoundTripRtt[] roundTripTests = new RoundTripRtt[] {
new SAXRoundTripRtt(), new StAXRoundTripRtt(), new DOMRoundTripRtt(),
new DOMSAXRoundTripRtt(), new SAXStAXDiffRtt()};
public void processAllRttTests(String testSrc, String report) {
File testSrcFile = new File(testSrc);
RoundTripReport reporter = new RoundTripReport();
for (int i=0; i ");
System.out.println("Where - testing file or folder");
System.out.println(" - file for generating report");
System.exit(0);
}
new AllRoundTripTest().processAllRttTests(args[0], args[1]);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy