activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r522533 - /activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/xpath/XPathTest.java
Date Mon, 26 Mar 2007 14:54:15 GMT
Author: jstrachan
Date: Mon Mar 26 07:54:14 2007
New Revision: 522533

URL: http://svn.apache.org/viewvc?view=rev&rev=522533
Log:
removed cruft

Modified:
    activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/xpath/XPathTest.java

Modified: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/xpath/XPathTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/xpath/XPathTest.java?view=diff&rev=522533&r1=522532&r2=522533
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/xpath/XPathTest.java
(original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/xpath/XPathTest.java
Mon Mar 26 07:54:14 2007
@@ -90,37 +90,10 @@
         return assertExpression(expression, createExchange(xml), expected);
     }
 
-    /*
-        Object value = assertExpression(expression, expected, xml);
-
-        log.debug("Evaluated xpath: " + xpath + " on XML: " + xml + " result: " + value);
-    }
-
-
-    protected Object assertExpression(Expression expression, String expected, String xml)
{
-        Exchange exchange = createExchange(xml);
-        Object value = expression.evaluate(exchange);
-        assertEquals("Expression: " + expression, expected, value);
-        return value;
-    }
-    */
-
     protected void assertPredicate(String xpath, String xml, boolean expected) {
         Predicate predicate = XPathBuilder.xpath(xpath);
         assertPredicate(predicate, createExchange(xml), expected);
-        //boolean value = assertPredicate(predicate, expected, xml);
-
-        //log.debug("Evaluated xpath: " + xpath + " on XML: " + xml + " result: " + value);
-
-    }
-    /*
-    protected boolean assertPredicate(Predicate predicate, boolean expected, String xml)
{
-        Exchange exchange = createExchange(xml);
-        boolean value = predicate.matches(exchange);
-        assertEquals("Predicate: " + predicate, expected, value);
-        return value;
     }
-    */
 
     protected Exchange createExchange(String xml) {
         CamelContext context = new DefaultCamelContext();



Mime
View raw message