@@ -0,0 +1,1774 @@
+package com.readlearncode.dukesbookshop.restserver.infrastructure;%0A%0Aimport com.readlearncode.dukesbookshop.RESTConfig;%0Aimport com.readlearncode.dukesbookshop.restserver.domain.Book;%0Aimport org.jboss.arquillian.container.test.api.Deployment;%0Aimport org.jboss.arquillian.container.test.api.RunAsClient;%0Aimport org.jboss.arquillian.extension.rest.client.ArquillianResteasyResource;%0Aimport org.jboss.arquillian.junit.Arquillian;%0Aimport org.jboss.shrinkwrap.api.ShrinkWrap;%0Aimport org.jboss.shrinkwrap.api.asset.EmptyAsset;%0Aimport org.jboss.shrinkwrap.api.spec.WebArchive;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport javax.ws.rs.client.WebTarget;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * Source code github.com/readlearncode%0A *%0A * @author Alex Theedom www.readlearncode.com%0A * @version 1.0%0A */%0A@RunWith(Arquillian.class)%0Apublic class BookStoreServiceAPITest %7B%0A%0A    @Deployment(testable = false)%0A    public static WebArchive createDeployment() %7B%0A        return ShrinkWrap%0A                .create(WebArchive.class)%0A                .addClass(RESTConfig.class)%0A                .addClass(BookStoreService.class)%0A                .addClass(BookBean.class)%0A                .addClass(BookRepository.class)%0A                .addClass(Book.class)%0A                .addAsWebInfResource(EmptyAsset.INSTANCE, %22beans.xml%22);%0A    %7D%0A%0A    @Test%0A    @RunAsClient%0A    public void authenticateUser(@ArquillianResteasyResource final WebTarget webTarget) %7B%0A        final Response response = webTarget%0A                .path(%22/books%22)%0A                .request(MediaType.APPLICATION_JSON)%0A                .get();%0A        assertEquals(true, response.readEntity(List.class));%0A    %7D%0A%0A%7D%0A

Add Integration Test