diff --git a/.classpath b/.classpath new file mode 100644 index 00000000..3b701605 --- /dev/null +++ b/.classpath @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..fbf9358b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,14 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Explicitly declare text files you want to always be normalized and converted +# to native line endings on checkout. +*.c text +*.h text + +# Declare files that will always have CRLF line endings on checkout. +*.sln text eol=crlf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary diff --git a/.project b/.project new file mode 100644 index 00000000..a8a4c47e --- /dev/null +++ b/.project @@ -0,0 +1,37 @@ + + + Java-BookStore + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope new file mode 100644 index 00000000..81672d47 --- /dev/null +++ b/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..f9fe3459 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/test/java=UTF-8 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..4e4a3ada --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,9 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component new file mode 100644 index 00000000..5f964f10 --- /dev/null +++ b/.settings/org.eclipse.wst.common.component @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 00000000..427e35e9 --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 00000000..3bd5d0a4 --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 00000000..05bd71b6 --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/.settings/org.eclipse.wst.validation.prefs b/.settings/org.eclipse.wst.validation.prefs new file mode 100644 index 00000000..04cad8cb --- /dev/null +++ b/.settings/org.eclipse.wst.validation.prefs @@ -0,0 +1,2 @@ +disabled=06target +eclipse.preferences.version=1 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a6050f24 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM maven + +ENV APP_DIR /src/app/ + +RUN mkdir -p $APP_DIR + +COPY ./pom.xml ${APP_DIR} + +WORKDIR ${APP_DIR} + +RUN ["mvn", "compile"] + +COPY . . + +CMD ["mvn", "-T", "1C", "clean", "package", "tomcat7:run"] diff --git a/bin/.gitattributes b/bin/.gitattributes new file mode 100644 index 00000000..fbf9358b --- /dev/null +++ b/bin/.gitattributes @@ -0,0 +1,14 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Explicitly declare text files you want to always be normalized and converted +# to native line endings on checkout. +*.c text +*.h text + +# Declare files that will always have CRLF line endings on checkout. +*.sln text eol=crlf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary diff --git a/.gitignore b/bin/.gitignore similarity index 100% rename from .gitignore rename to bin/.gitignore diff --git a/bin/Dockerfile b/bin/Dockerfile new file mode 100644 index 00000000..a6050f24 --- /dev/null +++ b/bin/Dockerfile @@ -0,0 +1,15 @@ +FROM maven + +ENV APP_DIR /src/app/ + +RUN mkdir -p $APP_DIR + +COPY ./pom.xml ${APP_DIR} + +WORKDIR ${APP_DIR} + +RUN ["mvn", "compile"] + +COPY . . + +CMD ["mvn", "-T", "1C", "clean", "package", "tomcat7:run"] diff --git a/bin/book_store.db b/bin/book_store.db new file mode 100644 index 00000000..7ff26bcd Binary files /dev/null and b/bin/book_store.db differ diff --git a/bin/pom.xml b/bin/pom.xml new file mode 100644 index 00000000..267f7c5c --- /dev/null +++ b/bin/pom.xml @@ -0,0 +1,135 @@ + + 4.0.0 + com.pluralsight + bookstore + war + 1.0-SNAPSHOT + bookstore Maven Webapp + http://maven.apache.org + + + UTF-8 + UTF-8 + 1.8 + 1.8 + false + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + javax.servlet.jsp + javax.servlet.jsp-api + 2.3.1 + provided + + + + + + javax.servlet + jstl + 1.2 + + + + javax.inject + javax.inject + 1 + + + + + + org.xerial + sqlite-jdbc + 3.21.0.1 + + + + + + junit + junit + 4.12 + test + + + net.sourceforge.htmlunit + htmlunit + 2.15 + test + + + org.mockito + mockito-core + 2.18.0 + + + + org.powermock + powermock-api-mockito2 + 2.0.0-beta.5 + + + org.powermock + powermock-module-junit4 + 2.0.0-beta.5 + + + + + + bookstore + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + 8065 + / + true + + + + + + + + integration + + + + + org.apache.maven.plugins + maven-failsafe-plugin + 2.18.1 + + + + integration-test + verify + + + + + http://localhost:8080 + + + + + + + + + + + diff --git a/bin/projects-cli.json b/bin/projects-cli.json new file mode 100644 index 00000000..80d77fa6 --- /dev/null +++ b/bin/projects-cli.json @@ -0,0 +1 @@ +{ "tagPattern": "_\\w+" } diff --git a/bin/src/main/java/com/pluralsight/Book.class b/bin/src/main/java/com/pluralsight/Book.class new file mode 100644 index 00000000..73f0768a Binary files /dev/null and b/bin/src/main/java/com/pluralsight/Book.class differ diff --git a/bin/src/main/java/com/pluralsight/BookDAO.class b/bin/src/main/java/com/pluralsight/BookDAO.class new file mode 100644 index 00000000..77a3f286 Binary files /dev/null and b/bin/src/main/java/com/pluralsight/BookDAO.class differ diff --git a/bin/src/main/java/com/pluralsight/ControllerServlet.class b/bin/src/main/java/com/pluralsight/ControllerServlet.class new file mode 100644 index 00000000..bcab4276 Binary files /dev/null and b/bin/src/main/java/com/pluralsight/ControllerServlet.class differ diff --git a/bin/src/main/java/com/pluralsight/DBConnection.class b/bin/src/main/java/com/pluralsight/DBConnection.class new file mode 100644 index 00000000..c2ccc20e Binary files /dev/null and b/bin/src/main/java/com/pluralsight/DBConnection.class differ diff --git a/src/main/webapp/ShoppingCart.jsp b/bin/src/main/webapp/BookAdmin.jsp similarity index 61% rename from src/main/webapp/ShoppingCart.jsp rename to bin/src/main/webapp/BookAdmin.jsp index fab13b4b..420c8e95 100644 --- a/src/main/webapp/ShoppingCart.jsp +++ b/bin/src/main/webapp/BookAdmin.jsp @@ -13,8 +13,7 @@
@@ -25,19 +24,18 @@ Title Author Price - In Stock Add Book - - - ${ item.getTitle() } - ${ item.getAuthor() } - - 10 - Edit Delete - - + + + ${ item.getTitle() } + ${ item.getAuthor() } + + Edit + Delete + +
diff --git a/bin/src/main/webapp/BookForm.jsp b/bin/src/main/webapp/BookForm.jsp new file mode 100644 index 00000000..c71ce22d --- /dev/null +++ b/bin/src/main/webapp/BookForm.jsp @@ -0,0 +1,31 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %> + + + + Book Store + + + + + +
+
+

+ New Book Form +

+

+

+

+

+

+

+

