[seam-commits] Seam SVN: r14664 - in branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests: src/test/java/org/jboss/seam/example/contactlist/test and 1 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri May 11 04:04:16 EDT 2012


Author: maschmid
Date: 2012-05-11 04:04:15 -0400 (Fri, 11 May 2012)
New Revision: 14664

Removed:
   branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/src/test/resources-integration/testng.xml
Modified:
   branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/pom.xml
   branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/src/test/java/org/jboss/seam/example/contactlist/test/ContactListTest.java
Log:
remove arq-seam extension from contactlist


Modified: branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/pom.xml	2012-05-11 07:56:31 UTC (rev 14663)
+++ branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/pom.xml	2012-05-11 08:04:15 UTC (rev 14664)
@@ -76,12 +76,6 @@
       </dependency>
 
       <dependency>
-         <groupId>org.jboss.arquillian.extension</groupId>
-         <artifactId>arquillian-seam2</artifactId>
-         <scope>test</scope>
-      </dependency>
-
-      <dependency>
          <groupId>org.jboss.spec.javax.el</groupId>
          <artifactId>jboss-el-api_2.2_spec</artifactId>
       </dependency>

Modified: branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/src/test/java/org/jboss/seam/example/contactlist/test/ContactListTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/src/test/java/org/jboss/seam/example/contactlist/test/ContactListTest.java	2012-05-11 07:56:31 UTC (rev 14663)
+++ branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/src/test/java/org/jboss/seam/example/contactlist/test/ContactListTest.java	2012-05-11 08:04:15 UTC (rev 14664)
@@ -1,5 +1,7 @@
 package org.jboss.seam.example.contactlist.test;
 
+import static org.junit.Assert.*;
+
 import java.util.List;
 
 import org.jboss.arquillian.container.test.api.Deployment;
@@ -13,7 +15,7 @@
 import org.jboss.shrinkwrap.api.Archive;
 import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
 import org.jboss.shrinkwrap.api.spec.WebArchive;
-import static org.junit.Assert.*;
+
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -36,14 +38,20 @@
    @Test
    public void testList() throws Exception
    {
+      Lifecycle.beginCall();
+
       EntityQuery<Contact> contacts = (EntityQuery<Contact>)Component.getInstance("contacts");
       List<Contact> contactsList = (List<Contact>) (contacts.getResultList());
       assertEquals(5, contactsList.size());
+
+      Lifecycle.endCall();
    }
 
    @Test
    public void testSearch() throws Exception
    {
+      Lifecycle.beginCall();
+      
       Contact exampleContact = (Contact)Component.getInstance("exampleContact");
       exampleContact.setFirstName("Norman");
 
@@ -64,17 +72,19 @@
       
       Lifecycle.endCall();
    }
-   
+
    Long contactId;
-   
+
    @Test
    public void testCreateDeleteContact() throws Exception
    {
+      Lifecycle.beginCall();
+
       Contact contact = (Contact) Component.getInstance("contact");
       contact.setFirstName("Emmanuel");
       contact.setLastName("Bernard");
       contact.setCity("Paris");
-      
+
       EntityHome<Contact> contactHome = (EntityHome<Contact>)Component.getInstance("contactHome");
       assertEquals("persisted", contactHome.persist());
       contactId = (Long)contactHome.getId();
@@ -91,9 +101,11 @@
 
       Lifecycle.endCall();
       Lifecycle.beginCall();
-      
+
       contactHome = (EntityHome<Contact>)Component.getInstance("contactHome");
       contactHome.setId(contactId);
       assertEquals("removed", contactHome.remove());
+
+      Lifecycle.endCall();
    }
 }

Deleted: branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/src/test/resources-integration/testng.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/src/test/resources-integration/testng.xml	2012-05-11 07:56:31 UTC (rev 14663)
+++ branches/community/Seam_2_3/examples-ee6/contactlist/contactlist-tests/src/test/resources-integration/testng.xml	2012-05-11 08:04:15 UTC (rev 14664)
@@ -1,11 +0,0 @@
-<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
-
-<suite name="Contact List" verbose="2" parallel="false">
-
-   <test name="Contact List">
-     <classes>
-       <class name="org.jboss.seam.example.contactlist.test.ContactListTest"/>
-     </classes>
-   </test>
-	
-</suite>
\ No newline at end of file



More information about the seam-commits mailing list