[infinispan-commits] Infinispan SVN: r2298 - trunk/query/src/test/java/org/infinispan/query/helper.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Thu Sep 2 05:28:56 EDT 2010


Author: manik.surtani at jboss.com
Date: 2010-09-02 05:28:56 -0400 (Thu, 02 Sep 2010)
New Revision: 2298

Removed:
   trunk/query/src/test/java/org/infinispan/query/helper/TestQUeryHelperFactory.java
Log:


Deleted: trunk/query/src/test/java/org/infinispan/query/helper/TestQUeryHelperFactory.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/helper/TestQUeryHelperFactory.java	2010-09-02 09:24:21 UTC (rev 2297)
+++ trunk/query/src/test/java/org/infinispan/query/helper/TestQUeryHelperFactory.java	2010-09-02 09:28:56 UTC (rev 2298)
@@ -1,42 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.infinispan.query.helper;
-
-import org.infinispan.Cache;
-import org.infinispan.query.backend.QueryHelper;
-
-import java.util.Properties;
-
-/**
- * Creates a test query helper
- *
- * @author Manik Surtani
- * @since 4.0
- */
-public class TestQueryHelperFactory {
-   public static QueryHelper createTestQueryHelperInstance(Cache<?, ?> cache, Class... classes) {
-      if (cache == null) throw new NullPointerException("Cache should not be null!");
-      Properties p = new Properties();
-      p.setProperty("hibernate.search.default.directory_provider", "org.hibernate.search.store.RAMDirectoryProvider");
-      return new QueryHelper(cache, p, classes);
-   }
-}



More information about the infinispan-commits mailing list