cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1355381 - /cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
Date Fri, 29 Jun 2012 13:40:19 GMT
Author: sergeyb
Date: Fri Jun 29 13:40:18 2012
New Revision: 1355381

URL: http://svn.apache.org/viewvc?rev=1355381&view=rev
Log:
Reverting the change to BookStore for now

Modified:
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java?rev=1355381&r1=1355380&r2=1355381&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java (original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java Fri
Jun 29 13:40:18 2012
@@ -553,25 +553,7 @@ public class BookStore {
         return found.get(0);
     }
     
-    @GET
-    @Path("/books/{fiql}/chapter/{i}")
-    @Produces("application/xml")
-    public Chapter getInChapterFromSelectedBook(@Context SearchContext searchContext,
-                                           @PathParam("fiql") PathSegment fiqlSegment,
-                                           @PathParam("i") int chapterIndex) throws BookNotFoundFault
{
-        
-        SearchCondition<Book> sc = searchContext.getCondition(Book.class);
-        if (sc == null) {
-            throw new BookNotFoundFault("Search exception");
-        }
-        List<Book> found = sc.findAll(books.values());
-        if (found.size() != 1) {
-            throw new BookNotFoundFault("Single book is expected");
-        }
-        
-        Book book = found.get(0);
-        return book.getChapter(chapterIndex);
-    }
+    
     
     @GET
     @Path("/books/text/xml/{bookId}")



Mime
View raw message