[jboss-cvs] JBoss Messaging SVN: r5245 - trunk/tests/src/org/jboss/messaging/tests/unit/core/filter/impl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 3 09:22:52 EST 2008
Author: jmesnil
Date: 2008-11-03 09:22:52 -0500 (Mon, 03 Nov 2008)
New Revision: 5245
Modified:
trunk/tests/src/org/jboss/messaging/tests/unit/core/filter/impl/FilterParserTest.java
Log:
removed snippet test
Modified: trunk/tests/src/org/jboss/messaging/tests/unit/core/filter/impl/FilterParserTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/unit/core/filter/impl/FilterParserTest.java 2008-11-03 13:52:01 UTC (rev 5244)
+++ trunk/tests/src/org/jboss/messaging/tests/unit/core/filter/impl/FilterParserTest.java 2008-11-03 14:22:52 UTC (rev 5245)
@@ -156,7 +156,7 @@
Boolean bool = (Boolean)result.apply();
assertTrue("is false", !bool.booleanValue());
}
-
+
public void testTrueNOTINOperator() throws Exception
{
log.trace("parse(Status IN ('new', 'cleared', 'acknowledged'))");
@@ -168,7 +168,7 @@
Boolean bool = (Boolean)result.apply();
assertTrue(bool.booleanValue());
}
-
+
public void testFalseNOTINOperator() throws Exception
{
log.trace("parse(Status IN ('new', 'cleared', 'acknowledged'))");
@@ -361,29 +361,6 @@
}
}
- /** This testcase does not use the JBossServer so override
- the testServerFound to be a noop
- */
- public void testServerFound()
- {
- }
-
- public void testParserPerf() throws Exception
- {
- SimpleString filter = new SimpleString("Cateogry IN ('category1') AND Rating >= 2");
- SimpleString categoryKey = new SimpleString("Cateogry");
- SimpleString ratingKey = new SimpleString("Rating");
- long start = System.currentTimeMillis();
- for (int i = 0; i < 100000; i++)
- {
- Operator result = (Operator)parser.parse(filter, identifierMap);
- (identifierMap.get(categoryKey)).setValue(new SimpleString("category1"));
- (identifierMap.get(ratingKey)).setValue(new Integer(3));
- Boolean bool = (Boolean)result.apply();
- }
- System.out.println(System.currentTimeMillis() - start + " ms");
- }
-
public static void main(java.lang.String[] args)
{
junit.textui.TestRunner.run(FilterParserTest.class);
More information about the jboss-cvs-commits
mailing list