Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated Arquillian dependencies.

  • Loading branch information...
commit 4b1da215680288fb4d6aa242d200f535b79d988a 1 parent 6654713
Samuel Santos authored
2  README.md
View
@@ -1,4 +1,4 @@
# Java EE testing code examples
* `ejb31-embeddable` - companion code to go along with the blog post http://www.samaxes.com/2011/12/javaee-testing-ejb31-embeddable/.
-* `arquillian-shrinkwrap` - companion code to go along with the blog post http://www.samaxes.com/2012/04/javaee-testing-arquillian-shrinkwrap/.
+* `arquillian-shrinkwrap` - companion code to go along with the blog post http://www.samaxes.com/2012/04/javaee-testing-introduction-arquillian-shrinkwrap/.
11 arquillian-shrinkwrap/pom.xml
View
@@ -10,7 +10,7 @@
<name>Arquillian and Shrinkwrap example</name>
<url>https://github.com/samaxes/java-ee-testing</url>
- <inceptionYear>2011</inceptionYear>
+ <inceptionYear>2012</inceptionYear>
<organization>
<name>samaxes</name>
<url>http://www.samaxes.com/</url>
@@ -122,19 +122,18 @@
<dependency>
<groupId>org.jboss.arquillian.testng</groupId>
<artifactId>arquillian-testng-container</artifactId>
- <!--version>${arquillian.version}</version-->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
- <version>6.3.1</version>
+ <version>6.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
- <version>1.0.0.Final</version>
+ <version>3.0.1.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
@@ -158,7 +157,7 @@
</profiles>
<properties>
- <arquillian.version>1.0.0.Final</arquillian.version>
+ <arquillian.version>1.0.0.CR8</arquillian.version>
<jboss.version>7.1.1.Final</jboss.version>
</properties>
-</project>
+</project>
2  arquillian-shrinkwrap/src/main/java/com/samaxes/arquillian/example/UserServlet.java
View
@@ -23,7 +23,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
response.setContentType("text/plain");
PrintWriter out = response.getWriter();
- out.println(service.addUser(new User("Second Ike")).toString());
+ out.println(service.addUser(new User("Ike")).toString());
out.close();
}
2  arquillian-shrinkwrap/src/test/java/com/samaxes/arquillian/example/UserServiceBeanIT.java
View
@@ -37,7 +37,7 @@ public static JavaArchive createTestableDeployment() {
@Test
public void callServiceToAddNewUserToDB() {
- final User user = new User("First Ike");
+ final User user = new User("Ike");
service.addUser(user);
assertNotNull(user.getId(), "User id should not be null!");
}
2  arquillian-shrinkwrap/src/test/java/com/samaxes/arquillian/example/UserServletIT.java
View
@@ -42,7 +42,7 @@ public static WebArchive createNotTestableDeployment() {
public void callServletToAddNewUserToDB(@ArquillianResource URL baseURL) throws IOException {
// Servlet is listening at <context_path>/User
final URL url = new URL(baseURL, "User");
- final User user = new User(1L, "Second Ike");
+ final User user = new User(1L, "Ike");
StringBuilder builder = new StringBuilder();
BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
2  ejb31-embeddable/pom.xml
View
@@ -10,7 +10,7 @@
<name>EJB 3.1 Embeddable example</name>
<url>https://github.com/samaxes/java-ee-testing</url>
- <inceptionYear>2011</inceptionYear>
+ <inceptionYear>2012</inceptionYear>
<organization>
<name>samaxes</name>
<url>http://www.samaxes.com/</url>
Please sign in to comment.
Something went wrong with that request. Please try again.