+
+
+ + diff --git a/src/main/webapp/BookList.jsp b/bin/src/main/webapp/BookList.jsp similarity index 86% rename from src/main/webapp/BookList.jsp rename to bin/src/main/webapp/BookList.jsp index ad0950cb..ac40509a 100644 --- a/src/main/webapp/BookList.jsp +++ b/bin/src/main/webapp/BookList.jsp @@ -14,7 +14,6 @@
@@ -25,16 +24,15 @@ Title Author Price - - +
+ ${ item.getTitle() } ${ item.getAuthor() } - Add to Cart - +
diff --git a/bin/src/main/webapp/WEB-INF/web.xml b/bin/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 00000000..449850f0 --- /dev/null +++ b/bin/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,18 @@ + + + Archetype Created Web Application + + + ControllerServlet + com.pluralsight.ControllerServlet + + + ControllerServlet + /books/* + + diff --git a/src/main/webapp/css/style.css b/bin/src/main/webapp/css/style.css similarity index 100% rename from src/main/webapp/css/style.css rename to bin/src/main/webapp/css/style.css diff --git a/bin/src/test/java/com/pluralsight/module1/Module1_Task1_IT.class b/bin/src/test/java/com/pluralsight/module1/Module1_Task1_IT.class new file mode 100644 index 00000000..9be8b25a Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module1/Module1_Task1_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module1/Module1_Task2_and_3_IT.class b/bin/src/test/java/com/pluralsight/module1/Module1_Task2_and_3_IT.class new file mode 100644 index 00000000..fe2bd292 Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module1/Module1_Task2_and_3_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module1/Module1_Task4_IT.class b/bin/src/test/java/com/pluralsight/module1/Module1_Task4_IT.class new file mode 100644 index 00000000..c348b996 Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module1/Module1_Task4_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module1/Module1_Task5_IT.class b/bin/src/test/java/com/pluralsight/module1/Module1_Task5_IT.class new file mode 100644 index 00000000..6c976502 Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module1/Module1_Task5_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module1/Module1_Task6_IT.class b/bin/src/test/java/com/pluralsight/module1/Module1_Task6_IT.class new file mode 100644 index 00000000..f7fd7ff7 Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module1/Module1_Task6_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module1/Module1_Task7_and_8_IT.class b/bin/src/test/java/com/pluralsight/module1/Module1_Task7_and_8_IT.class new file mode 100644 index 00000000..39251add Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module1/Module1_Task7_and_8_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module2/Module2_Task11_thru_14_IT.class b/bin/src/test/java/com/pluralsight/module2/Module2_Task11_thru_14_IT.class new file mode 100644 index 00000000..7a24454b Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module2/Module2_Task11_thru_14_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module2/Module2_Task1_and_2_IT.class b/bin/src/test/java/com/pluralsight/module2/Module2_Task1_and_2_IT.class new file mode 100644 index 00000000..35ae4a8f Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module2/Module2_Task1_and_2_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module2/Module2_Task3_thru_6_IT.class b/bin/src/test/java/com/pluralsight/module2/Module2_Task3_thru_6_IT.class new file mode 100644 index 00000000..88e04003 Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module2/Module2_Task3_thru_6_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module2/Module2_Task7_thru10_IT.class b/bin/src/test/java/com/pluralsight/module2/Module2_Task7_thru10_IT.class new file mode 100644 index 00000000..f2184db5 Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module2/Module2_Task7_thru10_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module3/Module3_Task1_thru_5_IT.class b/bin/src/test/java/com/pluralsight/module3/Module3_Task1_thru_5_IT.class new file mode 100644 index 00000000..74c534aa Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module3/Module3_Task1_thru_5_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module3/Module3_Task6_and_7_IT.class b/bin/src/test/java/com/pluralsight/module3/Module3_Task6_and_7_IT.class new file mode 100644 index 00000000..1986d1c9 Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module3/Module3_Task6_and_7_IT.class differ diff --git a/bin/src/test/java/com/pluralsight/module3/Module3_Task8_thru_11_IT.class b/bin/src/test/java/com/pluralsight/module3/Module3_Task8_thru_11_IT.class new file mode 100644 index 00000000..fe59fbc3 Binary files /dev/null and b/bin/src/test/java/com/pluralsight/module3/Module3_Task8_thru_11_IT.class differ diff --git a/book_store.db b/book_store.db index 4a86d6e6..48d8a1c7 100644 Binary files a/book_store.db and b/book_store.db differ diff --git a/pom.xml b/pom.xml index 1a90b05e..267f7c5c 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,15 @@ 3.1.0 provided + + + javax.servlet.jsp + javax.servlet.jsp-api + 2.3.1 + provided + + + javax.servlet @@ -85,8 +94,9 @@ tomcat7-maven-plugin 2.2 - 8080 + 8065 / + true diff --git a/src/main/java/com/pluralsight/Book.java b/src/main/java/com/pluralsight/Book.java deleted file mode 100644 index 8896d317..00000000 --- a/src/main/java/com/pluralsight/Book.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.pluralsight; - -public class Book { - int id; - String title; - String author; - float price; - - public Book(String title, String author, float price) { - this.title = title; - this.author = author; - this.price = price; - } - - public Book(int id, String title, String author, float price) { - this.id = id; - this.title = title; - this.author = author; - this.price = price; - } - - @Override - public String toString() { - return "(" + title + ", " + author + ", " + price + ")"; - } - - public int getId() { - return id; - } - public void setId(int id) { - this.id = id; - } - public String getTitle() { - return title; - } - public void setTitle(String title) { - this.title = title; - } - public String getAuthor() { - return author; - } - public void setAuthor(String author) { - this.author = author; - } - public float getPrice() { - return price; - } - public void setPrice(float price) { - this.price = price; - } -} diff --git a/src/main/java/com/pluralsight/BookDAO.java b/src/main/java/com/pluralsight/BookDAO.java index 262e495e..a40cae10 100644 --- a/src/main/java/com/pluralsight/BookDAO.java +++ b/src/main/java/com/pluralsight/BookDAO.java @@ -1,13 +1,10 @@ package com.pluralsight; import java.sql.Connection; -import java.sql.DatabaseMetaData; -import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; - import java.util.ArrayList; public class BookDAO { @@ -90,36 +87,39 @@ public boolean insertBook(Book book) { return false; } + + public void deleteBook(int id){ + + String sql = "Delete from book where id = ?"; + + try { + PreparedStatement statement = jdbcConnection.prepareStatement(sql); + statement.setInt(1, id); + statement.executeUpdate(); + statement.close(); + } catch (SQLException e) { + e.printStackTrace(); + } + + } + + public void updateBook(Book book) { + + String sql = "UPDATE book SET title = ?, author = ?, price = ? WHERE id = ?"; - // public void deleteBook(int id) { - // String sql = "DELETE FROM book WHERE id = ?"; - // - // try { - // PreparedStatement statement = jdbcConnection.prepareStatement(sql); - // statement.setInt(1, id); - // statement.executeUpdate(); - // - // statement.close(); - // } catch (SQLException e) { - // e.printStackTrace(); - // } - // } - // - // public void updateBook(Book book) { - // String sql = "UPDATE book SET title = ?, author = ?, price = ?" + - // " WHERE id = ?"; - // - // try { - // PreparedStatement statement = jdbcConnection.prepareStatement(sql); - // statement.setString(1, book.getTitle()); - // statement.setString(2, book.getAuthor()); - // statement.setFloat(3, book.getPrice()); - // statement.setInt(4, book.getId()); - // - // statement.executeUpdate(); - // statement.close(); - // } catch(SQLException e) { - // e.printStackTrace(); - // } - // } + try { + PreparedStatement statement = jdbcConnection.prepareStatement(sql); + statement.setString(1, book.getTitle()); + statement.setString(2, book.getAuthor()); + statement.setFloat(3, book.getPrice()); + statement.setInt(4, book.getId()); + statement.executeUpdate(); + statement.close(); + } catch (SQLException e) { + e.printStackTrace(); + } + + } + + } diff --git a/src/main/java/com/pluralsight/ControllerServlet.java b/src/main/java/com/pluralsight/ControllerServlet.java index 08ac0cf3..aed55cc6 100644 --- a/src/main/java/com/pluralsight/ControllerServlet.java +++ b/src/main/java/com/pluralsight/ControllerServlet.java @@ -4,73 +4,70 @@ import java.io.PrintWriter; import java.sql.SQLException; import java.util.ArrayList; -import java.sql.Connection; -import java.sql.DatabaseMetaData; -import java.sql.DriverManager; +import javax.inject.Inject; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import javax.inject.Inject; /** * Servlet implementation class HelloWorld */ public class ControllerServlet extends HttpServlet { - private static final long serialVersionUID = 1L; - private DBConnection dbConnection; - - @Inject - private BookDAO bookDAO; - /** - * @see HttpServlet#HttpServlet() - */ - - public void init() { - dbConnection = new DBConnection(); - bookDAO = new BookDAO(dbConnection.getConnection()); - } - - public void destroy() { - dbConnection.disconnect(); - } + private static final long serialVersionUID = 1L; + private DBConnection dbConnection; + + @Inject + private BookDAO bookDAO; + /** + * @see HttpServlet#HttpServlet() + */ - public ControllerServlet() { - super(); - } + public void init() { + dbConnection = new DBConnection(); + bookDAO = new BookDAO(dbConnection.getConnection()); + } + + public void destroy() { + dbConnection.disconnect(); + } + + public ControllerServlet() { + super(); + } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ - protected void doGet(HttpServletRequest request, HttpServletResponse response) + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String action = request.getPathInfo(); try { switch(action) { - case "/admin": - showBookAdmin(request, response); - break; - case "/new": - showNewForm(request, response); - break; - case "/insert": - insertBook(request, response); - break; - // case "/edit": - // showEditForm(request, response); - // break; - // case "/delete": - // deleteBook(request, response); - // break; - // case "/update": - // updateBook(request, response); - // break; - default: - listBooks(request, response); - break; + case "/admin": + showBookAdmin(request, response); + break; + case "/new": + showNewForm(request, response); + break; + case "/insert": + insertBook(request, response); + break; + case "/delete": + deleteBook(request,response); + break; + case "/edit": + showEditForm(request,response); + break; + case "/update": + updateBook(request,response); + break; + default: + listBooks(request, response); + break; } } catch (Exception e) { // TODO Auto-generated catch block @@ -78,6 +75,41 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) } } + private void deleteBook(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + int id = Integer.parseInt(request.getParameter("id")); + bookDAO.deleteBook(id); + + response.sendRedirect("list"); + + } + + private void showEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + int id = Integer.parseInt(request.getParameter("id")); + Book existingBook = bookDAO.getBook(id); + RequestDispatcher dispatcher = request.getRequestDispatcher("/BookForm.jsp"); + request.setAttribute("book", existingBook); + dispatcher.forward(request, response); + + } + + + private void updateBook(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + int id = Integer.parseInt(request.getParameter("id")); + String booktitle = request.getParameter("booktitle"); + String bookauthor = request.getParameter("bookauthor"); + String bookprice = request.getParameter("bookprice"); + + Book book = new Book(id, booktitle, bookauthor, Float.parseFloat(bookprice)); + + bookDAO.updateBook(book); + + response.sendRedirect("list"); + + } + private void showBookAdmin(HttpServletRequest request, HttpServletResponse response) throws ClassNotFoundException, SQLException, ServletException, IOException { ArrayList books_list = bookDAO.listAllBooks(); @@ -102,22 +134,6 @@ private void showNewForm(HttpServletRequest request, HttpServletResponse respons dispatcher.forward(request, response); } - // private void showEditForm(HttpServletRequest request, HttpServletResponse response) - // throws ServletException, IOException { - // int id = Integer.parseInt(request.getParameter("id")); - // Book existingBook = bookDAO.getBook(id); - // RequestDispatcher dispatcher = request.getRequestDispatcher("/BookForm.jsp"); - // request.setAttribute("book", existingBook); - // dispatcher.forward(request, response); - // } - - // private void deleteBook(HttpServletRequest request, HttpServletResponse response) - // throws ServletException, IOException { - // int id = Integer.parseInt(request.getParameter("id")); - // bookDAO.deleteBook(id); - // response.sendRedirect("list"); - // } - private void insertBook(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ClassNotFoundException, SQLException { String title = request.getParameter("booktitle"); @@ -130,20 +146,6 @@ private void insertBook(HttpServletRequest request, HttpServletResponse response response.sendRedirect("list"); } - // private void updateBook(HttpServletRequest request, HttpServletResponse response) - // throws ServletException, IOException, ClassNotFoundException, SQLException { - // String idStr = request.getParameter("id"); - // int id = Integer.parseInt(idStr); - // String title = request.getParameter("booktitle"); - // String author = request.getParameter("bookauthor"); - // String priceString = request.getParameter("bookprice"); - // - // Book newBook = new Book(id, title, author, Float.parseFloat(priceString)); - // - // bookDAO.updateBook(newBook); - // response.sendRedirect("list"); - // } - /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ diff --git a/src/main/java/com/pluralsight/DBConnection.java b/src/main/java/com/pluralsight/DBConnection.java deleted file mode 100644 index 53cebd2c..00000000 --- a/src/main/java/com/pluralsight/DBConnection.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.pluralsight; - -import java.sql.Connection; -import java.sql.DatabaseMetaData; -import java.sql.DriverManager; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; - -public class DBConnection { - private Connection jdbcConnection; - - public DBConnection() { - connect(); - } - - public Connection getConnection() { - return jdbcConnection; - } - - public void connect() { - try { - Class.forName("org.sqlite.JDBC"); - jdbcConnection = DriverManager.getConnection("jdbc:sqlite:book_store.db"); - System.out.println("Opened database successfully"); - - createTableIfNotExists(); - } catch ( Exception e ) { - System.err.println( e.getClass().getName() + ": " + e.getMessage() ); - System.exit(0); - } - } - - private void createTableIfNotExists() { - try { - DatabaseMetaData meta = jdbcConnection.getMetaData(); - ResultSet res = meta.getTables(null, null, null, new String[] {"TABLE"}); - Statement stmt = jdbcConnection.createStatement(); - if (!res.next()) { - // Create table - - String sql = "CREATE TABLE book " + - "(id INTEGER PRIMARY KEY NOT NULL," + - " title TEXT NOT NULL, " + - " author TEXT NOT NULL, " + - " price REAL)"; - stmt.executeUpdate(sql); - - sql = "INSERT INTO book (title, author, price) VALUES (\"1984\", \"George Orwell\", 1.00)"; - stmt.executeUpdate(sql); - - stmt.close(); - } - } catch ( Exception e ) { - System.err.println( e.getClass().getName() + ": " + e.getMessage() ); - System.exit(0); - } - } - - - public void disconnect() { - try { - if (jdbcConnection != null && !jdbcConnection.isClosed()) { - jdbcConnection.close(); - } - } catch (SQLException e) { - e.printStackTrace(); - } - } -} diff --git a/src/main/java/com/pluralsight/LoginServlet.java b/src/main/java/com/pluralsight/LoginServlet.java deleted file mode 100644 index ec7ca71d..00000000 --- a/src/main/java/com/pluralsight/LoginServlet.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.pluralsight; - -import java.io.IOException; -import java.io.PrintWriter; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * Servlet implementation class LoginServlet - */ -public class LoginServlet extends HttpServlet { - private static final long serialVersionUID = 1L; - - /** - * @see HttpServlet#HttpServlet() - */ - public LoginServlet() { - super(); - // TODO Auto-generated constructor stub - } - - /** - * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) - */ - protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - // TODO Auto-generated method stub - response.getWriter().append("Served at: ").append(request.getContextPath()); - } - - /** - * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) - */ - protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - // Get parameters - String username = request.getParameter("username"); - String password = request.getParameter("password"); - - PrintWriter writer = response.getWriter(); - writer.println("username = " + username + ", password = " + password); - } - -} diff --git a/src/main/java/com/pluralsight/NameHandler.java b/src/main/java/com/pluralsight/NameHandler.java deleted file mode 100644 index b0f08951..00000000 --- a/src/main/java/com/pluralsight/NameHandler.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.pluralsight; - -public class NameHandler { - - private String name; - - /** Creates a new instance of NameHandler */ - public NameHandler() { - name = null; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - -} diff --git a/src/main/webapp/BookAdmin.jsp b/src/main/webapp/BookAdmin.jsp index 9e9c25da..cbb67588 100644 --- a/src/main/webapp/BookAdmin.jsp +++ b/src/main/webapp/BookAdmin.jsp @@ -14,7 +14,6 @@
@@ -25,7 +24,6 @@ Title Author Price - In Stock Add Book @@ -34,11 +32,8 @@ ${ item.getTitle() } ${ item.getAuthor() } - 10 - Edit - Delete - <%-- Edit - Delete --%> + Edit + Delete diff --git a/src/main/webapp/BookForm.jsp b/src/main/webapp/BookForm.jsp index 353c2a51..fe6f717f 100644 --- a/src/main/webapp/BookForm.jsp +++ b/src/main/webapp/BookForm.jsp @@ -1,49 +1,54 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %> + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> - Book Store - +Book Store + -
    -
  • Book Listing
  • -
  • Admin
  • -
  • Cart
  • + -
    +
    + +
    + + + + - <%-- - - - --%> - - <%-- --%> -

    - <%-- - Edit Book Form - - --%> - New Book Form - <%-- --%> -

    - <%-- - - --%> -

    -

    - <%--

    --%> -

    -

    - <%--

    --%> -

    -

    - <%--

    --%> -

    -
    +

    + + Edit Book Form + + + New Book Form + +

    + +

    + + + + + + +

    +

    + +

    +

    + +

    +

    + +

    +
    diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index dc5c5392..00000000 --- a/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - Archetype Created Web Application - - - LoginServlet - LoginServlet - - com.pluralsight.LoginServlet - - - LoginServlet - /LoginServlet - - - - ControllerServlet - com.pluralsight.ControllerServlet - - - - ControllerServlet - /books/* - - diff --git a/src/test/java/com/pluralsight/module1/Module1_Task1_IT.java b/src/test/java/com/pluralsight/module1/Module1_Task1_IT.java deleted file mode 100644 index 2be2c318..00000000 --- a/src/test/java/com/pluralsight/module1/Module1_Task1_IT.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.pluralsight; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import com.gargoylesoftware.htmlunit.ElementNotFoundException; -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.WebResponse; -import com.gargoylesoftware.htmlunit.html.HtmlAnchor; -import com.gargoylesoftware.htmlunit.html.HtmlPage; - -import static org.junit.Assert.*; - -import java.io.IOException; - -public class Module1_Task1_IT { - - private String indexUrl; - private WebClient webClient; - HtmlPage page; - - @Before - public void setUp() throws IOException { - indexUrl = "http://localhost:8080"; //System.getProperty("integration.base.url"); - webClient = new WebClient(); - // Open the admin page - page = webClient.getPage(indexUrl + "/books/admin"); - } - @After - public void tearDown() { - webClient.closeAllWindows(); - } - - // Verify the edit and delete hrefs, in BookAdmin.jsp contain the id - @Test - public void module1_task1() { - url_contains_id("Delete"); - url_contains_id("Edit"); - } - - public void url_contains_id(String textStr) { - // First check if an anchor with text "Edit" exists - HtmlAnchor anchor = null; - try { - anchor = page.getAnchorByText(textStr); - } - catch ( ElementNotFoundException e) {} - - assertNotNull("An anchor with the text " + textStr + " does not exist.", anchor); - - boolean found = findURLWithID(textStr.toLowerCase()); - assertTrue("The " + textStr + " anchor's href does not contain the id.", found); - } - - private boolean findURLWithID(String urlStr) { - String foundURL = ""; - try { - for ( HtmlAnchor a : page.getAnchors()) { - String href = a.getHrefAttribute(); - if (href.contains(urlStr)) { - foundURL = a.getHrefAttribute().toString(); - break; - } - } - } - catch ( ElementNotFoundException e) { - return false; - } - foundURL = foundURL.replaceAll("\\s+",""); - // Might have different id's in the database so remove them. - foundURL = foundURL.replaceAll("[0-9]",""); - String testingURL = urlStr+"?id="; - return foundURL.equals(testingURL); - } -} diff --git a/src/test/java/com/pluralsight/module1/Module1_Task2_IT.java b/src/test/java/com/pluralsight/module1/Module1_Task2_IT.java deleted file mode 100644 index 67f38d61..00000000 --- a/src/test/java/com/pluralsight/module1/Module1_Task2_IT.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; - -import org.powermock.reflect.Whitebox; -import java.lang.reflect.Method; - -import java.io.*; - -public class Module1_Task2_IT { - - private ControllerServlet controllerServlet; - - // @Before - // public void setUp() throws Exception { - // controllerServlet = new ControllerServlet(); - // } - - // Verify the deleteBook() method exists in ControllerServlet - @Test - public void module1_task2() throws Exception { - Method method = null; - try { - method = Whitebox.getMethod(ControllerServlet.class, - "deleteBook", HttpServletRequest.class, HttpServletResponse.class); - } catch (Exception e) {} - - String errorMsg = "private void deleteBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, method); - } -} diff --git a/src/test/java/com/pluralsight/module1/Module1_Task3_IT.java b/src/test/java/com/pluralsight/module1/Module1_Task3_IT.java deleted file mode 100644 index fd1217b1..00000000 --- a/src/test/java/com/pluralsight/module1/Module1_Task3_IT.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; - -import org.junit.runner.RunWith; -import org.powermock.api.mockito.PowerMockito; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; -import org.powermock.reflect.exceptions.*; - -import java.io.*; - -@RunWith(PowerMockRunner.class) -@PrepareForTest(ControllerServlet.class) -public class Module1_Task3_IT extends Mockito{ - static String tempID = "0"; - - // Verify the deleteBook() method exists in ControllerServlet - // Since it's private need to verify the lines of code get called - // through the /delete action in doGet() - @Test - public void module1_task3() throws Exception { - ControllerServlet controllerServlet = PowerMockito.spy(new ControllerServlet()); - boolean called_deleteBook = false; - HttpServletRequest request = mock(HttpServletRequest.class); - HttpServletResponse response = mock(HttpServletResponse.class); - - try { - when(request.getPathInfo()).thenReturn("/delete"); - //PowerMockito.doNothing().when(controllerServlet, "deleteBook", request, response); - when(request.getParameter("id")).thenReturn(tempID); - } catch (MethodNotFoundException e) {} - - // try { - // controllerServlet.doGet(request, response); - // try { - // PowerMockito.verifyPrivate(controllerServlet) - // .invoke("deleteBook", request, response); - // called_deleteBook = true; - // } catch (Throwable e) {} - // } catch (Exception e) {} - - String errorMsg = "After action \"" + "/delete" + - "\", did not call deleteBook()."; - assertTrue(errorMsg, called_deleteBook); - } -} diff --git a/src/test/java/com/pluralsight/module1/Module1_Task4_IT.java b/src/test/java/com/pluralsight/module1/Module1_Task4_IT.java deleted file mode 100644 index e07fb726..00000000 --- a/src/test/java/com/pluralsight/module1/Module1_Task4_IT.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import org.junit.Test; - -import java.lang.reflect.Method; -import java.io.*; - -public class Module1_Task4_IT { - - // Verify the deleteBook() method exists in BookDAO - @Test - public void module1_task4() throws Exception { - Method method = null; - - try { - method = BookDAO.class.getMethod("deleteBook", int.class); - } catch (NoSuchMethodException e) { - //e.printStackTrace(); - } - - String message = "The method deleteBook() doesn't exist in BookDAO.java."; - assertNotNull(message, method); - } -} diff --git a/src/test/java/com/pluralsight/module1/Module1_Task5_IT.java b/src/test/java/com/pluralsight/module1/Module1_Task5_IT.java deleted file mode 100644 index 24d973ad..00000000 --- a/src/test/java/com/pluralsight/module1/Module1_Task5_IT.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Test; -import org.mockito.Mockito; -import org.junit.runner.RunWith; -import org.powermock.api.mockito.PowerMockito; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; - -import java.lang.reflect.Method; - -import java.io.*; - - -@RunWith(PowerMockRunner.class) -@PrepareForTest({DriverManager.class, PreparedStatement.class, BookDAO.class}) -public class Module1_Task5_IT { - - // Verify the deleteBook() method exists in BookDAO - @Test - public void module1_task5() throws Exception { - Method method = null; - String sql = "DELETE FROM book WHERE id = ?"; - Connection mockConnection = Mockito.mock(Connection.class); - PreparedStatement mockStatement = Mockito.mock(PreparedStatement.class); - BookDAO bookDAO = new BookDAO(mockConnection); - BookDAO spyBookDAO = Mockito.spy(bookDAO); - boolean called_prepareStatement = false; - - - Mockito.when(mockConnection.prepareStatement(sql)).thenReturn(mockStatement); - - try { - method = BookDAO.class.getMethod("deleteBook", int.class); - } catch (NoSuchMethodException e) { - //e.printStackTrace(); - } - - String message = "The method deleteBook() doesn't exist in BookDAO.java."; - assertNotNull(message, method); - - try { - method.invoke(spyBookDAO, 0); - } catch (Exception e) {} - - try { - Mockito.verify(mockConnection,Mockito.atLeast(1)).prepareStatement(sql); - called_prepareStatement = true; - } catch (Throwable e) {} - - message = "The method deleteBook() doesn't call prepareStatement() correctly."; - assertTrue(message, called_prepareStatement); - } -} diff --git a/src/test/java/com/pluralsight/module1/Module1_Task6_IT.java b/src/test/java/com/pluralsight/module1/Module1_Task6_IT.java deleted file mode 100644 index 488c858d..00000000 --- a/src/test/java/com/pluralsight/module1/Module1_Task6_IT.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Test; -import org.mockito.Mockito; -import org.junit.runner.RunWith; -import org.powermock.api.mockito.PowerMockito; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; - -import java.lang.reflect.Method; - -import java.io.*; - - -@RunWith(PowerMockRunner.class) -@PrepareForTest({DriverManager.class, PreparedStatement.class, BookDAO.class}) -public class Module1_Task6_IT { - - // Verify the deleteBook() method exists in BookDAO - @Test - public void module1_task6() throws Exception { - Method method = null; - String sql = "DELETE FROM book WHERE id = ?"; - Connection spyConnection = Mockito.mock(Connection.class); - PreparedStatement mockStatement = Mockito.mock(PreparedStatement.class); - BookDAO bookDAO = new BookDAO(spyConnection); - BookDAO spyBookDAO = Mockito.spy(bookDAO); - boolean called_setInt = false; - boolean called_execute = false; - boolean called_prepareStatement = false; - boolean called_close = false; - - Mockito.when(spyConnection.prepareStatement(sql)).thenReturn(mockStatement); - - try { - method = BookDAO.class.getMethod("deleteBook", int.class); - } catch (NoSuchMethodException e) { - //e.printStackTrace(); - } - - String message = "The method deleteBook() doesn't exist in BookDAO.java."; - assertNotNull(message, method); - - try { - method.invoke(spyBookDAO, 0); - } catch (Exception e) {} - - try { - Mockito.verify(mockStatement, Mockito.atLeast(1)).setInt(Mockito.anyInt(), Mockito.anyInt()); - called_setInt = true; - Mockito.verify(mockStatement, Mockito.atLeast(1)).executeUpdate(); - called_execute = true; - Mockito.verify(mockStatement, Mockito.atLeast(1)).close(); - called_close = true; - } catch (Throwable e) {} - - message = "The method deleteBook() doesn't call setInt()."; - assertTrue(message, called_setInt); - - message = "The method deleteBook() doesn't call executeUpdate()."; - assertTrue(message, called_execute); - - message = "The method deleteBook() doesn't call PreparedStatement close()."; - assertTrue(message, called_close); - } -} diff --git a/src/test/java/com/pluralsight/module1/Module1_Task7_and_8_IT.java b/src/test/java/com/pluralsight/module1/Module1_Task7_and_8_IT.java deleted file mode 100644 index 56c83fa4..00000000 --- a/src/test/java/com/pluralsight/module1/Module1_Task7_and_8_IT.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import java.util.List; -import java.util.ArrayList; -import java.util.Collection; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; -import org.mockito.MockingDetails; -import org.mockito.invocation.Invocation; -import org.powermock.reflect.Whitebox; - -import java.lang.reflect.Method; -import java.io.*; - -public class Module1_Task7_and_8_IT extends Mockito{ - - static StringWriter stringWriter = new StringWriter(); - static String tempID = "0"; - static boolean called_getParameter = false; - static boolean called_sendRedirect = false; - static boolean called_deleteBook = false; - static HttpServletRequest request = mock(HttpServletRequest.class); - static HttpServletResponse response = mock(HttpServletResponse.class); - static Method deleteMethod = null; - @Mock - private BookDAO mockBookDAO; - - @InjectMocks - private ControllerServlet controllerServlet; - - @Before - public void setUp() throws Exception { - MockitoAnnotations.initMocks(this); - - request = mock(HttpServletRequest.class); - response = mock(HttpServletResponse.class); - - when(request.getPathInfo()).thenReturn("/delete"); - when(request.getParameter("id")).thenReturn(tempID); - - try { - deleteMethod = Whitebox.getMethod(ControllerServlet.class, - "deleteBook", HttpServletRequest.class, HttpServletResponse.class); - } catch (Exception e) {} - - String errorMsg = "private void deleteBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, deleteMethod); - - try { - controllerServlet.doGet(request, response); - } catch (Exception e) {} - } - - // Verify deleteBook() in ControllerServlet is complete - @Test - public void module1_task7() throws Exception { - String errorMsg = "private void deleteBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, deleteMethod); - - MockingDetails mockingDetails = Mockito.mockingDetails(mockBookDAO); - - Collection invocations = mockingDetails.getInvocations(); - - List methodsCalled = new ArrayList<>(); - for (Invocation anInvocation : invocations) { - methodsCalled.add(anInvocation.getMethod().getName()); - } - assertTrue(methodsCalled.contains("deleteBook")); - - try { - verify(request, atLeast(1)).getParameter("id"); - called_getParameter = true; - } catch (Throwable e) {} - - errorMsg = "In ControllerServlet deleteBook()," + - " did not call getParameter(\"id\")."; - assertTrue(errorMsg, called_getParameter); - } - - @Test - public void module1_task8() throws Exception { - String errorMsg = "private void deleteBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, deleteMethod); - try { - verify(response, atLeast(1)).sendRedirect("list"); - called_sendRedirect = true; - } catch (Throwable e) {} - - errorMsg = "In ControllerServlet deleteBook()," + - " did not call sendRedirect(\"list\")."; - assertTrue(errorMsg, called_sendRedirect); - } -} diff --git a/src/test/java/com/pluralsight/module2/Module2_Task11_thru_14_IT.java b/src/test/java/com/pluralsight/module2/Module2_Task11_thru_14_IT.java deleted file mode 100644 index 8d3c3206..00000000 --- a/src/test/java/com/pluralsight/module2/Module2_Task11_thru_14_IT.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.pluralsight; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import com.gargoylesoftware.htmlunit.ElementNotFoundException; -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.WebResponse; -import com.gargoylesoftware.htmlunit.html.DomElement; -import com.gargoylesoftware.htmlunit.html.DomNodeList; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlAnchor; -import com.gargoylesoftware.htmlunit.html.HtmlForm; -import com.gargoylesoftware.htmlunit.html.HtmlInput; - -import static org.junit.Assert.*; - -import java.io.IOException; - -public class Module2_Task11_thru_14_IT { - private String BOOK_FORM_NAME = "book_form"; - private String indexUrl; - private WebClient webClient; - HtmlPage firstPage = null; - HtmlPage nextPage = null; - HtmlForm form = null; - - @Before - public void setUp() throws IOException { - indexUrl = "http://localhost:8080"; //System.getProperty("integration.base.url"); - webClient = new WebClient(); - // Open the admin page - firstPage = webClient.getPage(indexUrl + "/books/admin"); - clickLink("Edit"); - assertNotNull("Link Edit did not work.", nextPage); - // Get form - try { - form = nextPage.getFormByName(BOOK_FORM_NAME); - } catch (ElementNotFoundException e) {} - } - @After - public void tearDown() { - webClient.closeAllWindows(); - } - - // Verify they adapted the BookForm.jsp page for editing existing books - // and adding new book - // In this test check the form input fields have values filled in - @Test - public void module2_task11() { - assertNotNull("Link Edit did not work.", nextPage); - assertNotNull("Form is null.", form); - //Get id input field - try { - HtmlInput inputId = form.getInputByName("id"); - - // Check if hidden - String typeAttribute = inputId.getTypeAttribute(); - assertEquals("The id input needs type=\"hidden\".", "hidden", typeAttribute); - - // Check value is an int - try { - Integer.parseInt(inputId.getValueAttribute()); - } catch (NumberFormatException e) { - assertTrue("The id input does not have an int for value.", false); - } - } catch (ElementNotFoundException e) { - assertTrue("The input field with name \"id\" does not exist.", false); - } - } - - @Test - public void module2_task12() { - assertNotNull("Link Edit did not work.", nextPage); - assertNotNull("Form is null.", form); - // Get title input field, check value - try { - HtmlInput inputTitle = form.getInputByName("booktitle"); - String titleValue = inputTitle.getValueAttribute(); - assertTrue("Title field value is empty, value is \"" + titleValue + "\".", - titleValue.length() > 0); - }catch (ElementNotFoundException e) { - assertTrue("The input field with name \"booktitle\" does not exist.", false); - } - } - - @Test - public void module2_task13() { - assertNotNull("Link Edit did not work.", nextPage); - assertNotNull("Form is null.", form); - - // Get author input field, check value - try { - HtmlInput inputAuthor = form.getInputByName("bookauthor"); - String authorValue = inputAuthor.getValueAttribute(); - assertTrue("Author field value is empty, value is \"" + authorValue + "\".", - authorValue.length() > 0); - }catch (ElementNotFoundException e) { - assertTrue("The input field with name \"bookauthor\" does not exist.", false); - } - } - - @Test - public void module2_task14() { - assertNotNull("Link Edit did not work.", nextPage); - assertNotNull("Form is null.", form); - - // Get price input field, check value - try { - HtmlInput inputPrice = form.getInputByName("bookprice"); - String priceValue = inputPrice.getValueAttribute(); - assertTrue("Price field value is empty, value is \"" + priceValue + "\".", - priceValue.length() > 0); - }catch (ElementNotFoundException e) { - assertTrue("The input field with name \"bookprice\" does not exist.", false); - } - } - - private void clickLink(String urlStr) { - String foundURL = ""; - String desiredUrlText = urlStr.toLowerCase(); - try { - for ( HtmlAnchor a : firstPage.getAnchors()) { - String href = a.getHrefAttribute(); - if (href.contains(desiredUrlText)) { - nextPage = a.click(); - break; - } - } - } - catch ( Exception e) {} - } -} diff --git a/src/test/java/com/pluralsight/module2/Module2_Task1_IT.java b/src/test/java/com/pluralsight/module2/Module2_Task1_IT.java deleted file mode 100644 index f1c16909..00000000 --- a/src/test/java/com/pluralsight/module2/Module2_Task1_IT.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; - -import org.powermock.reflect.Whitebox; -import java.lang.reflect.Method; - -import java.io.*; - -public class Module2_Task1_IT { - - private ControllerServlet controllerServlet; - - // @Before - // public void setUp() throws Exception { - // controllerServlet = new ControllerServlet(); - // } - - // Verify the showEditForm() method exists in ControllerServlet - @Test - public void module2_task1() throws Exception { - Method method = null; - try { - method = Whitebox.getMethod(ControllerServlet.class, - "showEditForm", HttpServletRequest.class, HttpServletResponse.class); - } catch (Exception e) {} - - String errorMsg = "private void showEditForm() does not exist in ControllerServlet"; - assertNotNull(errorMsg, method); - } -} diff --git a/src/test/java/com/pluralsight/module2/Module2_Task2_IT.java b/src/test/java/com/pluralsight/module2/Module2_Task2_IT.java deleted file mode 100644 index 64edcbe8..00000000 --- a/src/test/java/com/pluralsight/module2/Module2_Task2_IT.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; - -import org.junit.runner.RunWith; -import org.powermock.api.mockito.PowerMockito; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; -import org.powermock.reflect.exceptions.*; - -import java.io.*; - -@RunWith(PowerMockRunner.class) -@PrepareForTest(ControllerServlet.class) -public class Module2_Task2_IT extends Mockito{ - static String tempID = "0"; - - // Verify the showEditForm() method exists in ControllerServlet - // Since it's private need to verify the lines of code get called - // through the /delete action in doGet() - @Test - public void module1_task2() throws Exception { - ControllerServlet controllerServlet = PowerMockito.spy(new ControllerServlet()); - boolean called_showEditForm = false; - HttpServletRequest request = mock(HttpServletRequest.class); - HttpServletResponse response = mock(HttpServletResponse.class); - - try { - when(request.getPathInfo()).thenReturn("/edit"); - //PowerMockito.doNothing().when(controllerServlet, "showEditForm", request, response); - when(request.getParameter("id")).thenReturn(tempID); - } catch (MethodNotFoundException e) {} - - // try { - // controllerServlet.doGet(request, response); - // try { - // PowerMockito.verifyPrivate(controllerServlet) - // .invoke("showEditForm", request, response); - // called_showEditForm = true; - // } catch (Throwable e) {} - // } catch (Exception e) {} - - String errorMsg = "After action \"" + "/edit" + - "\", did not call showEditForm()."; - assertTrue(errorMsg, called_showEditForm); - } -} diff --git a/src/test/java/com/pluralsight/module2/Module2_Task3_thru_6_IT.java b/src/test/java/com/pluralsight/module2/Module2_Task3_thru_6_IT.java deleted file mode 100644 index 15668334..00000000 --- a/src/test/java/com/pluralsight/module2/Module2_Task3_thru_6_IT.java +++ /dev/null @@ -1,127 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.RequestDispatcher; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; - -import java.lang.reflect.Method; -import java.io.*; - -public class Module2_Task3_thru_6_IT extends Mockito{ - - static StringWriter stringWriter = new StringWriter(); - static String tempID = "1"; - static int tempIntID = 1; - static HttpServletRequest request; - static HttpServletResponse response; - static RequestDispatcher mockRequestDispatcher; - static Book mockBook; - - @Mock - private BookDAO mockBookDAO; - - @InjectMocks - private ControllerServlet controllerServlet; - - @Before - public void setUp() throws Exception { - MockitoAnnotations.initMocks(this); - - request = mock(HttpServletRequest.class); - response = mock(HttpServletResponse.class); - mockRequestDispatcher = mock(RequestDispatcher.class); - mockBook = mock(Book.class); - - when(request.getPathInfo()).thenReturn("/edit"); - when(request.getParameter("id")).thenReturn(tempID); - when(mockBookDAO.getBook(tempIntID)).thenReturn(mockBook); - when(request.getRequestDispatcher("/BookForm.jsp")) - .thenReturn(mockRequestDispatcher); - - try { - controllerServlet.doGet(request, response); - } catch (Exception e) {} - } - - // Verify showEditForm() is complete in ControllerServlet - // Since it's private need to verify the lines of code get called - // through the /edit action in doGet() - @Test - public void module2_task3() throws Exception { - boolean called_getParameter = false; - boolean called_getBook = false; - - try { - verify(request, atLeast(1)).getParameter("id"); - called_getParameter = true; - } catch (Throwable e) {} - - try { - verify(mockBookDAO).getBook(anyInt()); - called_getBook = true; - } catch (Throwable e) {} - - String errorMsg = "In ControllerServlet showEditForm()," + - " did not call getParameter(\"id\")."; - assertTrue(errorMsg, called_getParameter); - errorMsg = "In ControllerServlet showEditForm()," + - " did not call getBook(id)."; - assertTrue(errorMsg, called_getBook); - } - - @Test - public void module2_task4() throws Exception { - boolean called_getRequestDispatcher = false; - - try { - verify(request).getRequestDispatcher("/BookForm.jsp"); - called_getRequestDispatcher = true; - } catch (Throwable e) {} - - String errorMsg = "In ControllerServlet showEditForm()," + - " did not call request.getRequestDispatcher(\"BookForm.jsp\")."; - assertTrue(errorMsg, called_getRequestDispatcher); - } - - @Test - public void module2_task5() throws Exception { - boolean called_setAttribute = false; - - try { - verify(request).setAttribute("book", mockBook); - called_setAttribute = true; - } catch (Throwable e) {} - - String errorMsg = "In ControllerServlet showEditForm()," + - " did not call request.setAttribute(\"book\", bookObject);."; - assertTrue(errorMsg, called_setAttribute); - } - - @Test - public void module2_task6() throws Exception { - boolean called_forward = false; - - try { - verify(mockRequestDispatcher).forward(request, response); - called_forward = true; - } catch (Throwable e) {} - - String errorMsg = "In ControllerServlet showEditForm()," + - " did not call dispatcher.forward(request, response);."; - assertTrue(errorMsg, called_forward); - } - - -} diff --git a/src/test/java/com/pluralsight/module2/Module2_Task7_thru10_IT.java b/src/test/java/com/pluralsight/module2/Module2_Task7_thru10_IT.java deleted file mode 100644 index 5a3f1495..00000000 --- a/src/test/java/com/pluralsight/module2/Module2_Task7_thru10_IT.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.pluralsight; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import com.gargoylesoftware.htmlunit.ElementNotFoundException; -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.WebResponse; -import com.gargoylesoftware.htmlunit.html.DomElement; -import com.gargoylesoftware.htmlunit.html.DomNodeList; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlAnchor; -import com.gargoylesoftware.htmlunit.html.HtmlForm; -import com.gargoylesoftware.htmlunit.html.HtmlInput; - -import static org.junit.Assert.*; - -import java.io.IOException; - -public class Module2_Task7_thru10_IT { - private String BOOK_FORM_NAME = "book_form"; - private String indexUrl; - private WebClient webClient; - HtmlPage firstPage; - HtmlPage editPage; - HtmlPage newPage; - - @Before - public void setUp() throws IOException { - indexUrl = "http://localhost:8080"; //System.getProperty("integration.base.url"); - webClient = new WebClient(); - // Open the admin page - firstPage = webClient.getPage(indexUrl + "/books/admin"); - - try { - for ( HtmlAnchor a : firstPage.getAnchors()) { - String href = a.getHrefAttribute(); - if (href.contains("edit")) { - editPage = a.click(); - } - else if (href.contains("new")) { - newPage = a.click(); - } - } - } - catch ( Exception e) {} - } - - @After - public void tearDown() { - webClient.closeAllWindows(); - } - - // Verify they adapted the BookForm.jsp page for editing existing books - // and adding new book - // In this test check the form action is conditional, and the form h2 - @Test - public void module2_task7() { - assertNotNull("Link, edit, did not work.", editPage); - checkForm("Edit"); - } - - @Test - public void module2_task8() { - assertNotNull("Link, new, did not work.", newPage); - checkForm("New"); - } - - @Test - public void module2_task9() { - h2_correct("Edit"); - } - - @Test - public void module2_task10() { - h2_correct("New"); - } - - public void h2_correct(String urlStr) { - // First check if an H2 exists with text "New Book Form" - boolean h2Text_correct = false; - DomNodeList< DomElement > list; - if (urlStr.equals("Edit")) list = editPage.getElementsByTagName( "h2" ); - else list = newPage.getElementsByTagName( "h2" ); - String h2Text = ""; - String desiredText = urlStr + " Book Form"; - desiredText = desiredText.replaceAll("\\s+",""); - for( DomElement domElement : list ) - { - h2Text = domElement.getTextContent(); - h2Text = h2Text.replaceAll("\\s+",""); - if (h2Text.equals(desiredText)) - h2Text_correct = true; - } - - assertTrue("h2 text = " + h2Text + " , desiredText = " +desiredText, h2Text_correct); - } - - public void checkForm(String urlStr) { - // Get form and check action - HtmlForm form = null; - String errorMsg = ""; - String desiredAction = ""; - try { - if (urlStr.equals("Edit")) { - form = editPage.getFormByName(BOOK_FORM_NAME); - errorMsg = "Form, book_form, action not \"update\"."; - desiredAction = "update"; - } - else { - form = newPage.getFormByName(BOOK_FORM_NAME); - errorMsg = "Form, book_form, action not \"insert\"."; - desiredAction = "insert"; - } - } catch (ElementNotFoundException e) {} - - assertNotNull("Form is null.", form); - String action = form.getActionAttribute(); - assertEquals(errorMsg, desiredAction, action); - } -} diff --git a/src/test/java/com/pluralsight/module3/Module3_Task1_thru_5_IT.java b/src/test/java/com/pluralsight/module3/Module3_Task1_thru_5_IT.java deleted file mode 100644 index 5d8ee1ab..00000000 --- a/src/test/java/com/pluralsight/module3/Module3_Task1_thru_5_IT.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.Before; -import org.mockito.Mockito; -import org.junit.runner.RunWith; -import org.powermock.api.mockito.PowerMockito; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; - -import java.lang.reflect.Method; - -import java.io.*; - - -@RunWith(PowerMockRunner.class) -@PrepareForTest({DriverManager.class, PreparedStatement.class, BookDAO.class}) -public class Module3_Task1_thru_5_IT { - - static Method method = null; - static String sql = "UPDATE book SET title = ?, author = ?, price = ?" + - " WHERE id = ?"; - Connection spyConnection; - PreparedStatement mockStatement; - static BookDAO bookDAO; - static BookDAO spyBookDAO; - static boolean called_prepareStatement = false; - static boolean called_setTitle = false; - static boolean called_setAuthor = false; - static boolean called_setPrice = false; - static boolean called_setId = false; - static boolean called_executeUpdate = false; - static boolean called_close = false; - static String message = ""; - @Before - public void setUp() { - spyConnection = Mockito.mock(Connection.class); - mockStatement = Mockito.mock(PreparedStatement.class); - bookDAO = new BookDAO(spyConnection); - spyBookDAO = Mockito.spy(bookDAO); - - Book tempBookObject = new Book(1, "1984", "George Orwell", 1.50f); - try { - Mockito.when(spyConnection.prepareStatement(sql)).thenReturn(mockStatement); - method = BookDAO.class.getMethod("updateBook", Book.class); - method.invoke(spyBookDAO, tempBookObject); - } catch (Exception e) { - //e.printStackTrace(); - } - } - - // Verify updateBook() method exists in BookDAO - @Test - public void module3_Task1() throws Exception { - message = "The method updateBook() doesn't exist in BookDAO.java."; - assertNotNull(message, method); - } - - @Test - public void module3_Task2() throws Exception { - try { - Mockito.verify(spyConnection).prepareStatement(sql); - called_prepareStatement = true; - } catch (Throwable e) {} - - message = "The method updateBook() doesn't call prepareStatement() correctly."; - assertTrue(message, called_prepareStatement); - } - - @Test - public void module3_Task3() throws Exception { - try { - Mockito.verify(mockStatement).setString(1, "1984"); - called_setTitle = true; - Mockito.verify(mockStatement).setString(2, "George Orwell"); - called_setAuthor = true; - } catch (Throwable e) {} - - message = "The method updateBook() doesn't call setString() for the title."; - assertTrue(message, called_setTitle); - - message = "The method updateBook() doesn't call setString() for the author."; - assertTrue(message, called_setAuthor); - } - - @Test - public void module3_Task4() throws Exception { - try { - Mockito.verify(mockStatement).setFloat(3, 1.50f); - called_setPrice = true; - Mockito.verify(mockStatement).setInt(4, 1); - called_setId = true; - } catch (Throwable e) {} - - message = "The method updateBook() doesn't call setFloat() for the price."; - assertTrue(message, called_setPrice); - - message = "The method updateBook() doesn't call setInt() for the id."; - assertTrue(message, called_setId); - } - - @Test - public void module3_Task5() throws Exception { - try { - Mockito.verify(mockStatement).executeUpdate(); - called_executeUpdate = true; - Mockito.verify(mockStatement).close(); - called_close = true; - } catch (Throwable e) {} - - message = "The method updateBook() doesn't call executeUpdate()."; - assertTrue(message, called_executeUpdate); - - message = "The method updateBook() doesn't call PreparedStatement close()."; - assertTrue(message, called_close); - } -} diff --git a/src/test/java/com/pluralsight/module3/Module3_Task6_and_7_IT.java b/src/test/java/com/pluralsight/module3/Module3_Task6_and_7_IT.java deleted file mode 100644 index 70587cd9..00000000 --- a/src/test/java/com/pluralsight/module3/Module3_Task6_and_7_IT.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; - -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; - -import org.powermock.reflect.Whitebox; -import java.lang.reflect.Method; - -import org.junit.runner.RunWith; -import org.powermock.api.mockito.PowerMockito; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; -import org.powermock.reflect.exceptions.*; - -import java.io.*; - -@RunWith(PowerMockRunner.class) -@PrepareForTest(ControllerServlet.class) -public class Module3_Task6_and_7_IT extends Mockito{ - static String tempID = "0"; - static boolean called_updateBook = false; - - static HttpServletRequest request; - static HttpServletResponse response; - - private ControllerServlet controllerServlet; - - @Before - public void setUp() throws Exception { - controllerServlet = PowerMockito.spy(new ControllerServlet()); - - request = mock(HttpServletRequest.class); - response = mock(HttpServletResponse.class); - try { - when(request.getPathInfo()).thenReturn("/update"); - //PowerMockito.doNothing().when(controllerServlet, "updateBook", request, response); - when(request.getParameter("id")).thenReturn(tempID); - } catch (MethodNotFoundException e) {} - try { - controllerServlet.doGet(request, response); - } catch (Exception e) {} - } - - // Verify updateBook() exists in ControllerServlet - @Test - public void module3_task6() throws Exception { - Method method = null; - try { - method = Whitebox.getMethod(ControllerServlet.class, - "updateBook", HttpServletRequest.class, HttpServletResponse.class); - } catch (Exception e) {} - - String errorMsg = "private void updateBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, method); - } - - @Test - public void module3_task7() throws Exception { - // try { - // PowerMockito.verifyPrivate(controllerServlet) - // .invoke("updateBook", request, response); - // called_updateBook = true; - // } catch (Throwable e) {} - - String errorMsg = "After action \"" + "/update" + - "\", did not call updateBook()."; - assertTrue(errorMsg, called_updateBook); - } -} diff --git a/src/test/java/com/pluralsight/module3/Module3_Task8_thru_11_IT.java b/src/test/java/com/pluralsight/module3/Module3_Task8_thru_11_IT.java deleted file mode 100644 index c98ff541..00000000 --- a/src/test/java/com/pluralsight/module3/Module3_Task8_thru_11_IT.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.pluralsight; - -import static org.junit.Assert.*; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import java.util.List; -import java.util.ArrayList; -import java.util.Collection; -import java.lang.reflect.Method; - -import java.sql.Connection; -import java.sql.PreparedStatement; - -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; - -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; -import org.mockito.MockingDetails; -import org.mockito.invocation.Invocation; -import org.powermock.reflect.Whitebox; - -import java.io.*; - -public class Module3_Task8_thru_11_IT extends Mockito{ - - static StringWriter stringWriter = new StringWriter(); - static String tempIDStr = "1"; - static int tempID = 1; - static String tempTitle = "1984"; - static String tempAuthor = "George Orwell"; - static String tempPriceStr = "1.50"; - static float tempPrice = 1.50f; - - static boolean called_getId = false; - static boolean called_getTitle = false; - static boolean called_getAuthor = false; - static boolean called_getPrice = false; - static boolean called_updateBook = false; - static boolean called_sendRedirect = false; - static HttpServletRequest request; - static HttpServletResponse response; - static Book tempBook; - static Method updateMethod = null; - - @Mock - private BookDAO mockBookDAO; - - @InjectMocks - private ControllerServlet controllerServlet; - - @Before - public void setUp() throws Exception { - MockitoAnnotations.initMocks(this); - - request = mock(HttpServletRequest.class); - response = mock(HttpServletResponse.class); - tempBook = new Book(tempID, tempTitle, tempAuthor, tempPrice); - - when(request.getPathInfo()).thenReturn("/update"); - when(request.getParameter("id")).thenReturn(tempIDStr); - when(request.getParameter("booktitle")).thenReturn(tempTitle); - when(request.getParameter("bookauthor")).thenReturn(tempAuthor); - when(request.getParameter("bookprice")).thenReturn(tempPriceStr); - - - try { - updateMethod = Whitebox.getMethod(ControllerServlet.class, - "updateBook", HttpServletRequest.class, HttpServletResponse.class); - } catch (Exception e) {} - - String errorMsg = "private void updateBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, updateMethod); - - try { - controllerServlet.doGet(request, response); - } catch (Exception e) {} - } - - @Test - public void module3_task8() throws Exception { - String errorMsg = "private void updateBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, updateMethod); - - try { - verify(request).getParameter("id"); - called_getId = true; - } catch (Exception e) {} - - errorMsg = "After action \"" + "/update" + - "\", did not call getParameter(\"id\")."; - assertTrue(errorMsg, called_getId); - } - - @Test - public void module3_task9() throws Exception { - String errorMsg = "private void updateBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, updateMethod); - - try { - verify(request).getParameter("booktitle"); - called_getTitle = true; - verify(request).getParameter("bookauthor"); - called_getAuthor = true; - verify(request).getParameter("bookprice"); - called_getPrice = true; - } catch (Exception e) {} - - errorMsg = "After action \"" + "/update" + - "\", did not call getParameter(\"booktitle\")."; - assertTrue(errorMsg, called_getTitle); - errorMsg = "After action \"" + "/update" + - "\", did not call getParameter(\"bookauthor\")."; - assertTrue(errorMsg, called_getAuthor); - errorMsg = "After action \"" + "/update" + - "\", did not call getParameter(\"bookprice\")."; - assertTrue(errorMsg, called_getPrice); - } - - @Test - public void module3_task10() throws Exception { - String errorMsg = "private void updateBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, updateMethod); - - Method method = null; - try { - method = BookDAO.class.getMethod("updateBook", int.class); - } catch (NoSuchMethodException e) { - //e.printStackTrace(); - } - - errorMsg = "The method updateBook() doesn't exist in BookDAO.java."; - assertNotNull(errorMsg, method); - - MockingDetails mockingDetails = Mockito.mockingDetails(mockBookDAO); - - Collection invocations = mockingDetails.getInvocations(); - - List methodsCalled = new ArrayList<>(); - for (Invocation anInvocation : invocations) { - methodsCalled.add(anInvocation.getMethod().getName()); - } - errorMsg = "After action \"" + "/update" + - "\", did not udpateBook(newBookObject)."; - assertTrue(errorMsg, methodsCalled.contains("updateBook")); - } - - @Test - public void module3_task11() throws Exception { - String errorMsg = "private void updateBook() does not exist in ControllerServlet"; - assertNotNull(errorMsg, updateMethod); - - try { - verify(response).sendRedirect("list"); - called_sendRedirect = true; - } catch (Exception e) {} - - errorMsg = "In ControllerServlet updateBook()," + - " did not call sendRedirect(\"list\")."; - assertTrue(errorMsg, called_sendRedirect); - } -} diff --git a/target/bookstore.war b/target/bookstore.war new file mode 100644 index 00000000..e280a56c Binary files /dev/null and b/target/bookstore.war differ diff --git a/target/bookstore/BookAdmin.jsp b/target/bookstore/BookAdmin.jsp new file mode 100644 index 00000000..cbb67588 --- /dev/null +++ b/target/bookstore/BookAdmin.jsp @@ -0,0 +1,43 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %> +<%@ taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt" %> + + + + Book Store + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + +
    List of Books
    TitleAuthorPriceAdd Book
    ${ item.getTitle() } ${ item.getAuthor() } Edit + Delete
    +
    +
    + + diff --git a/target/bookstore/BookForm.jsp b/target/bookstore/BookForm.jsp new file mode 100644 index 00000000..fe6f717f --- /dev/null +++ b/target/bookstore/BookForm.jsp @@ -0,0 +1,54 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + +Book Store + + + + + +
    + +
    + + + + + +

    + + Edit Book Form + + + New Book Form + +

    + +

    + + + + + + +

    +

    + +

    +

    + +

    +

    + +

    +
    +
    + + diff --git a/target/bookstore/BookList.jsp b/target/bookstore/BookList.jsp new file mode 100644 index 00000000..ac40509a --- /dev/null +++ b/target/bookstore/BookList.jsp @@ -0,0 +1,41 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %> +<%@ taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt" %> + + + + Book Store + + + + + + + +
    +
    + + + + + + + + + + + + + + + + +
    List of Books
    TitleAuthorPrice
    ${ item.getTitle() } ${ item.getAuthor() }
    +
    +
    + + diff --git a/target/bookstore/WEB-INF/classes/com/pluralsight/Book.class b/target/bookstore/WEB-INF/classes/com/pluralsight/Book.class new file mode 100644 index 00000000..57d0c14c Binary files /dev/null and b/target/bookstore/WEB-INF/classes/com/pluralsight/Book.class differ diff --git a/target/bookstore/WEB-INF/classes/com/pluralsight/BookDAO.class b/target/bookstore/WEB-INF/classes/com/pluralsight/BookDAO.class new file mode 100644 index 00000000..d5548c30 Binary files /dev/null and b/target/bookstore/WEB-INF/classes/com/pluralsight/BookDAO.class differ diff --git a/target/bookstore/WEB-INF/classes/com/pluralsight/ControllerServlet.class b/target/bookstore/WEB-INF/classes/com/pluralsight/ControllerServlet.class new file mode 100644 index 00000000..565019a2 Binary files /dev/null and b/target/bookstore/WEB-INF/classes/com/pluralsight/ControllerServlet.class differ diff --git a/target/bookstore/WEB-INF/classes/com/pluralsight/DBConnection.class b/target/bookstore/WEB-INF/classes/com/pluralsight/DBConnection.class new file mode 100644 index 00000000..d59a97c2 Binary files /dev/null and b/target/bookstore/WEB-INF/classes/com/pluralsight/DBConnection.class differ diff --git a/target/bookstore/WEB-INF/lib/byte-buddy-1.8.3.jar b/target/bookstore/WEB-INF/lib/byte-buddy-1.8.3.jar new file mode 100644 index 00000000..97285567 Binary files /dev/null and b/target/bookstore/WEB-INF/lib/byte-buddy-1.8.3.jar differ diff --git a/target/bookstore/WEB-INF/lib/byte-buddy-agent-1.8.3.jar b/target/bookstore/WEB-INF/lib/byte-buddy-agent-1.8.3.jar new file mode 100644 index 00000000..e49d453d Binary files /dev/null and b/target/bookstore/WEB-INF/lib/byte-buddy-agent-1.8.3.jar differ diff --git a/target/bookstore/WEB-INF/lib/hamcrest-core-1.3.jar b/target/bookstore/WEB-INF/lib/hamcrest-core-1.3.jar new file mode 100644 index 00000000..9d5fe16e Binary files /dev/null and b/target/bookstore/WEB-INF/lib/hamcrest-core-1.3.jar differ diff --git a/target/bookstore/WEB-INF/lib/javassist-3.22.0-CR2.jar b/target/bookstore/WEB-INF/lib/javassist-3.22.0-CR2.jar new file mode 100644 index 00000000..0b02004b Binary files /dev/null and b/target/bookstore/WEB-INF/lib/javassist-3.22.0-CR2.jar differ diff --git a/target/bookstore/WEB-INF/lib/javax.inject-1.jar b/target/bookstore/WEB-INF/lib/javax.inject-1.jar new file mode 100644 index 00000000..b2a9d0bf Binary files /dev/null and b/target/bookstore/WEB-INF/lib/javax.inject-1.jar differ diff --git a/target/bookstore/WEB-INF/lib/jstl-1.2.jar b/target/bookstore/WEB-INF/lib/jstl-1.2.jar new file mode 100644 index 00000000..0fd275e9 Binary files /dev/null and b/target/bookstore/WEB-INF/lib/jstl-1.2.jar differ diff --git a/target/bookstore/WEB-INF/lib/mockito-core-2.18.0.jar b/target/bookstore/WEB-INF/lib/mockito-core-2.18.0.jar new file mode 100644 index 00000000..ad2a5a19 Binary files /dev/null and b/target/bookstore/WEB-INF/lib/mockito-core-2.18.0.jar differ diff --git a/target/bookstore/WEB-INF/lib/objenesis-2.6.jar b/target/bookstore/WEB-INF/lib/objenesis-2.6.jar new file mode 100644 index 00000000..b4b29d56 Binary files /dev/null and b/target/bookstore/WEB-INF/lib/objenesis-2.6.jar differ diff --git a/target/bookstore/WEB-INF/lib/powermock-api-mockito2-2.0.0-beta.5.jar b/target/bookstore/WEB-INF/lib/powermock-api-mockito2-2.0.0-beta.5.jar new file mode 100644 index 00000000..0905d222 Binary files /dev/null and b/target/bookstore/WEB-INF/lib/powermock-api-mockito2-2.0.0-beta.5.jar differ diff --git a/target/bookstore/WEB-INF/lib/powermock-api-support-2.0.0-beta.5.jar b/target/bookstore/WEB-INF/lib/powermock-api-support-2.0.0-beta.5.jar new file mode 100644 index 00000000..1b3564b9 Binary files /dev/null and b/target/bookstore/WEB-INF/lib/powermock-api-support-2.0.0-beta.5.jar differ diff --git a/target/bookstore/WEB-INF/lib/powermock-core-2.0.0-beta.5.jar b/target/bookstore/WEB-INF/lib/powermock-core-2.0.0-beta.5.jar new file mode 100644 index 00000000..8c5a58a0 Binary files /dev/null and b/target/bookstore/WEB-INF/lib/powermock-core-2.0.0-beta.5.jar differ diff --git a/target/bookstore/WEB-INF/lib/powermock-module-junit4-2.0.0-beta.5.jar b/target/bookstore/WEB-INF/lib/powermock-module-junit4-2.0.0-beta.5.jar new file mode 100644 index 00000000..a45f9cfa Binary files /dev/null and b/target/bookstore/WEB-INF/lib/powermock-module-junit4-2.0.0-beta.5.jar differ diff --git a/target/bookstore/WEB-INF/lib/powermock-module-junit4-common-2.0.0-beta.5.jar b/target/bookstore/WEB-INF/lib/powermock-module-junit4-common-2.0.0-beta.5.jar new file mode 100644 index 00000000..f6910da8 Binary files /dev/null and b/target/bookstore/WEB-INF/lib/powermock-module-junit4-common-2.0.0-beta.5.jar differ diff --git a/target/bookstore/WEB-INF/lib/powermock-reflect-2.0.0-beta.5.jar b/target/bookstore/WEB-INF/lib/powermock-reflect-2.0.0-beta.5.jar new file mode 100644 index 00000000..b0ce0f7c Binary files /dev/null and b/target/bookstore/WEB-INF/lib/powermock-reflect-2.0.0-beta.5.jar differ diff --git a/target/bookstore/WEB-INF/lib/sqlite-jdbc-3.21.0.1.jar b/target/bookstore/WEB-INF/lib/sqlite-jdbc-3.21.0.1.jar new file mode 100644 index 00000000..c534112d Binary files /dev/null and b/target/bookstore/WEB-INF/lib/sqlite-jdbc-3.21.0.1.jar differ diff --git a/target/bookstore/WEB-INF/web.xml b/target/bookstore/WEB-INF/web.xml new file mode 100644 index 00000000..449850f0 --- /dev/null +++ b/target/bookstore/WEB-INF/web.xml @@ -0,0 +1,18 @@ + + + Archetype Created Web Application + + + ControllerServlet + com.pluralsight.ControllerServlet + + + ControllerServlet + /books/* + + diff --git a/target/bookstore/css/style.css b/target/bookstore/css/style.css new file mode 100644 index 00000000..3d65295a --- /dev/null +++ b/target/bookstore/css/style.css @@ -0,0 +1,64 @@ +body { + font-family: "Open Sans", Open Sans, "Verdana", Verdana, Arial, sans; +} + + +.container { + text-align: center; + margin: 80px auto 0px; + +} + +.booktable table { + width: 75%; + margin: 0 auto; +} +table, td, th { + border: 1px solid #ddd; + text-align: left; +} +table { + border-collapse: collapse; +} +th, td { + padding: 15px; +} +form { + margin: 80px; + border: 1px solid #ddd; +} + +ul { + list-style-type: none; + margin: 0; + padding: 0; + overflow: hidden; + background-color: #333; + position: fixed; + top: 0; + width: 100%; +} + +li { + float: left; +} + +li a { + display: block; + color: white; + text-align: center; + padding: 14px 16px; + text-decoration: none; +} + +li a:hover:not(.active) { + background-color: #111; +} + +a { + text-decoration: none; +} + +.active { + background-color: #cc0066; +} diff --git a/target/classes/com/pluralsight/Book.class b/target/classes/com/pluralsight/Book.class new file mode 100644 index 00000000..57d0c14c Binary files /dev/null and b/target/classes/com/pluralsight/Book.class differ diff --git a/target/classes/com/pluralsight/BookDAO.class b/target/classes/com/pluralsight/BookDAO.class new file mode 100644 index 00000000..d5548c30 Binary files /dev/null and b/target/classes/com/pluralsight/BookDAO.class differ diff --git a/target/classes/com/pluralsight/ControllerServlet.class b/target/classes/com/pluralsight/ControllerServlet.class new file mode 100644 index 00000000..565019a2 Binary files /dev/null and b/target/classes/com/pluralsight/ControllerServlet.class differ diff --git a/target/classes/com/pluralsight/DBConnection.class b/target/classes/com/pluralsight/DBConnection.class new file mode 100644 index 00000000..d59a97c2 Binary files /dev/null and b/target/classes/com/pluralsight/DBConnection.class differ diff --git a/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task1_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task1_IT.xml new file mode 100644 index 00000000..9ca41673 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task1_IT.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module1.Module1_Task1_IT.setUp(Module1_Task1_IT.java:29) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task2_and_3_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task2_and_3_IT.xml new file mode 100644 index 00000000..457f30c8 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task2_and_3_IT.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task4_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task4_IT.xml new file mode 100644 index 00000000..7582f956 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task4_IT.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task5_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task5_IT.xml new file mode 100644 index 00000000..44abee83 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task5_IT.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.AssertionError: The method deleteBook() doesn't call prepareStatement() correctly. + at org.junit.Assert.fail(Assert.java:88) + at org.junit.Assert.assertTrue(Assert.java:41) + at com.pluralsight.module1.Module1_Task5_IT._task5(Module1_Task5_IT.java:59) + + + + java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task6_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task6_IT.xml new file mode 100644 index 00000000..25d41586 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task6_IT.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.AssertionError: The method deleteBook() doesn't call setInt(). + at org.junit.Assert.fail(Assert.java:88) + at org.junit.Assert.assertTrue(Assert.java:41) + at com.pluralsight.module1.Module1_Task6_IT._task6(Module1_Task6_IT.java:65) + + + + java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task7_and_8_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task7_and_8_IT.xml new file mode 100644 index 00000000..194c0b63 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module1.Module1_Task7_and_8_IT.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task11_thru_14_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task11_thru_14_IT.xml new file mode 100644 index 00000000..31bffe1b --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task11_thru_14_IT.xml @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task11_thru_14_IT.setUp(Module2_Task11_thru_14_IT.java:36) + + + + org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task11_thru_14_IT.setUp(Module2_Task11_thru_14_IT.java:36) + + + + org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task11_thru_14_IT.setUp(Module2_Task11_thru_14_IT.java:36) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task1_and_2_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task1_and_2_IT.xml new file mode 100644 index 00000000..9a966934 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task1_and_2_IT.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task3_thru_6_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task3_thru_6_IT.xml new file mode 100644 index 00000000..fe01a826 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task3_thru_6_IT.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task7_thru10_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task7_thru10_IT.xml new file mode 100644 index 00000000..ebc43793 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module2.Module2_Task7_thru10_IT.xml @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task7_thru10_IT.setUp(Module2_Task7_thru10_IT.java:35) + + + + org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task7_thru10_IT.setUp(Module2_Task7_thru10_IT.java:35) + + + + org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task7_thru10_IT.setUp(Module2_Task7_thru10_IT.java:35) + + + + org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task7_thru10_IT.setUp(Module2_Task7_thru10_IT.java:35) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task1_thru_5_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task1_thru_5_IT.xml new file mode 100644 index 00000000..ca0be276 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task1_thru_5_IT.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task6_and_7_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task6_and_7_IT.xml new file mode 100644 index 00000000..d2946c3e --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task6_and_7_IT.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + + + \ No newline at end of file diff --git a/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task8_thru_11_IT.xml b/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task8_thru_11_IT.xml new file mode 100644 index 00000000..40df54f5 --- /dev/null +++ b/target/failsafe-reports/TEST-com.pluralsight.module3.Module3_Task8_thru_11_IT.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/failsafe-reports/com.pluralsight.module1.Module1_Task1_IT.txt b/target/failsafe-reports/com.pluralsight.module1.Module1_Task1_IT.txt new file mode 100644 index 00000000..a0161494 --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module1.Module1_Task1_IT.txt @@ -0,0 +1,31 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module1.Module1_Task1_IT +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.612 sec <<< FAILURE! - in com.pluralsight.module1.Module1_Task1_IT +_task1(com.pluralsight.module1.Module1_Task1_IT) Time elapsed: 2.609 sec <<< ERROR! +org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module1.Module1_Task1_IT.setUp(Module1_Task1_IT.java:29) + diff --git a/target/failsafe-reports/com.pluralsight.module1.Module1_Task2_and_3_IT.txt b/target/failsafe-reports/com.pluralsight.module1.Module1_Task2_and_3_IT.txt new file mode 100644 index 00000000..057c6f5a --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module1.Module1_Task2_and_3_IT.txt @@ -0,0 +1,19 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module1.Module1_Task2_and_3_IT +------------------------------------------------------------------------------- +Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.056 sec <<< FAILURE! - in com.pluralsight.module1.Module1_Task2_and_3_IT +com.pluralsight.module1.Module1_Task2_and_3_IT Time elapsed: 0.442 sec <<< ERROR! +java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + diff --git a/target/failsafe-reports/com.pluralsight.module1.Module1_Task4_IT.txt b/target/failsafe-reports/com.pluralsight.module1.Module1_Task4_IT.txt new file mode 100644 index 00000000..d065da9f --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module1.Module1_Task4_IT.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module1.Module1_Task4_IT +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.pluralsight.module1.Module1_Task4_IT diff --git a/target/failsafe-reports/com.pluralsight.module1.Module1_Task5_IT.txt b/target/failsafe-reports/com.pluralsight.module1.Module1_Task5_IT.txt new file mode 100644 index 00000000..fad96dd6 --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module1.Module1_Task5_IT.txt @@ -0,0 +1,25 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module1.Module1_Task5_IT +------------------------------------------------------------------------------- +Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.655 sec <<< FAILURE! - in com.pluralsight.module1.Module1_Task5_IT +_task5(com.pluralsight.module1.Module1_Task5_IT) Time elapsed: 0.614 sec <<< FAILURE! +java.lang.AssertionError: The method deleteBook() doesn't call prepareStatement() correctly. + at org.junit.Assert.fail(Assert.java:88) + at org.junit.Assert.assertTrue(Assert.java:41) + at com.pluralsight.module1.Module1_Task5_IT._task5(Module1_Task5_IT.java:59) + +com.pluralsight.module1.Module1_Task5_IT Time elapsed: 0.614 sec <<< ERROR! +java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + diff --git a/target/failsafe-reports/com.pluralsight.module1.Module1_Task6_IT.txt b/target/failsafe-reports/com.pluralsight.module1.Module1_Task6_IT.txt new file mode 100644 index 00000000..53fd8303 --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module1.Module1_Task6_IT.txt @@ -0,0 +1,25 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module1.Module1_Task6_IT +------------------------------------------------------------------------------- +Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.62 sec <<< FAILURE! - in com.pluralsight.module1.Module1_Task6_IT +_task6(com.pluralsight.module1.Module1_Task6_IT) Time elapsed: 0.582 sec <<< FAILURE! +java.lang.AssertionError: The method deleteBook() doesn't call setInt(). + at org.junit.Assert.fail(Assert.java:88) + at org.junit.Assert.assertTrue(Assert.java:41) + at com.pluralsight.module1.Module1_Task6_IT._task6(Module1_Task6_IT.java:65) + +com.pluralsight.module1.Module1_Task6_IT Time elapsed: 0.583 sec <<< ERROR! +java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + diff --git a/target/failsafe-reports/com.pluralsight.module1.Module1_Task7_and_8_IT.txt b/target/failsafe-reports/com.pluralsight.module1.Module1_Task7_and_8_IT.txt new file mode 100644 index 00000000..958babb3 --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module1.Module1_Task7_and_8_IT.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module1.Module1_Task7_and_8_IT +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.127 sec - in com.pluralsight.module1.Module1_Task7_and_8_IT diff --git a/target/failsafe-reports/com.pluralsight.module2.Module2_Task11_thru_14_IT.txt b/target/failsafe-reports/com.pluralsight.module2.Module2_Task11_thru_14_IT.txt new file mode 100644 index 00000000..d4891cac --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module2.Module2_Task11_thru_14_IT.txt @@ -0,0 +1,85 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module2.Module2_Task11_thru_14_IT +------------------------------------------------------------------------------- +Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 6.043 sec <<< FAILURE! - in com.pluralsight.module2.Module2_Task11_thru_14_IT +_task11(com.pluralsight.module2.Module2_Task11_thru_14_IT) Time elapsed: 2.008 sec <<< ERROR! +org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task11_thru_14_IT.setUp(Module2_Task11_thru_14_IT.java:36) + +_task12(com.pluralsight.module2.Module2_Task11_thru_14_IT) Time elapsed: 2.019 sec <<< ERROR! +org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task11_thru_14_IT.setUp(Module2_Task11_thru_14_IT.java:36) + +_task13(com.pluralsight.module2.Module2_Task11_thru_14_IT) Time elapsed: 2.015 sec <<< ERROR! +org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task11_thru_14_IT.setUp(Module2_Task11_thru_14_IT.java:36) + diff --git a/target/failsafe-reports/com.pluralsight.module2.Module2_Task1_and_2_IT.txt b/target/failsafe-reports/com.pluralsight.module2.Module2_Task1_and_2_IT.txt new file mode 100644 index 00000000..58c055d4 --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module2.Module2_Task1_and_2_IT.txt @@ -0,0 +1,19 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module2.Module2_Task1_and_2_IT +------------------------------------------------------------------------------- +Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.736 sec <<< FAILURE! - in com.pluralsight.module2.Module2_Task1_and_2_IT +com.pluralsight.module2.Module2_Task1_and_2_IT Time elapsed: 0.293 sec <<< ERROR! +java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + diff --git a/target/failsafe-reports/com.pluralsight.module2.Module2_Task3_thru_6_IT.txt b/target/failsafe-reports/com.pluralsight.module2.Module2_Task3_thru_6_IT.txt new file mode 100644 index 00000000..71531495 --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module2.Module2_Task3_thru_6_IT.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module2.Module2_Task3_thru_6_IT +------------------------------------------------------------------------------- +Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec - in com.pluralsight.module2.Module2_Task3_thru_6_IT diff --git a/target/failsafe-reports/com.pluralsight.module2.Module2_Task7_thru10_IT.txt b/target/failsafe-reports/com.pluralsight.module2.Module2_Task7_thru10_IT.txt new file mode 100644 index 00000000..d8e07b4e --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module2.Module2_Task7_thru10_IT.txt @@ -0,0 +1,112 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module2.Module2_Task7_thru10_IT +------------------------------------------------------------------------------- +Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 8.076 sec <<< FAILURE! - in com.pluralsight.module2.Module2_Task7_thru10_IT +_task7(com.pluralsight.module2.Module2_Task7_thru10_IT) Time elapsed: 2.01 sec <<< ERROR! +org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task7_thru10_IT.setUp(Module2_Task7_thru10_IT.java:35) + +_task8(com.pluralsight.module2.Module2_Task7_thru10_IT) Time elapsed: 2.017 sec <<< ERROR! +org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task7_thru10_IT.setUp(Module2_Task7_thru10_IT.java:35) + +_task9(com.pluralsight.module2.Module2_Task7_thru10_IT) Time elapsed: 2.03 sec <<< ERROR! +org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task7_thru10_IT.setUp(Module2_Task7_thru10_IT.java:35) + +_task10(com.pluralsight.module2.Module2_Task7_thru10_IT) Time elapsed: 2.017 sec <<< ERROR! +org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect + at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method) + at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107) + at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) + at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) + at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) + at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) + at java.base/java.net.Socket.connect(Socket.java:591) + at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72) + at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:117) + at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) + at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) + at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) + at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) + at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) + at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) + at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) + at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) + at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:178) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1313) + at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1230) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407) + at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392) + at com.pluralsight.module2.Module2_Task7_thru10_IT.setUp(Module2_Task7_thru10_IT.java:35) + diff --git a/target/failsafe-reports/com.pluralsight.module3.Module3_Task1_thru_5_IT.txt b/target/failsafe-reports/com.pluralsight.module3.Module3_Task1_thru_5_IT.txt new file mode 100644 index 00000000..31ace87d --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module3.Module3_Task1_thru_5_IT.txt @@ -0,0 +1,19 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module3.Module3_Task1_thru_5_IT +------------------------------------------------------------------------------- +Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.542 sec <<< FAILURE! - in com.pluralsight.module3.Module3_Task1_thru_5_IT +com.pluralsight.module3.Module3_Task1_thru_5_IT Time elapsed: 0.002 sec <<< ERROR! +java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + diff --git a/target/failsafe-reports/com.pluralsight.module3.Module3_Task6_and_7_IT.txt b/target/failsafe-reports/com.pluralsight.module3.Module3_Task6_and_7_IT.txt new file mode 100644 index 00000000..671a0d4c --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module3.Module3_Task6_and_7_IT.txt @@ -0,0 +1,19 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module3.Module3_Task6_and_7_IT +------------------------------------------------------------------------------- +Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.793 sec <<< FAILURE! - in com.pluralsight.module3.Module3_Task6_and_7_IT +com.pluralsight.module3.Module3_Task6_and_7_IT Time elapsed: 0.017 sec <<< ERROR! +java.lang.RuntimeException: Internal error: Failed to find the "modifiers" field in method setInternalState. + at java.base/java.lang.Class.getDeclaredField(Class.java:2417) + at org.powermock.reflect.internal.WhiteboxImpl.sedModifiersToField(WhiteboxImpl.java:2348) + at org.powermock.reflect.internal.WhiteboxImpl.removeFinalModifierIfPresent(WhiteboxImpl.java:2318) + at org.powermock.reflect.internal.WhiteboxImpl.setField(WhiteboxImpl.java:2304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:304) + at org.powermock.reflect.internal.WhiteboxImpl.setInternalState(WhiteboxImpl.java:317) + at org.powermock.reflect.Whitebox.setInternalState(Whitebox.java:190) + at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:61) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) + diff --git a/target/failsafe-reports/com.pluralsight.module3.Module3_Task8_thru_11_IT.txt b/target/failsafe-reports/com.pluralsight.module3.Module3_Task8_thru_11_IT.txt new file mode 100644 index 00000000..b10da52a --- /dev/null +++ b/target/failsafe-reports/com.pluralsight.module3.Module3_Task8_thru_11_IT.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.pluralsight.module3.Module3_Task8_thru_11_IT +------------------------------------------------------------------------------- +Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in com.pluralsight.module3.Module3_Task8_thru_11_IT diff --git a/target/failsafe-reports/failsafe-summary.xml b/target/failsafe-reports/failsafe-summary.xml new file mode 100644 index 00000000..32dfe2f0 --- /dev/null +++ b/target/failsafe-reports/failsafe-summary.xml @@ -0,0 +1,8 @@ + + + 38 + 14 + 2 + 0 + + \ No newline at end of file diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 00000000..84cd1be8 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Wed Apr 17 10:41:58 BST 2019 +groupId=com.pluralsight +artifactId=bookstore +version=1.0-SNAPSHOT diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 00000000..4c7addae --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,4 @@ +com\pluralsight\Book.class +com\pluralsight\DBConnection.class +com\pluralsight\BookDAO.class +com\pluralsight\ControllerServlet.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 00000000..9ef61f86 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,4 @@ +C:\Users\liams\Documents\GitHub\Java-BookStore\src\main\java\com\pluralsight\Book.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\main\java\com\pluralsight\ControllerServlet.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\main\java\com\pluralsight\DBConnection.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\main\java\com\pluralsight\BookDAO.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 00000000..130727c9 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1,13 @@ +com\pluralsight\module1\Module1_Task4_IT.class +com\pluralsight\module3\Module3_Task1_thru_5_IT.class +com\pluralsight\module3\Module3_Task6_and_7_IT.class +com\pluralsight\module3\Module3_Task8_thru_11_IT.class +com\pluralsight\module2\Module2_Task3_thru_6_IT.class +com\pluralsight\module1\Module1_Task5_IT.class +com\pluralsight\module1\Module1_Task7_and_8_IT.class +com\pluralsight\module1\Module1_Task2_and_3_IT.class +com\pluralsight\module1\Module1_Task1_IT.class +com\pluralsight\module2\Module2_Task11_thru_14_IT.class +com\pluralsight\module2\Module2_Task1_and_2_IT.class +com\pluralsight\module1\Module1_Task6_IT.class +com\pluralsight\module2\Module2_Task7_thru10_IT.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 00000000..4c2a28e1 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,13 @@ +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module1\Module1_Task4_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module1\Module1_Task7_and_8_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module3\Module3_Task8_thru_11_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module3\Module3_Task1_thru_5_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module1\Module1_Task5_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module2\Module2_Task7_thru10_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module3\Module3_Task6_and_7_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module1\Module1_Task2_and_3_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module2\Module2_Task3_thru_6_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module1\Module1_Task1_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module2\Module2_Task1_and_2_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module1\Module1_Task6_IT.java +C:\Users\liams\Documents\GitHub\Java-BookStore\src\test\java\com\pluralsight\module2\Module2_Task11_thru_14_IT.java diff --git a/target/test-classes/com/pluralsight/module1/Module1_Task1_IT.class b/target/test-classes/com/pluralsight/module1/Module1_Task1_IT.class new file mode 100644 index 00000000..85cb8df4 Binary files /dev/null and b/target/test-classes/com/pluralsight/module1/Module1_Task1_IT.class differ diff --git a/target/test-classes/com/pluralsight/module1/Module1_Task2_and_3_IT.class b/target/test-classes/com/pluralsight/module1/Module1_Task2_and_3_IT.class new file mode 100644 index 00000000..d9ffe569 Binary files /dev/null and b/target/test-classes/com/pluralsight/module1/Module1_Task2_and_3_IT.class differ diff --git a/target/test-classes/com/pluralsight/module1/Module1_Task4_IT.class b/target/test-classes/com/pluralsight/module1/Module1_Task4_IT.class new file mode 100644 index 00000000..e5bf4551 Binary files /dev/null and b/target/test-classes/com/pluralsight/module1/Module1_Task4_IT.class differ diff --git a/target/test-classes/com/pluralsight/module1/Module1_Task5_IT.class b/target/test-classes/com/pluralsight/module1/Module1_Task5_IT.class new file mode 100644 index 00000000..cdd2b0b6 Binary files /dev/null and b/target/test-classes/com/pluralsight/module1/Module1_Task5_IT.class differ diff --git a/target/test-classes/com/pluralsight/module1/Module1_Task6_IT.class b/target/test-classes/com/pluralsight/module1/Module1_Task6_IT.class new file mode 100644 index 00000000..af46ed83 Binary files /dev/null and b/target/test-classes/com/pluralsight/module1/Module1_Task6_IT.class differ diff --git a/target/test-classes/com/pluralsight/module1/Module1_Task7_and_8_IT.class b/target/test-classes/com/pluralsight/module1/Module1_Task7_and_8_IT.class new file mode 100644 index 00000000..177c69d4 Binary files /dev/null and b/target/test-classes/com/pluralsight/module1/Module1_Task7_and_8_IT.class differ diff --git a/target/test-classes/com/pluralsight/module2/Module2_Task11_thru_14_IT.class b/target/test-classes/com/pluralsight/module2/Module2_Task11_thru_14_IT.class new file mode 100644 index 00000000..8bf8fd60 Binary files /dev/null and b/target/test-classes/com/pluralsight/module2/Module2_Task11_thru_14_IT.class differ diff --git a/target/test-classes/com/pluralsight/module2/Module2_Task1_and_2_IT.class b/target/test-classes/com/pluralsight/module2/Module2_Task1_and_2_IT.class new file mode 100644 index 00000000..372006a4 Binary files /dev/null and b/target/test-classes/com/pluralsight/module2/Module2_Task1_and_2_IT.class differ diff --git a/target/test-classes/com/pluralsight/module2/Module2_Task3_thru_6_IT.class b/target/test-classes/com/pluralsight/module2/Module2_Task3_thru_6_IT.class new file mode 100644 index 00000000..f96208fd Binary files /dev/null and b/target/test-classes/com/pluralsight/module2/Module2_Task3_thru_6_IT.class differ diff --git a/target/test-classes/com/pluralsight/module2/Module2_Task7_thru10_IT.class b/target/test-classes/com/pluralsight/module2/Module2_Task7_thru10_IT.class new file mode 100644 index 00000000..b24070a9 Binary files /dev/null and b/target/test-classes/com/pluralsight/module2/Module2_Task7_thru10_IT.class differ diff --git a/target/test-classes/com/pluralsight/module3/Module3_Task1_thru_5_IT.class b/target/test-classes/com/pluralsight/module3/Module3_Task1_thru_5_IT.class new file mode 100644 index 00000000..d96fb104 Binary files /dev/null and b/target/test-classes/com/pluralsight/module3/Module3_Task1_thru_5_IT.class differ diff --git a/target/test-classes/com/pluralsight/module3/Module3_Task6_and_7_IT.class b/target/test-classes/com/pluralsight/module3/Module3_Task6_and_7_IT.class new file mode 100644 index 00000000..18e8b7b7 Binary files /dev/null and b/target/test-classes/com/pluralsight/module3/Module3_Task6_and_7_IT.class differ diff --git a/target/test-classes/com/pluralsight/module3/Module3_Task8_thru_11_IT.class b/target/test-classes/com/pluralsight/module3/Module3_Task8_thru_11_IT.class new file mode 100644 index 00000000..859995c3 Binary files /dev/null and b/target/test-classes/com/pluralsight/module3/Module3_Task8_thru_11_IT.class differ diff --git a/target/tomcat/conf/logging.properties b/target/tomcat/conf/logging.properties new file mode 100644 index 00000000..76c9512b --- /dev/null +++ b/target/tomcat/conf/logging.properties @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +1catalina.org.apache.juli.FileHandler.level = FINE +1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +1catalina.org.apache.juli.FileHandler.prefix = catalina. + +2localhost.org.apache.juli.FileHandler.level = FINE +2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +2localhost.org.apache.juli.FileHandler.prefix = localhost. + +3manager.org.apache.juli.FileHandler.level = FINE +3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +3manager.org.apache.juli.FileHandler.prefix = manager. + +4host-manager.org.apache.juli.FileHandler.level = FINE +4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +4host-manager.org.apache.juli.FileHandler.prefix = host-manager. + +java.util.logging.ConsoleHandler.level = FINE +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter + + +############################################################ +# Facility specific properties. +# Provides extra control for each logger. +############################################################ + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler + +# For example, set the org.apache.catalina.util.LifecycleBase logger to log +# each component that extends LifecycleBase changing state: +#org.apache.catalina.util.LifecycleBase.level = FINE + +# To see debug messages in TldLocationsCache, uncomment the following line: +#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git a/target/tomcat/conf/tomcat-users.xml b/target/tomcat/conf/tomcat-users.xml new file mode 100644 index 00000000..7114f5d1 --- /dev/null +++ b/target/tomcat/conf/tomcat-users.xml @@ -0,0 +1,26 @@ + + + + + diff --git a/target/tomcat/conf/web.xml b/target/tomcat/conf/web.xml new file mode 100644 index 00000000..cc8383cb --- /dev/null +++ b/target/tomcat/conf/web.xml @@ -0,0 +1,4283 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + jsp + *.jsp + *.jspx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + 123 + application/vnd.lotus-1-2-3 + + + 3dml + text/vnd.in3d.3dml + + + 3g2 + video/3gpp2 + + + 3gp + video/3gpp + + + 7z + application/x-7z-compressed + + + aab + application/x-authorware-bin + + + aac + audio/x-aac + + + aam + application/x-authorware-map + + + aas + application/x-authorware-seg + + + abs + audio/x-mpeg + + + abw + application/x-abiword + + + ac + application/pkix-attr-cert + + + acc + application/vnd.americandynamics.acc + + + ace + application/x-ace-compressed + + + acu + application/vnd.acucobol + + + acutc + application/vnd.acucorp + + + adp + audio/adpcm + + + aep + application/vnd.audiograph + + + afm + application/x-font-type1 + + + afp + application/vnd.ibm.modcap + + + ahead + application/vnd.ahead.space + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + air + application/vnd.adobe.air-application-installer-package+zip + + + ait + application/vnd.dvb.ait + + + ami + application/vnd.amiga.ami + + + anx + application/annodex + + + apk + application/vnd.android.package-archive + + + application + application/x-ms-application + + + apr + application/vnd.lotus-approach + + + art + image/x-jg + + + asc + application/pgp-signature + + + asf + video/x-ms-asf + + + asm + text/x-asm + + + aso + application/vnd.accpac.simply.aso + + + asx + video/x-ms-asf + + + atc + application/vnd.acucorp + + + atom + application/atom+xml + + + atomcat + application/atomcat+xml + + + atomsvc + application/atomsvc+xml + + + atx + application/vnd.antix.game-component + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + aw + application/applixware + + + axa + audio/annodex + + + axv + video/annodex + + + azf + application/vnd.airzip.filesecure.azf + + + azs + application/vnd.airzip.filesecure.azs + + + azw + application/vnd.amazon.ebook + + + bat + application/x-msdownload + + + bcpio + application/x-bcpio + + + bdf + application/x-font-bdf + + + bdm + application/vnd.syncml.dm+wbxml + + + bed + application/vnd.realvnc.bed + + + bh2 + application/vnd.fujitsu.oasysprs + + + bin + application/octet-stream + + + bmi + application/vnd.bmi + + + bmp + image/bmp + + + body + text/html + + + book + application/vnd.framemaker + + + box + application/vnd.previewsystems.box + + + boz + application/x-bzip2 + + + bpk + application/octet-stream + + + btif + image/prs.btif + + + bz + application/x-bzip + + + bz2 + application/x-bzip2 + + + c + text/x-c + + + c11amc + application/vnd.cluetrust.cartomobile-config + + + c11amz + application/vnd.cluetrust.cartomobile-config-pkg + + + c4d + application/vnd.clonk.c4group + + + c4f + application/vnd.clonk.c4group + + + c4g + application/vnd.clonk.c4group + + + c4p + application/vnd.clonk.c4group + + + c4u + application/vnd.clonk.c4group + + + cab + application/vnd.ms-cab-compressed + + + cap + application/vnd.tcpdump.pcap + + + car + application/vnd.curl.car + + + cat + application/vnd.ms-pki.seccat + + + cc + text/x-c + + + cct + application/x-director + + + ccxml + application/ccxml+xml + + + cdbcmsg + application/vnd.contact.cmsg + + + cdf + application/x-cdf + + + cdkey + application/vnd.mediastation.cdkey + + + cdmia + application/cdmi-capability + + + cdmic + application/cdmi-container + + + cdmid + application/cdmi-domain + + + cdmio + application/cdmi-object + + + cdmiq + application/cdmi-queue + + + cdx + chemical/x-cdx + + + cdxml + application/vnd.chemdraw+xml + + + cdy + application/vnd.cinderella + + + cer + application/pkix-cert + + + cgm + image/cgm + + + chat + application/x-chat + + + chm + application/vnd.ms-htmlhelp + + + chrt + application/vnd.kde.kchart + + + cif + chemical/x-cif + + + cii + application/vnd.anser-web-certificate-issue-initiation + + + cil + application/vnd.ms-artgalry + + + cla + application/vnd.claymore + + + class + application/java + + + clkk + application/vnd.crick.clicker.keyboard + + + clkp + application/vnd.crick.clicker.palette + + + clkt + application/vnd.crick.clicker.template + + + clkw + application/vnd.crick.clicker.wordbank + + + clkx + application/vnd.crick.clicker + + + clp + application/x-msclip + + + cmc + application/vnd.cosmocaller + + + cmdf + chemical/x-cmdf + + + cml + chemical/x-cml + + + cmp + application/vnd.yellowriver-custom-menu + + + cmx + image/x-cmx + + + cod + application/vnd.rim.cod + + + com + application/x-msdownload + + + conf + text/plain + + + cpio + application/x-cpio + + + cpp + text/x-c + + + cpt + application/mac-compactpro + + + crd + application/x-mscardfile + + + crl + application/pkix-crl + + + crt + application/x-x509-ca-cert + + + cryptonote + application/vnd.rig.cryptonote + + + csh + application/x-csh + + + csml + chemical/x-csml + + + csp + application/vnd.commonspace + + + css + text/css + + + cst + application/x-director + + + csv + text/csv + + + cu + application/cu-seeme + + + curl + text/vnd.curl + + + cww + application/prs.cww + + + cxt + application/x-director + + + cxx + text/x-c + + + dae + model/vnd.collada+xml + + + daf + application/vnd.mobius.daf + + + dataless + application/vnd.fdsn.seed + + + davmount + application/davmount+xml + + + dcr + application/x-director + + + dcurl + text/vnd.curl.dcurl + + + dd2 + application/vnd.oma.dd2+xml + + + ddd + application/vnd.fujixerox.ddd + + + deb + application/x-debian-package + + + def + text/plain + + + deploy + application/octet-stream + + + der + application/x-x509-ca-cert + + + dfac + application/vnd.dreamfactory + + + dib + image/bmp + + + dic + text/x-c + + + dir + application/x-director + + + dis + application/vnd.mobius.dis + + + dist + application/octet-stream + + + distz + application/octet-stream + + + djv + image/vnd.djvu + + + djvu + image/vnd.djvu + + + dll + application/x-msdownload + + + dmg + application/octet-stream + + + dmp + application/vnd.tcpdump.pcap + + + dms + application/octet-stream + + + dna + application/vnd.dna + + + doc + application/msword + + + docm + application/vnd.ms-word.document.macroenabled.12 + + + docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document + + + dot + application/msword + + + dotm + application/vnd.ms-word.template.macroenabled.12 + + + dotx + application/vnd.openxmlformats-officedocument.wordprocessingml.template + + + dp + application/vnd.osgi.dp + + + dpg + application/vnd.dpgraph + + + dra + audio/vnd.dra + + + dsc + text/prs.lines.tag + + + dssc + application/dssc+der + + + dtb + application/x-dtbook+xml + + + dtd + application/xml-dtd + + + dts + audio/vnd.dts + + + dtshd + audio/vnd.dts.hd + + + dump + application/octet-stream + + + dv + video/x-dv + + + dvb + video/vnd.dvb.file + + + dvi + application/x-dvi + + + dwf + model/vnd.dwf + + + dwg + image/vnd.dwg + + + dxf + image/vnd.dxf + + + dxp + application/vnd.spotfire.dxp + + + dxr + application/x-director + + + ecelp4800 + audio/vnd.nuera.ecelp4800 + + + ecelp7470 + audio/vnd.nuera.ecelp7470 + + + ecelp9600 + audio/vnd.nuera.ecelp9600 + + + ecma + application/ecmascript + + + edm + application/vnd.novadigm.edm + + + edx + application/vnd.novadigm.edx + + + efif + application/vnd.picsel + + + ei6 + application/vnd.pg.osasli + + + elc + application/octet-stream + + + eml + message/rfc822 + + + emma + application/emma+xml + + + eol + audio/vnd.digital-winds + + + eot + application/vnd.ms-fontobject + + + eps + application/postscript + + + epub + application/epub+zip + + + es3 + application/vnd.eszigno3+xml + + + esf + application/vnd.epson.esf + + + et3 + application/vnd.eszigno3+xml + + + etx + text/x-setext + + + exe + application/octet-stream + + + exi + application/exi + + + ext + application/vnd.novadigm.ext + + + ez + application/andrew-inset + + + ez2 + application/vnd.ezpix-album + + + ez3 + application/vnd.ezpix-package + + + f + text/x-fortran + + + f4v + video/x-f4v + + + f77 + text/x-fortran + + + f90 + text/x-fortran + + + fbs + image/vnd.fastbidsheet + + + fcs + application/vnd.isac.fcs + + + fdf + application/vnd.fdf + + + fe_launch + application/vnd.denovo.fcselayout-link + + + fg5 + application/vnd.fujitsu.oasysgp + + + fgd + application/x-director + + + fh + image/x-freehand + + + fh4 + image/x-freehand + + + fh5 + image/x-freehand + + + fh7 + image/x-freehand + + + fhc + image/x-freehand + + + fig + application/x-xfig + + + flac + audio/flac + + + fli + video/x-fli + + + flo + application/vnd.micrografx.flo + + + flv + video/x-flv + + + flw + application/vnd.kde.kivio + + + flx + text/vnd.fmi.flexstor + + + fly + text/vnd.fly + + + fm + application/vnd.framemaker + + + fnc + application/vnd.frogans.fnc + + + for + text/x-fortran + + + fpx + image/vnd.fpx + + + frame + application/vnd.framemaker + + + fsc + application/vnd.fsc.weblaunch + + + fst + image/vnd.fst + + + ftc + application/vnd.fluxtime.clip + + + fti + application/vnd.anser-web-funds-transfer-initiation + + + fvt + video/vnd.fvt + + + fxp + application/vnd.adobe.fxp + + + fxpl + application/vnd.adobe.fxp + + + fzs + application/vnd.fuzzysheet + + + g2w + application/vnd.geoplan + + + g3 + image/g3fax + + + g3w + application/vnd.geospace + + + gac + application/vnd.groove-account + + + gbr + application/rpki-ghostbusters + + + gdl + model/vnd.gdl + + + geo + application/vnd.dynageo + + + gex + application/vnd.geometry-explorer + + + ggb + application/vnd.geogebra.file + + + ggt + application/vnd.geogebra.tool + + + ghf + application/vnd.groove-help + + + gif + image/gif + + + gim + application/vnd.groove-identity-message + + + gmx + application/vnd.gmx + + + gnumeric + application/x-gnumeric + + + gph + application/vnd.flographit + + + gqf + application/vnd.grafeq + + + gqs + application/vnd.grafeq + + + gram + application/srgs + + + gre + application/vnd.geometry-explorer + + + grv + application/vnd.groove-injector + + + grxml + application/srgs+xml + + + gsf + application/x-font-ghostscript + + + gtar + application/x-gtar + + + gtm + application/vnd.groove-tool-message + + + gtw + model/vnd.gtw + + + gv + text/vnd.graphviz + + + gxt + application/vnd.geonext + + + gz + application/x-gzip + + + h + text/x-c + + + h261 + video/h261 + + + h263 + video/h263 + + + h264 + video/h264 + + + hal + application/vnd.hal+xml + + + hbci + application/vnd.hbci + + + hdf + application/x-hdf + + + hh + text/x-c + + + hlp + application/winhlp + + + hpgl + application/vnd.hp-hpgl + + + hpid + application/vnd.hp-hpid + + + hps + application/vnd.hp-hps + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htke + application/vnd.kenameaapp + + + htm + text/html + + + html + text/html + + + hvd + application/vnd.yamaha.hv-dic + + + hvp + application/vnd.yamaha.hv-voice + + + hvs + application/vnd.yamaha.hv-script + + + i2g + application/vnd.intergeo + + + icc + application/vnd.iccprofile + + + ice + x-conference/x-cooltalk + + + icm + application/vnd.iccprofile + + + ico + image/x-icon + + + ics + text/calendar + + + ief + image/ief + + + ifb + text/calendar + + + ifm + application/vnd.shana.informed.formdata + + + iges + model/iges + + + igl + application/vnd.igloader + + + igm + application/vnd.insors.igm + + + igs + model/iges + + + igx + application/vnd.micrografx.igx + + + iif + application/vnd.shana.informed.interchange + + + imp + application/vnd.accpac.simply.imp + + + ims + application/vnd.ms-ims + + + in + text/plain + + + ink + application/inkml+xml + + + inkml + application/inkml+xml + + + iota + application/vnd.astraea-software.iota + + + ipfix + application/ipfix + + + ipk + application/vnd.shana.informed.package + + + irm + application/vnd.ibm.rights-management + + + irp + application/vnd.irepository.package+xml + + + iso + application/octet-stream + + + itp + application/vnd.shana.informed.formtemplate + + + ivp + application/vnd.immervision-ivp + + + ivu + application/vnd.immervision-ivu + + + jad + text/vnd.sun.j2me.app-descriptor + + + jam + application/vnd.jam + + + jar + application/java-archive + + + java + text/x-java-source + + + jisp + application/vnd.jisp + + + jlt + application/vnd.hp-jlyt + + + jnlp + application/x-java-jnlp-file + + + joda + application/vnd.joost.joda-archive + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + jpgm + video/jpm + + + jpgv + video/jpeg + + + jpm + video/jpm + + + js + application/javascript + + + jsf + text/plain + + + json + application/json + + + jspf + text/plain + + + kar + audio/midi + + + karbon + application/vnd.kde.karbon + + + kfo + application/vnd.kde.kformula + + + kia + application/vnd.kidspiration + + + kml + application/vnd.google-earth.kml+xml + + + kmz + application/vnd.google-earth.kmz + + + kne + application/vnd.kinar + + + knp + application/vnd.kinar + + + kon + application/vnd.kde.kontour + + + kpr + application/vnd.kde.kpresenter + + + kpt + application/vnd.kde.kpresenter + + + ksp + application/vnd.kde.kspread + + + ktr + application/vnd.kahootz + + + ktx + image/ktx + + + ktz + application/vnd.kahootz + + + kwd + application/vnd.kde.kword + + + kwt + application/vnd.kde.kword + + + lasxml + application/vnd.las.las+xml + + + latex + application/x-latex + + + lbd + application/vnd.llamagraphics.life-balance.desktop + + + lbe + application/vnd.llamagraphics.life-balance.exchange+xml + + + les + application/vnd.hhe.lesson-player + + + lha + application/octet-stream + + + link66 + application/vnd.route66.link66+xml + + + list + text/plain + + + list3820 + application/vnd.ibm.modcap + + + listafp + application/vnd.ibm.modcap + + + log + text/plain + + + lostxml + application/lost+xml + + + lrf + application/octet-stream + + + lrm + application/vnd.ms-lrm + + + ltf + application/vnd.frogans.ltf + + + lvp + audio/vnd.lucent.voice + + + lwp + application/vnd.lotus-wordpro + + + lzh + application/octet-stream + + + m13 + application/x-msmediaview + + + m14 + application/x-msmediaview + + + m1v + video/mpeg + + + m21 + application/mp21 + + + m2a + audio/mpeg + + + m2v + video/mpeg + + + m3a + audio/mpeg + + + m3u + audio/x-mpegurl + + + m3u8 + application/vnd.apple.mpegurl + + + m4a + audio/mp4 + + + m4b + audio/mp4 + + + m4r + audio/mp4 + + + m4u + video/vnd.mpegurl + + + m4v + video/mp4 + + + ma + application/mathematica + + + mac + image/x-macpaint + + + mads + application/mads+xml + + + mag + application/vnd.ecowin.chart + + + maker + application/vnd.framemaker + + + man + text/troff + + + mathml + application/mathml+xml + + + mb + application/mathematica + + + mbk + application/vnd.mobius.mbk + + + mbox + application/mbox + + + mc1 + application/vnd.medcalcdata + + + mcd + application/vnd.mcd + + + mcurl + text/vnd.curl.mcurl + + + mdb + application/x-msaccess + + + mdi + image/vnd.ms-modi + + + me + text/troff + + + mesh + model/mesh + + + meta4 + application/metalink4+xml + + + mets + application/mets+xml + + + mfm + application/vnd.mfmp + + + mft + application/rpki-manifest + + + mgp + application/vnd.osgeo.mapguide.package + + + mgz + application/vnd.proteus.magazine + + + mid + audio/midi + + + midi + audio/midi + + + mif + application/x-mif + + + mime + message/rfc822 + + + mj2 + video/mj2 + + + mjp2 + video/mj2 + + + mlp + application/vnd.dolby.mlp + + + mmd + application/vnd.chipnuts.karaoke-mmd + + + mmf + application/vnd.smaf + + + mmr + image/vnd.fujixerox.edmics-mmr + + + mny + application/x-msmoney + + + mobi + application/x-mobipocket-ebook + + + mods + application/mods+xml + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/mpeg + + + mp2 + audio/mpeg + + + mp21 + application/mp21 + + + mp2a + audio/mpeg + + + mp3 + audio/mpeg + + + mp4 + video/mp4 + + + mp4a + audio/mp4 + + + mp4s + application/mp4 + + + mp4v + video/mp4 + + + mpa + audio/mpeg + + + mpc + application/vnd.mophun.certificate + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpg4 + video/mp4 + + + mpga + audio/mpeg + + + mpkg + application/vnd.apple.installer+xml + + + mpm + application/vnd.blueice.multipass + + + mpn + application/vnd.mophun.application + + + mpp + application/vnd.ms-project + + + mpt + application/vnd.ms-project + + + mpv2 + video/mpeg2 + + + mpy + application/vnd.ibm.minipay + + + mqy + application/vnd.mobius.mqy + + + mrc + application/marc + + + mrcx + application/marcxml+xml + + + ms + text/troff + + + mscml + application/mediaservercontrol+xml + + + mseed + application/vnd.fdsn.mseed + + + mseq + application/vnd.mseq + + + msf + application/vnd.epson.msf + + + msh + model/mesh + + + msi + application/x-msdownload + + + msl + application/vnd.mobius.msl + + + msty + application/vnd.muvee.style + + + mts + model/vnd.mts + + + mus + application/vnd.musician + + + musicxml + application/vnd.recordare.musicxml+xml + + + mvb + application/x-msmediaview + + + mwf + application/vnd.mfer + + + mxf + application/mxf + + + mxl + application/vnd.recordare.musicxml + + + mxml + application/xv+xml + + + mxs + application/vnd.triscape.mxs + + + mxu + video/vnd.mpegurl + + + n-gage + application/vnd.nokia.n-gage.symbian.install + + + n3 + text/n3 + + + nb + application/mathematica + + + nbp + application/vnd.wolfram.player + + + nc + application/x-netcdf + + + ncx + application/x-dtbncx+xml + + + ngdat + application/vnd.nokia.n-gage.data + + + nlu + application/vnd.neurolanguage.nlu + + + nml + application/vnd.enliven + + + nnd + application/vnd.noblenet-directory + + + nns + application/vnd.noblenet-sealer + + + nnw + application/vnd.noblenet-web + + + npx + image/vnd.net-fpx + + + nsf + application/vnd.lotus-notes + + + oa2 + application/vnd.fujitsu.oasys2 + + + oa3 + application/vnd.fujitsu.oasys3 + + + oas + application/vnd.fujitsu.oasys + + + obd + application/x-msbinder + + + oda + application/oda + + + + odb + application/vnd.oasis.opendocument.database + + + + odc + application/vnd.oasis.opendocument.chart + + + + odf + application/vnd.oasis.opendocument.formula + + + odft + application/vnd.oasis.opendocument.formula-template + + + + odg + application/vnd.oasis.opendocument.graphics + + + + odi + application/vnd.oasis.opendocument.image + + + + odm + application/vnd.oasis.opendocument.text-master + + + + odp + application/vnd.oasis.opendocument.presentation + + + + ods + application/vnd.oasis.opendocument.spreadsheet + + + + odt + application/vnd.oasis.opendocument.text + + + oga + audio/ogg + + + ogg + audio/ogg + + + ogv + video/ogg + + + + ogx + application/ogg + + + onepkg + application/onenote + + + onetmp + application/onenote + + + onetoc + application/onenote + + + onetoc2 + application/onenote + + + opf + application/oebps-package+xml + + + oprc + application/vnd.palm + + + org + application/vnd.lotus-organizer + + + osf + application/vnd.yamaha.openscoreformat + + + osfpvg + application/vnd.yamaha.openscoreformat.osfpvg+xml + + + otc + application/vnd.oasis.opendocument.chart-template + + + otf + application/x-font-otf + + + + otg + application/vnd.oasis.opendocument.graphics-template + + + + oth + application/vnd.oasis.opendocument.text-web + + + oti + application/vnd.oasis.opendocument.image-template + + + + otp + application/vnd.oasis.opendocument.presentation-template + + + + ots + application/vnd.oasis.opendocument.spreadsheet-template + + + + ott + application/vnd.oasis.opendocument.text-template + + + oxps + application/oxps + + + oxt + application/vnd.openofficeorg.extension + + + p + text/x-pascal + + + p10 + application/pkcs10 + + + p12 + application/x-pkcs12 + + + p7b + application/x-pkcs7-certificates + + + p7c + application/pkcs7-mime + + + p7m + application/pkcs7-mime + + + p7r + application/x-pkcs7-certreqresp + + + p7s + application/pkcs7-signature + + + p8 + application/pkcs8 + + + pas + text/x-pascal + + + paw + application/vnd.pawaafile + + + pbd + application/vnd.powerbuilder6 + + + pbm + image/x-portable-bitmap + + + pcap + application/vnd.tcpdump.pcap + + + pcf + application/x-font-pcf + + + pcl + application/vnd.hp-pcl + + + pclxl + application/vnd.hp-pclxl + + + pct + image/pict + + + pcurl + application/vnd.curl.pcurl + + + pcx + image/x-pcx + + + pdb + application/vnd.palm + + + pdf + application/pdf + + + pfa + application/x-font-type1 + + + pfb + application/x-font-type1 + + + pfm + application/x-font-type1 + + + pfr + application/font-tdpfr + + + pfx + application/x-pkcs12 + + + pgm + image/x-portable-graymap + + + pgn + application/x-chess-pgn + + + pgp + application/pgp-encrypted + + + pic + image/pict + + + pict + image/pict + + + pkg + application/octet-stream + + + pki + application/pkixcmp + + + pkipath + application/pkix-pkipath + + + plb + application/vnd.3gpp.pic-bw-large + + + plc + application/vnd.mobius.plc + + + plf + application/vnd.pocketlearn + + + pls + audio/x-scpls + + + pml + application/vnd.ctc-posml + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + portpkg + application/vnd.macports.portpkg + + + pot + application/vnd.ms-powerpoint + + + potm + application/vnd.ms-powerpoint.template.macroenabled.12 + + + potx + application/vnd.openxmlformats-officedocument.presentationml.template + + + ppam + application/vnd.ms-powerpoint.addin.macroenabled.12 + + + ppd + application/vnd.cups-ppd + + + ppm + image/x-portable-pixmap + + + pps + application/vnd.ms-powerpoint + + + ppsm + application/vnd.ms-powerpoint.slideshow.macroenabled.12 + + + ppsx + application/vnd.openxmlformats-officedocument.presentationml.slideshow + + + ppt + application/vnd.ms-powerpoint + + + pptm + application/vnd.ms-powerpoint.presentation.macroenabled.12 + + + pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation + + + pqa + application/vnd.palm + + + prc + application/x-mobipocket-ebook + + + pre + application/vnd.lotus-freelance + + + prf + application/pics-rules + + + ps + application/postscript + + + psb + application/vnd.3gpp.pic-bw-small + + + psd + image/vnd.adobe.photoshop + + + psf + application/x-font-linux-psf + + + pskcxml + application/pskc+xml + + + ptid + application/vnd.pvi.ptid1 + + + pub + application/x-mspublisher + + + pvb + application/vnd.3gpp.pic-bw-var + + + pwn + application/vnd.3m.post-it-notes + + + pya + audio/vnd.ms-playready.media.pya + + + pyv + video/vnd.ms-playready.media.pyv + + + qam + application/vnd.epson.quickanime + + + qbo + application/vnd.intu.qbo + + + qfx + application/vnd.intu.qfx + + + qps + application/vnd.publishare-delta-tree + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + qwd + application/vnd.quark.quarkxpress + + + qwt + application/vnd.quark.quarkxpress + + + qxb + application/vnd.quark.quarkxpress + + + qxd + application/vnd.quark.quarkxpress + + + qxl + application/vnd.quark.quarkxpress + + + qxt + application/vnd.quark.quarkxpress + + + ra + audio/x-pn-realaudio + + + ram + audio/x-pn-realaudio + + + rar + application/x-rar-compressed + + + ras + image/x-cmu-raster + + + rcprofile + application/vnd.ipunplugged.rcprofile + + + rdf + application/rdf+xml + + + rdz + application/vnd.data-vision.rdz + + + rep + application/vnd.businessobjects + + + res + application/x-dtbresource+xml + + + rgb + image/x-rgb + + + rif + application/reginfo+xml + + + rip + audio/vnd.rip + + + rl + application/resource-lists+xml + + + rlc + image/vnd.fujixerox.edmics-rlc + + + rld + application/resource-lists-diff+xml + + + rm + application/vnd.rn-realmedia + + + rmi + audio/midi + + + rmp + audio/x-pn-realaudio-plugin + + + rms + application/vnd.jcp.javame.midlet-rms + + + rnc + application/relax-ng-compact-syntax + + + roa + application/rpki-roa + + + roff + text/troff + + + rp9 + application/vnd.cloanto.rp9 + + + rpss + application/vnd.nokia.radio-presets + + + rpst + application/vnd.nokia.radio-preset + + + rq + application/sparql-query + + + rs + application/rls-services+xml + + + rsd + application/rsd+xml + + + rss + application/rss+xml + + + rtf + application/rtf + + + rtx + text/richtext + + + s + text/x-asm + + + saf + application/vnd.yamaha.smaf-audio + + + sbml + application/sbml+xml + + + sc + application/vnd.ibm.secure-container + + + scd + application/x-msschedule + + + scm + application/vnd.lotus-screencam + + + scq + application/scvp-cv-request + + + scs + application/scvp-cv-response + + + scurl + text/vnd.curl.scurl + + + sda + application/vnd.stardivision.draw + + + sdc + application/vnd.stardivision.calc + + + sdd + application/vnd.stardivision.impress + + + sdkd + application/vnd.solent.sdkm+xml + + + sdkm + application/vnd.solent.sdkm+xml + + + sdp + application/sdp + + + sdw + application/vnd.stardivision.writer + + + see + application/vnd.seemail + + + seed + application/vnd.fdsn.seed + + + sema + application/vnd.sema + + + semd + application/vnd.semd + + + semf + application/vnd.semf + + + ser + application/java-serialized-object + + + setpay + application/set-payment-initiation + + + setreg + application/set-registration-initiation + + + sfd-hdstx + application/vnd.hydrostatix.sof-data + + + sfs + application/vnd.spotfire.sfs + + + sgl + application/vnd.stardivision.writer-global + + + sgm + text/sgml + + + sgml + text/sgml + + + sh + application/x-sh + + + shar + application/x-shar + + + shf + application/shf+xml + + + + sig + application/pgp-signature + + + silo + model/mesh + + + sis + application/vnd.symbian.install + + + sisx + application/vnd.symbian.install + + + sit + application/x-stuffit + + + sitx + application/x-stuffitx + + + skd + application/vnd.koan + + + skm + application/vnd.koan + + + skp + application/vnd.koan + + + skt + application/vnd.koan + + + sldm + application/vnd.ms-powerpoint.slide.macroenabled.12 + + + sldx + application/vnd.openxmlformats-officedocument.presentationml.slide + + + slt + application/vnd.epson.salt + + + sm + application/vnd.stepmania.stepchart + + + smf + application/vnd.stardivision.math + + + smi + application/smil+xml + + + smil + application/smil+xml + + + smzip + application/vnd.stepmania.package + + + snd + audio/basic + + + snf + application/x-font-snf + + + so + application/octet-stream + + + spc + application/x-pkcs7-certificates + + + spf + application/vnd.yamaha.smaf-phrase + + + spl + application/x-futuresplash + + + spot + text/vnd.in3d.spot + + + spp + application/scvp-vp-response + + + spq + application/scvp-vp-request + + + spx + audio/ogg + + + src + application/x-wais-source + + + sru + application/sru+xml + + + srx + application/sparql-results+xml + + + sse + application/vnd.kodak-descriptor + + + ssf + application/vnd.epson.ssf + + + ssml + application/ssml+xml + + + st + application/vnd.sailingtracker.track + + + stc + application/vnd.sun.xml.calc.template + + + std + application/vnd.sun.xml.draw.template + + + stf + application/vnd.wt.stf + + + sti + application/vnd.sun.xml.impress.template + + + stk + application/hyperstudio + + + stl + application/vnd.ms-pki.stl + + + str + application/vnd.pg.format + + + stw + application/vnd.sun.xml.writer.template + + + sub + text/vnd.dvb.subtitle + + + sus + application/vnd.sus-calendar + + + susp + application/vnd.sus-calendar + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + svc + application/vnd.dvb.service + + + svd + application/vnd.svd + + + svg + image/svg+xml + + + svgz + image/svg+xml + + + swa + application/x-director + + + swf + application/x-shockwave-flash + + + swi + application/vnd.aristanetworks.swi + + + sxc + application/vnd.sun.xml.calc + + + sxd + application/vnd.sun.xml.draw + + + sxg + application/vnd.sun.xml.writer.global + + + sxi + application/vnd.sun.xml.impress + + + sxm + application/vnd.sun.xml.math + + + sxw + application/vnd.sun.xml.writer + + + t + text/troff + + + taglet + application/vnd.mynfc + + + tao + application/vnd.tao.intent-module-archive + + + tar + application/x-tar + + + tcap + application/vnd.3gpp2.tcap + + + tcl + application/x-tcl + + + teacher + application/vnd.smart.teacher + + + tei + application/tei+xml + + + teicorpus + application/tei+xml + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + text + text/plain + + + tfi + application/thraud+xml + + + tfm + application/x-tex-tfm + + + thmx + application/vnd.ms-officetheme + + + tif + image/tiff + + + tiff + image/tiff + + + tmo + application/vnd.tmobile-livetv + + + torrent + application/x-bittorrent + + + tpl + application/vnd.groove-tool-template + + + tpt + application/vnd.trid.tpt + + + tr + text/troff + + + tra + application/vnd.trueapp + + + trm + application/x-msterminal + + + tsd + application/timestamped-data + + + tsv + text/tab-separated-values + + + ttc + application/x-font-ttf + + + ttf + application/x-font-ttf + + + ttl + text/turtle + + + twd + application/vnd.simtech-mindmapper + + + twds + application/vnd.simtech-mindmapper + + + txd + application/vnd.genomatix.tuxedo + + + txf + application/vnd.mobius.txf + + + txt + text/plain + + + u32 + application/x-authorware-bin + + + udeb + application/x-debian-package + + + ufd + application/vnd.ufdl + + + ufdl + application/vnd.ufdl + + + ulw + audio/basic + + + umj + application/vnd.umajin + + + unityweb + application/vnd.unity + + + uoml + application/vnd.uoml+xml + + + uri + text/uri-list + + + uris + text/uri-list + + + urls + text/uri-list + + + ustar + application/x-ustar + + + utz + application/vnd.uiq.theme + + + uu + text/x-uuencode + + + uva + audio/vnd.dece.audio + + + uvd + application/vnd.dece.data + + + uvf + application/vnd.dece.data + + + uvg + image/vnd.dece.graphic + + + uvh + video/vnd.dece.hd + + + uvi + image/vnd.dece.graphic + + + uvm + video/vnd.dece.mobile + + + uvp + video/vnd.dece.pd + + + uvs + video/vnd.dece.sd + + + uvt + application/vnd.dece.ttml+xml + + + uvu + video/vnd.uvvu.mp4 + + + uvv + video/vnd.dece.video + + + uvva + audio/vnd.dece.audio + + + uvvd + application/vnd.dece.data + + + uvvf + application/vnd.dece.data + + + uvvg + image/vnd.dece.graphic + + + uvvh + video/vnd.dece.hd + + + uvvi + image/vnd.dece.graphic + + + uvvm + video/vnd.dece.mobile + + + uvvp + video/vnd.dece.pd + + + uvvs + video/vnd.dece.sd + + + uvvt + application/vnd.dece.ttml+xml + + + uvvu + video/vnd.uvvu.mp4 + + + uvvv + video/vnd.dece.video + + + uvvx + application/vnd.dece.unspecified + + + uvvz + application/vnd.dece.zip + + + uvx + application/vnd.dece.unspecified + + + uvz + application/vnd.dece.zip + + + vcard + text/vcard + + + vcd + application/x-cdlink + + + vcf + text/x-vcard + + + vcg + application/vnd.groove-vcard + + + vcs + text/x-vcalendar + + + vcx + application/vnd.vcx + + + vis + application/vnd.visionary + + + viv + video/vnd.vivo + + + vor + application/vnd.stardivision.writer + + + vox + application/x-authorware-bin + + + vrml + model/vrml + + + vsd + application/vnd.visio + + + vsf + application/vnd.vsf + + + vss + application/vnd.visio + + + vst + application/vnd.visio + + + vsw + application/vnd.visio + + + vtu + model/vnd.vtu + + + vxml + application/voicexml+xml + + + w3d + application/x-director + + + wad + application/x-doom + + + wav + audio/x-wav + + + wax + audio/x-ms-wax + + + + wbmp + image/vnd.wap.wbmp + + + wbs + application/vnd.criticaltools.wbs+xml + + + wbxml + application/vnd.wap.wbxml + + + wcm + application/vnd.ms-works + + + wdb + application/vnd.ms-works + + + weba + audio/webm + + + webm + video/webm + + + webp + image/webp + + + wg + application/vnd.pmi.widget + + + wgt + application/widget + + + wks + application/vnd.ms-works + + + wm + video/x-ms-wm + + + wma + audio/x-ms-wma + + + wmd + application/x-ms-wmd + + + wmf + application/x-msmetafile + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlsc + application/vnd.wap.wmlscriptc + + + wmv + video/x-ms-wmv + + + wmx + video/x-ms-wmx + + + wmz + application/x-ms-wmz + + + woff + application/x-font-woff + + + wpd + application/vnd.wordperfect + + + wpl + application/vnd.ms-wpl + + + wps + application/vnd.ms-works + + + wqd + application/vnd.wqd + + + wri + application/x-mswrite + + + wrl + model/vrml + + + wsdl + application/wsdl+xml + + + wspolicy + application/wspolicy+xml + + + wtb + application/vnd.webturbo + + + wvx + video/x-ms-wvx + + + x32 + application/x-authorware-bin + + + x3d + application/vnd.hzn-3d-crossword + + + xap + application/x-silverlight-app + + + xar + application/vnd.xara + + + xbap + application/x-ms-xbap + + + xbd + application/vnd.fujixerox.docuworks.binder + + + xbm + image/x-xbitmap + + + xdf + application/xcap-diff+xml + + + xdm + application/vnd.syncml.dm+xml + + + xdp + application/vnd.adobe.xdp+xml + + + xdssc + application/dssc+xml + + + xdw + application/vnd.fujixerox.docuworks + + + xenc + application/xenc+xml + + + xer + application/patch-ops-error+xml + + + xfdf + application/vnd.adobe.xfdf + + + xfdl + application/vnd.xfdl + + + xht + application/xhtml+xml + + + xhtml + application/xhtml+xml + + + xhvml + application/xv+xml + + + xif + image/vnd.xiff + + + xla + application/vnd.ms-excel + + + xlam + application/vnd.ms-excel.addin.macroenabled.12 + + + xlc + application/vnd.ms-excel + + + xlm + application/vnd.ms-excel + + + xls + application/vnd.ms-excel + + + xlsb + application/vnd.ms-excel.sheet.binary.macroenabled.12 + + + xlsm + application/vnd.ms-excel.sheet.macroenabled.12 + + + xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + xlt + application/vnd.ms-excel + + + xltm + application/vnd.ms-excel.template.macroenabled.12 + + + xltx + application/vnd.openxmlformats-officedocument.spreadsheetml.template + + + xlw + application/vnd.ms-excel + + + xml + application/xml + + + xo + application/vnd.olpc-sugar + + + xop + application/xop+xml + + + xpi + application/x-xpinstall + + + xpm + image/x-xpixmap + + + xpr + application/vnd.is-xpr + + + xps + application/vnd.ms-xpsdocument + + + xpw + application/vnd.intercon.formnet + + + xpx + application/vnd.intercon.formnet + + + xsl + application/xml + + + xslt + application/xslt+xml + + + xsm + application/vnd.syncml+xml + + + xspf + application/xspf+xml + + + xul + application/vnd.mozilla.xul+xml + + + xvm + application/xv+xml + + + xvml + application/xv+xml + + + xwd + image/x-xwindowdump + + + xyz + chemical/x-xyz + + + yang + application/yang + + + yin + application/yin+xml + + + z + application/x-compress + + + Z + application/x-compress + + + zaz + application/vnd.zzazz.deck+xml + + + zip + application/zip + + + zir + application/vnd.zul + + + zirz + application/vnd.zul + + + zmm + application/vnd.handheld-entertainment+xml + + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + diff --git a/target/tomcat/logs/access_log.2019-04-17 b/target/tomcat/logs/access_log.2019-04-17 new file mode 100644 index 00000000..b066f6a7 --- /dev/null +++ b/target/tomcat/logs/access_log.2019-04-17 @@ -0,0 +1,4 @@ +0:0:0:0:0:0:0:1 - - [17/Apr/2019:10:40:50 +0100] "GET /books/admin HTTP/1.1" 200 1722 http-bio-8065-exec-1 563 +0:0:0:0:0:0:0:1 - - [17/Apr/2019:10:40:52 +0100] "GET /books/edit?id=5 HTTP/1.1" 200 945 http-bio-8065-exec-3 68 +0:0:0:0:0:0:0:1 - - [17/Apr/2019:10:40:58 +0100] "POST /books/update HTTP/1.1" 302 - http-bio-8065-exec-4 12 +0:0:0:0:0:0:0:1 - - [17/Apr/2019:10:40:58 +0100] "GET /books/list HTTP/1.1" 200 1662 http-bio-8065-exec-5 69 diff --git a/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookAdmin_jsp.class b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookAdmin_jsp.class new file mode 100644 index 00000000..bd91d8c0 Binary files /dev/null and b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookAdmin_jsp.class differ diff --git a/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookAdmin_jsp.java b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookAdmin_jsp.java new file mode 100644 index 00000000..43749eab --- /dev/null +++ b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookAdmin_jsp.java @@ -0,0 +1,240 @@ +/* + * Generated by the Jasper component of Apache Tomcat + * Version: Apache Tomcat/7.0.47 + * Generated at: 2019-04-17 09:40:49 UTC + * Note: The last modified time of this file was set to + * the last modified time of the source file after + * generation to assist with modification tracking. + */ +package org.apache.jsp; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.jsp.*; + +public final class BookAdmin_jsp extends org.apache.jasper.runtime.HttpJspBase + implements org.apache.jasper.runtime.JspSourceDependent { + + private static final javax.servlet.jsp.JspFactory _jspxFactory = + javax.servlet.jsp.JspFactory.getDefaultFactory(); + + private static java.util.Map _jspx_dependants; + + private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems; + private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody; + private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody; + + private javax.el.ExpressionFactory _el_expressionfactory; + private org.apache.tomcat.InstanceManager _jsp_instancemanager; + + public java.util.Map getDependants() { + return _jspx_dependants; + } + + public void _jspInit() { + _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); + _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); + _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); + _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); + } + + public void _jspDestroy() { + _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.release(); + _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody.release(); + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.release(); + } + + public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) + throws java.io.IOException, javax.servlet.ServletException { + + final javax.servlet.jsp.PageContext pageContext; + javax.servlet.http.HttpSession session = null; + final javax.servlet.ServletContext application; + final javax.servlet.ServletConfig config; + javax.servlet.jsp.JspWriter out = null; + final java.lang.Object page = this; + javax.servlet.jsp.JspWriter _jspx_out = null; + javax.servlet.jsp.PageContext _jspx_page_context = null; + + + try { + response.setContentType("text/html; charset=UTF-8"); + pageContext = _jspxFactory.getPageContext(this, request, response, + null, true, 8192, true); + _jspx_page_context = pageContext; + application = pageContext.getServletContext(); + config = pageContext.getServletConfig(); + session = pageContext.getSession(); + out = pageContext.getOut(); + _jspx_out = out; + + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write(" Book Store\r\n"); + out.write(" \r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\t
      \r\n"); + out.write("\t
    • Book Listing
    • \r\n"); + out.write("
    • Admin
    • \r\n"); + out.write("\t
    \r\n"); + out.write("\r\n"); + out.write("
    \r\n"); + out.write("\t
    \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write(" \r\n"); + out.write("\t \r\n"); + out.write("\r\n"); + out.write("\t \t\t\t "); + if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context)) + return; + out.write("\r\n"); + out.write("\t
    List of Books
    TitleAuthorPriceAdd Book
    \r\n"); + out.write("\t
    \r\n"); + out.write("
    \r\n"); + out.write("\r\n"); + out.write("\r\n"); + } catch (java.lang.Throwable t) { + if (!(t instanceof javax.servlet.jsp.SkipPageException)){ + out = _jspx_out; + if (out != null && out.getBufferSize() != 0) + try { out.clearBuffer(); } catch (java.io.IOException e) {} + if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); + else throw new ServletException(t); + } + } finally { + _jspxFactory.releasePageContext(_jspx_page_context); + } + } + + private boolean _jspx_meth_c_005fforEach_005f0(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:forEach + org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class); + _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context); + _jspx_th_c_005fforEach_005f0.setParent(null); + // /BookAdmin.jsp(30,11) name = items type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null + _jspx_th_c_005fforEach_005f0.setItems(new org.apache.jasper.el.JspValueExpression("/BookAdmin.jsp(30,11) '${books}'",_el_expressionfactory.createValueExpression(_jspx_page_context.getELContext(),"${books}",java.lang.Object.class)).getValue(_jspx_page_context.getELContext())); + // /BookAdmin.jsp(30,11) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fforEach_005f0.setVar("item"); + int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 }; + try { + int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag(); + if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { + do { + out.write("\r\n"); + out.write("\t \r\n"); + out.write("\t "); + out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ item.getTitle() }", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + out.write(" \r\n"); + out.write("\t "); + out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ item.getAuthor() }", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + out.write(" \r\n"); + out.write("\t "); + if (_jspx_meth_fmt_005fformatNumber_005f0(_jspx_th_c_005fforEach_005f0, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f0)) + return true; + out.write(" \r\n"); + out.write(" Edit\r\n"); + out.write(" Delete \r\n"); + out.write("\t \r\n"); + out.write("\t "); + int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody(); + if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) + break; + } while (true); + } + if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + return true; + } + } catch (java.lang.Throwable _jspx_exception) { + while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0) + out = _jspx_page_context.popBody(); + _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception); + } finally { + _jspx_th_c_005fforEach_005f0.doFinally(); + _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0); + } + return false; + } + + private boolean _jspx_meth_fmt_005fformatNumber_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f0, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f0) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // fmt:formatNumber + org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag _jspx_th_fmt_005fformatNumber_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag) _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag.class); + _jspx_th_fmt_005fformatNumber_005f0.setPageContext(_jspx_page_context); + _jspx_th_fmt_005fformatNumber_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f0); + // /BookAdmin.jsp(34,26) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_fmt_005fformatNumber_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ item.getPrice() }", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + // /BookAdmin.jsp(34,26) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_fmt_005fformatNumber_005f0.setType("currency"); + int _jspx_eval_fmt_005fformatNumber_005f0 = _jspx_th_fmt_005fformatNumber_005f0.doStartTag(); + if (_jspx_th_fmt_005fformatNumber_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody.reuse(_jspx_th_fmt_005fformatNumber_005f0); + return true; + } + _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody.reuse(_jspx_th_fmt_005fformatNumber_005f0); + return false; + } + + private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f0, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f0) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:out + org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class); + _jspx_th_c_005fout_005f0.setPageContext(_jspx_page_context); + _jspx_th_c_005fout_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f0); + // /BookAdmin.jsp(35,44) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fout_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ item.getId() }", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + int _jspx_eval_c_005fout_005f0 = _jspx_th_c_005fout_005f0.doStartTag(); + if (_jspx_th_c_005fout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0); + return true; + } + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0); + return false; + } + + private boolean _jspx_meth_c_005fout_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f0, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f0) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:out + org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f1 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class); + _jspx_th_c_005fout_005f1.setPageContext(_jspx_page_context); + _jspx_th_c_005fout_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f0); + // /BookAdmin.jsp(36,46) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fout_005f1.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ item.getId() }", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + int _jspx_eval_c_005fout_005f1 = _jspx_th_c_005fout_005f1.doStartTag(); + if (_jspx_th_c_005fout_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1); + return true; + } + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1); + return false; + } +} diff --git a/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookForm_jsp.class b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookForm_jsp.class new file mode 100644 index 00000000..7bbf4c37 Binary files /dev/null and b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookForm_jsp.class differ diff --git a/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookForm_jsp.java b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookForm_jsp.java new file mode 100644 index 00000000..3dfc7c89 --- /dev/null +++ b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookForm_jsp.java @@ -0,0 +1,374 @@ +/* + * Generated by the Jasper component of Apache Tomcat + * Version: Apache Tomcat/7.0.47 + * Generated at: 2019-04-17 09:40:52 UTC + * Note: The last modified time of this file was set to + * the last modified time of the source file after + * generation to assist with modification tracking. + */ +package org.apache.jsp; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.jsp.*; + +public final class BookForm_jsp extends org.apache.jasper.runtime.HttpJspBase + implements org.apache.jasper.runtime.JspSourceDependent { + + private static final javax.servlet.jsp.JspFactory _jspxFactory = + javax.servlet.jsp.JspFactory.getDefaultFactory(); + + private static java.util.Map _jspx_dependants; + + private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_0026_005ftest; + private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody; + + private javax.el.ExpressionFactory _el_expressionfactory; + private org.apache.tomcat.InstanceManager _jsp_instancemanager; + + public java.util.Map getDependants() { + return _jspx_dependants; + } + + public void _jspInit() { + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); + _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); + _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); + } + + public void _jspDestroy() { + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release(); + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.release(); + } + + public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) + throws java.io.IOException, javax.servlet.ServletException { + + final javax.servlet.jsp.PageContext pageContext; + javax.servlet.http.HttpSession session = null; + final javax.servlet.ServletContext application; + final javax.servlet.ServletConfig config; + javax.servlet.jsp.JspWriter out = null; + final java.lang.Object page = this; + javax.servlet.jsp.JspWriter _jspx_out = null; + javax.servlet.jsp.PageContext _jspx_page_context = null; + + + try { + response.setContentType("text/html; charset=UTF-8"); + pageContext = _jspxFactory.getPageContext(this, request, response, + null, true, 8192, true); + _jspx_page_context = pageContext; + application = pageContext.getServletContext(); + config = pageContext.getServletConfig(); + session = pageContext.getSession(); + out = pageContext.getOut(); + _jspx_out = out; + + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("Book Store\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\t
      \r\n"); + out.write("\t\t
    • Book Listing
    • \r\n"); + out.write("\t\t
    • Admin
    • \r\n"); + out.write("\t
    \r\n"); + out.write("\r\n"); + out.write("\t
    \r\n"); + out.write("\t\t"); + if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) + return; + out.write("\r\n"); + out.write("\t\t"); + if (_jspx_meth_c_005fif_005f1(_jspx_page_context)) + return; + out.write("\r\n"); + out.write("\r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t\t"); + if (_jspx_meth_c_005fif_005f2(_jspx_page_context)) + return; + out.write("\r\n"); + out.write("\t\t\t"); + if (_jspx_meth_c_005fif_005f3(_jspx_page_context)) + return; + out.write("\r\n"); + out.write("\t\t

    \r\n"); + out.write("\r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t\t\r\n"); + out.write("\t\t\t \r\n"); + out.write("\t\t\t"); + if (_jspx_meth_c_005fif_005f4(_jspx_page_context)) + return; + out.write("\r\n"); + out.write("\t\t\t\r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t\t \r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t\t \r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t\t\r\n"); + out.write("\t\t

    \r\n"); + out.write("\t\t\r\n"); + out.write("\t
    \r\n"); + out.write("\r\n"); + out.write("\r\n"); + } catch (java.lang.Throwable t) { + if (!(t instanceof javax.servlet.jsp.SkipPageException)){ + out = _jspx_out; + if (out != null && out.getBufferSize() != 0) + try { out.clearBuffer(); } catch (java.io.IOException e) {} + if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); + else throw new ServletException(t); + } + } finally { + _jspxFactory.releasePageContext(_jspx_page_context); + } + } + + private boolean _jspx_meth_c_005fif_005f0(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:if + org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); + _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context); + _jspx_th_c_005fif_005f0.setParent(null); + // /BookForm.jsp(18,2) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book != null}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue()); + int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag(); + if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { + do { + out.write("\r\n"); + out.write("\t\t\t
    \r\n"); + out.write("\t\t"); + int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody(); + if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) + break; + } while (true); + } + if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0); + return true; + } + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0); + return false; + } + + private boolean _jspx_meth_c_005fif_005f1(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:if + org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); + _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context); + _jspx_th_c_005fif_005f1.setParent(null); + // /BookForm.jsp(21,2) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book == null}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue()); + int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag(); + if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { + do { + out.write("\r\n"); + out.write("\t\t\t\r\n"); + out.write("\t\t"); + int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody(); + if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) + break; + } while (true); + } + if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1); + return true; + } + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1); + return false; + } + + private boolean _jspx_meth_c_005fif_005f2(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:if + org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f2 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); + _jspx_th_c_005fif_005f2.setPageContext(_jspx_page_context); + _jspx_th_c_005fif_005f2.setParent(null); + // /BookForm.jsp(26,3) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fif_005f2.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book != null}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue()); + int _jspx_eval_c_005fif_005f2 = _jspx_th_c_005fif_005f2.doStartTag(); + if (_jspx_eval_c_005fif_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { + do { + out.write("\r\n"); + out.write("\t\t\t\tEdit Book Form\r\n"); + out.write("\t\t\t"); + int evalDoAfterBody = _jspx_th_c_005fif_005f2.doAfterBody(); + if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) + break; + } while (true); + } + if (_jspx_th_c_005fif_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2); + return true; + } + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2); + return false; + } + + private boolean _jspx_meth_c_005fif_005f3(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:if + org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f3 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); + _jspx_th_c_005fif_005f3.setPageContext(_jspx_page_context); + _jspx_th_c_005fif_005f3.setParent(null); + // /BookForm.jsp(29,3) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fif_005f3.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book == null}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue()); + int _jspx_eval_c_005fif_005f3 = _jspx_th_c_005fif_005f3.doStartTag(); + if (_jspx_eval_c_005fif_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { + do { + out.write("\r\n"); + out.write("\t\t\t\tNew Book Form\r\n"); + out.write("\t\t\t"); + int evalDoAfterBody = _jspx_th_c_005fif_005f3.doAfterBody(); + if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) + break; + } while (true); + } + if (_jspx_th_c_005fif_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3); + return true; + } + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3); + return false; + } + + private boolean _jspx_meth_c_005fif_005f4(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:if + org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f4 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); + _jspx_th_c_005fif_005f4.setPageContext(_jspx_page_context); + _jspx_th_c_005fif_005f4.setParent(null); + // /BookForm.jsp(37,3) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fif_005f4.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book != null}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue()); + int _jspx_eval_c_005fif_005f4 = _jspx_th_c_005fif_005f4.doStartTag(); + if (_jspx_eval_c_005fif_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { + do { + out.write("\r\n"); + out.write("\t\t\t\t\r\n"); + out.write("\t\t\t"); + int evalDoAfterBody = _jspx_th_c_005fif_005f4.doAfterBody(); + if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) + break; + } while (true); + } + if (_jspx_th_c_005fif_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4); + return true; + } + _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4); + return false; + } + + private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f4, javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:out + org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class); + _jspx_th_c_005fout_005f0.setPageContext(_jspx_page_context); + _jspx_th_c_005fout_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f4); + // /BookForm.jsp(38,42) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fout_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.id}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + int _jspx_eval_c_005fout_005f0 = _jspx_th_c_005fout_005f0.doStartTag(); + if (_jspx_th_c_005fout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0); + return true; + } + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0); + return false; + } + + private boolean _jspx_meth_c_005fout_005f1(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:out + org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f1 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class); + _jspx_th_c_005fout_005f1.setPageContext(_jspx_page_context); + _jspx_th_c_005fout_005f1.setParent(null); + // /BookForm.jsp(40,46) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fout_005f1.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.title}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + int _jspx_eval_c_005fout_005f1 = _jspx_th_c_005fout_005f1.doStartTag(); + if (_jspx_th_c_005fout_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1); + return true; + } + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1); + return false; + } + + private boolean _jspx_meth_c_005fout_005f2(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:out + org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f2 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class); + _jspx_th_c_005fout_005f2.setPageContext(_jspx_page_context); + _jspx_th_c_005fout_005f2.setParent(null); + // /BookForm.jsp(43,70) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fout_005f2.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.author}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + int _jspx_eval_c_005fout_005f2 = _jspx_th_c_005fout_005f2.doStartTag(); + if (_jspx_th_c_005fout_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f2); + return true; + } + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f2); + return false; + } + + private boolean _jspx_meth_c_005fout_005f3(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:out + org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f3 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class); + _jspx_th_c_005fout_005f3.setPageContext(_jspx_page_context); + _jspx_th_c_005fout_005f3.setParent(null); + // /BookForm.jsp(46,68) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fout_005f3.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.price}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + int _jspx_eval_c_005fout_005f3 = _jspx_th_c_005fout_005f3.doStartTag(); + if (_jspx_th_c_005fout_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f3); + return true; + } + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f3); + return false; + } +} diff --git a/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookList_jsp.class b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookList_jsp.class new file mode 100644 index 00000000..e60426b4 Binary files /dev/null and b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookList_jsp.class differ diff --git a/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookList_jsp.java b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookList_jsp.java new file mode 100644 index 00000000..d7afee0d --- /dev/null +++ b/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/BookList_jsp.java @@ -0,0 +1,216 @@ +/* + * Generated by the Jasper component of Apache Tomcat + * Version: Apache Tomcat/7.0.47 + * Generated at: 2019-04-17 09:40:58 UTC + * Note: The last modified time of this file was set to + * the last modified time of the source file after + * generation to assist with modification tracking. + */ +package org.apache.jsp; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.jsp.*; + +public final class BookList_jsp extends org.apache.jasper.runtime.HttpJspBase + implements org.apache.jasper.runtime.JspSourceDependent { + + private static final javax.servlet.jsp.JspFactory _jspxFactory = + javax.servlet.jsp.JspFactory.getDefaultFactory(); + + private static java.util.Map _jspx_dependants; + + private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems; + private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody; + private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody; + + private javax.el.ExpressionFactory _el_expressionfactory; + private org.apache.tomcat.InstanceManager _jsp_instancemanager; + + public java.util.Map getDependants() { + return _jspx_dependants; + } + + public void _jspInit() { + _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); + _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); + _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); + _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); + } + + public void _jspDestroy() { + _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.release(); + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.release(); + _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody.release(); + } + + public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) + throws java.io.IOException, javax.servlet.ServletException { + + final javax.servlet.jsp.PageContext pageContext; + javax.servlet.http.HttpSession session = null; + final javax.servlet.ServletContext application; + final javax.servlet.ServletConfig config; + javax.servlet.jsp.JspWriter out = null; + final java.lang.Object page = this; + javax.servlet.jsp.JspWriter _jspx_out = null; + javax.servlet.jsp.PageContext _jspx_page_context = null; + + + try { + response.setContentType("text/html; charset=UTF-8"); + pageContext = _jspxFactory.getPageContext(this, request, response, + null, true, 8192, true); + _jspx_page_context = pageContext; + application = pageContext.getServletContext(); + config = pageContext.getServletConfig(); + session = pageContext.getSession(); + out = pageContext.getOut(); + _jspx_out = out; + + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write(" Book Store\r\n"); + out.write(" \r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\t
      \r\n"); + out.write("\t
    • Book Listing
    • \r\n"); + out.write("
    • Admin
    • \r\n"); + out.write("\t
    \r\n"); + out.write("\r\n"); + out.write("
    \r\n"); + out.write("\t
    \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\t \r\n"); + out.write("\r\n"); + out.write("\t \t\t\t"); + if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context)) + return; + out.write("\r\n"); + out.write("\t
    List of Books
    TitleAuthorPrice
    \r\n"); + out.write("\t
    \r\n"); + out.write("
    \r\n"); + out.write("\r\n"); + out.write("\r\n"); + } catch (java.lang.Throwable t) { + if (!(t instanceof javax.servlet.jsp.SkipPageException)){ + out = _jspx_out; + if (out != null && out.getBufferSize() != 0) + try { out.clearBuffer(); } catch (java.io.IOException e) {} + if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); + else throw new ServletException(t); + } + } finally { + _jspxFactory.releasePageContext(_jspx_page_context); + } + } + + private boolean _jspx_meth_c_005fforEach_005f0(javax.servlet.jsp.PageContext _jspx_page_context) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:forEach + org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class); + _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context); + _jspx_th_c_005fforEach_005f0.setParent(null); + // /BookList.jsp(29,5) name = items type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null + _jspx_th_c_005fforEach_005f0.setItems(new org.apache.jasper.el.JspValueExpression("/BookList.jsp(29,5) '${books}'",_el_expressionfactory.createValueExpression(_jspx_page_context.getELContext(),"${books}",java.lang.Object.class)).getValue(_jspx_page_context.getELContext())); + // /BookList.jsp(29,5) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fforEach_005f0.setVar("item"); + int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 }; + try { + int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag(); + if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { + do { + out.write("\r\n"); + out.write("\t \r\n"); + out.write(" \r\n"); + out.write("\t "); + out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ item.getTitle() }", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + out.write(" \r\n"); + out.write("\t "); + out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ item.getAuthor() }", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + out.write(" \r\n"); + out.write("\t "); + if (_jspx_meth_fmt_005fformatNumber_005f0(_jspx_th_c_005fforEach_005f0, _jspx_page_context, _jspx_push_body_count_c_005fforEach_005f0)) + return true; + out.write(" \r\n"); + out.write("\t \r\n"); + out.write("\t "); + int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody(); + if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) + break; + } while (true); + } + if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + return true; + } + } catch (java.lang.Throwable _jspx_exception) { + while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0) + out = _jspx_page_context.popBody(); + _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception); + } finally { + _jspx_th_c_005fforEach_005f0.doFinally(); + _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0); + } + return false; + } + + private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f0, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f0) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // c:out + org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class); + _jspx_th_c_005fout_005f0.setPageContext(_jspx_page_context); + _jspx_th_c_005fout_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f0); + // /BookList.jsp(31,60) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_c_005fout_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.getId()}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + int _jspx_eval_c_005fout_005f0 = _jspx_th_c_005fout_005f0.doStartTag(); + if (_jspx_th_c_005fout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0); + return true; + } + _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f0); + return false; + } + + private boolean _jspx_meth_fmt_005fformatNumber_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fforEach_005f0, javax.servlet.jsp.PageContext _jspx_page_context, int[] _jspx_push_body_count_c_005fforEach_005f0) + throws java.lang.Throwable { + javax.servlet.jsp.PageContext pageContext = _jspx_page_context; + javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut(); + // fmt:formatNumber + org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag _jspx_th_fmt_005fformatNumber_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag) _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag.class); + _jspx_th_fmt_005fformatNumber_005f0.setPageContext(_jspx_page_context); + _jspx_th_fmt_005fformatNumber_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fforEach_005f0); + // /BookList.jsp(34,26) name = value type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_fmt_005fformatNumber_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ item.getPrice() }", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)); + // /BookList.jsp(34,26) name = type type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null + _jspx_th_fmt_005fformatNumber_005f0.setType("currency"); + int _jspx_eval_fmt_005fformatNumber_005f0 = _jspx_th_fmt_005fformatNumber_005f0.doStartTag(); + if (_jspx_th_fmt_005fformatNumber_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { + _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody.reuse(_jspx_th_fmt_005fformatNumber_005f0); + return true; + } + _005fjspx_005ftagPool_005ffmt_005fformatNumber_0026_005fvalue_005ftype_005fnobody.reuse(_jspx_th_fmt_005fformatNumber_005f0); + return false; + } +}