cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5806] Enabling the test
Date Thu, 19 Jun 2014 11:12:05 GMT
Repository: cxf
Updated Branches:
  refs/heads/master a009f8709 -> e28454a04


[CXF-5806] Enabling the test


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e28454a0
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e28454a0
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e28454a0

Branch: refs/heads/master
Commit: e28454a04c5e71e8cf172a8b0d10bb0efa01a1e9
Parents: a009f87
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Jun 19 12:11:47 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Jun 19 12:11:47 2014 +0100

----------------------------------------------------------------------
 .../jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitorTest.java  | 5 ++---
 .../cxf/jaxrs/ext/search/jpa/JPATypedQueryVisitorFiqlTest.java  | 5 +----
 2 files changed, 3 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/e28454a0/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitorTest.java
----------------------------------------------------------------------
diff --git a/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitorTest.java
b/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitorTest.java
index a53db1b..1230479 100644
--- a/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitorTest.java
+++ b/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitorTest.java
@@ -45,10 +45,9 @@ import org.junit.Before;
 
 public abstract class AbstractJPATypedQueryVisitorTest extends Assert {
 
+    protected EntityManager em;
+    
     private EntityManagerFactory emFactory;
-
-    private EntityManager em;
-
     private Connection connection;
 
     protected abstract SearchConditionParser<Book> getParser();

http://git-wip-us.apache.org/repos/asf/cxf/blob/e28454a0/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/JPATypedQueryVisitorFiqlTest.java
----------------------------------------------------------------------
diff --git a/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/JPATypedQueryVisitorFiqlTest.java
b/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/JPATypedQueryVisitorFiqlTest.java
index a111e1c..f708726 100644
--- a/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/JPATypedQueryVisitorFiqlTest.java
+++ b/rt/rs/extensions/search/src/test/java/org/apache/cxf/jaxrs/ext/search/jpa/JPATypedQueryVisitorFiqlTest.java
@@ -29,7 +29,6 @@ import javax.persistence.Tuple;
 import org.apache.cxf.jaxrs.ext.search.SearchConditionParser;
 import org.apache.cxf.jaxrs.ext.search.fiql.FiqlParser;
 
-import org.junit.Ignore;
 import org.junit.Test;
 
 public class JPATypedQueryVisitorFiqlTest extends AbstractJPATypedQueryVisitorTest {
@@ -57,11 +56,9 @@ public class JPATypedQueryVisitorFiqlTest extends AbstractJPATypedQueryVisitorTe
     
 
     @Test
-    @Ignore
     public void testGetLibraryBook() throws Exception {
         List<Book> books = queryBooks("library.books.bookTitle==num10");
-        assertEquals(1, books.size());
-        assertTrue(10 == books.get(0).getId() && "num10".equals(books.get(0).getBookTitle()));
+        assertEquals(3, books.size());
     }
     
     @Test


Mime
View raw message