Package org.apache.beehive.netui.tools.testrecorder.server

Examples of org.apache.beehive.netui.tools.testrecorder.server.DiffEngine


            throwable = filterData.getSessionException( i );
            results.addDiffResult( "encountered test recorder session exception(" + i + ")( " +
                    Logger.format( throwable, throwable ) + " )" );
        }
        try {
            DiffEngine engine = DiffEngineFactory.getInstance( filterData );

            String resp = filterData.getRespData().getBody();
            String body = null;
            // replace the CDATA in the body. We escape the CDATA so we can nest this.
            int pos = resp.indexOf("<![CDATA[");
            if (pos != -1) {
                body = resp;
                resp = resp.replaceAll("\\Q<![CDATA[\\E","&lt;![CDATA[");
                resp = resp.replaceAll("\\Q]]>","]]&gt;");
                filterData.getRespData().setBody(resp);
            }
            results = engine.diff( recordSessionBean.getRequestData( testCount() ),
                    recordSessionBean.getResponseData( testCount() ),
                    filterData.getReqData(), filterData.getRespData(), results );
            if (body != null) {
                filterData.getRespData().setBody(body);
            }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.tools.testrecorder.server.DiffEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.