Seam SVN: r11269 - branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test.
by seam-commits@lists.jboss.org
Author: jharting
Date: 2009-07-11 15:47:21 -0400 (Sat, 11 Jul 2009)
New Revision: 11269
Modified:
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/CategoryResourceTest.java
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/ResolvedTaskResourceQueryTest.java
branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/TaskResourceTest.java
Log:
Fixed seam-tasks tests and added to testall
Modified: branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/CategoryResourceTest.java
===================================================================
--- branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/CategoryResourceTest.java 2009-07-11 19:37:02 UTC (rev 11268)
+++ branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/CategoryResourceTest.java 2009-07-11 19:47:21 UTC (rev 11269)
@@ -24,9 +24,12 @@
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
-import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;
-import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;
-import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;
+import org.jboss.seam.mock.SeamTest;
+import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;
+import static org.jboss.seam.mock.ResourceRequestEnvironment.ResourceRequest;
+import org.jboss.seam.mock.EnhancedMockHttpServletRequest;
+import org.jboss.seam.mock.EnhancedMockHttpServletResponse;
+import org.jboss.seam.mock.ResourceRequestEnvironment;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@@ -35,7 +38,7 @@
* @author Jozef Hartinger
*
*/
-public class CategoryResourceTest extends ResourceSeamTest
+public class CategoryResourceTest extends SeamTest
{
@DataProvider(name = "query")
public String[][] getQueryData()
@@ -46,11 +49,11 @@
@Test(dataProvider = "query")
public void getCategoryListTest(final String contentType, final String expectedResponse) throws Exception
{
- new ResourceRequest(Method.GET, "/v1/auth/category")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.GET, "/v1/auth/category")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Accept", contentType);
@@ -58,7 +61,7 @@
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 200, "Unexpected response code.");
@@ -71,11 +74,11 @@
@Test
public void deleteCategoryTest() throws Exception
{
- new ResourceRequest(Method.DELETE, "/v1/auth/category/Work")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.DELETE, "/v1/auth/category/Work")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Accept", "application/xml");
@@ -83,7 +86,7 @@
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 204, "Unexpected response code.");
@@ -100,18 +103,18 @@
final String mimeType = "application/json";
final String expectedResponse = "{\"category\":{\"name\":\"Test Category\"}}";
- new ResourceRequest(Method.PUT, uri)
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.PUT, uri)
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Authorization", "Basic ZGVtbzpkZW1v"); // demo:demo
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 201, "Unexpected response code.");
@@ -119,11 +122,11 @@
}.run();
- new ResourceRequest(Method.GET, uri)
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.GET, uri)
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Accept", mimeType);
@@ -131,7 +134,7 @@
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 200, "Unexpected response code.");
@@ -144,18 +147,18 @@
@Test
public void noAuthorizationHeaderTest() throws Exception
{
- new ResourceRequest(Method.GET, "/v1/auth/category")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.GET, "/v1/auth/category")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Accept", "application/xml");
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 401, "Unexpected response code.");
Modified: branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/ResolvedTaskResourceQueryTest.java
===================================================================
--- branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/ResolvedTaskResourceQueryTest.java 2009-07-11 19:37:02 UTC (rev 11268)
+++ branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/ResolvedTaskResourceQueryTest.java 2009-07-11 19:47:21 UTC (rev 11269)
@@ -24,9 +24,12 @@
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
-import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;
-import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;
-import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;
+import org.jboss.seam.mock.SeamTest;
+import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;
+import static org.jboss.seam.mock.ResourceRequestEnvironment.ResourceRequest;
+import org.jboss.seam.mock.EnhancedMockHttpServletRequest;
+import org.jboss.seam.mock.EnhancedMockHttpServletResponse;
+import org.jboss.seam.mock.ResourceRequestEnvironment;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@@ -36,7 +39,7 @@
* @author Jozef Hartinger
*
*/
-public class ResolvedTaskResourceQueryTest extends ResourceSeamTest
+public class ResolvedTaskResourceQueryTest extends SeamTest
{
// We could do this BeforeClass only once but we can't do ResourceRequests there
@@ -46,11 +49,11 @@
final String mimeType = "application/xml";
final String representation = "<task><id>14</id></task>";
- new ResourceRequest(Method.PUT, "/v1/auth/category/School/resolved/14")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.PUT, "/v1/auth/category/School/resolved/14")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Authorization", "Basic ZGVtbzpkZW1v"); // demo:demo
@@ -60,7 +63,7 @@
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 204, "Unexpected response code.");
@@ -81,18 +84,18 @@
@Test(dataProvider="data")
public void editTaskTest(final String mimeType, final String expectedResponsePart) throws Exception
{
- new ResourceRequest(Method.GET, "/v1/user/demo/tasks/resolved")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.GET, "/v1/user/demo/tasks/resolved")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Accept", mimeType);
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 200, "Unexpected response code.");
Modified: branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/TaskResourceTest.java
===================================================================
--- branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/TaskResourceTest.java 2009-07-11 19:37:02 UTC (rev 11268)
+++ branches/community/Seam_2_2/examples/tasks/src/main/org/jboss/seam/example/tasks/test/TaskResourceTest.java 2009-07-11 19:47:21 UTC (rev 11269)
@@ -24,9 +24,12 @@
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
-import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;
-import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;
-import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;
+import org.jboss.seam.mock.SeamTest;
+import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;
+import static org.jboss.seam.mock.ResourceRequestEnvironment.ResourceRequest;
+import org.jboss.seam.mock.EnhancedMockHttpServletRequest;
+import org.jboss.seam.mock.EnhancedMockHttpServletResponse;
+import org.jboss.seam.mock.ResourceRequestEnvironment;
import org.testng.annotations.Test;
/**
@@ -34,7 +37,7 @@
* @author Jozef Hartinger
*
*/
-public class TaskResourceTest extends ResourceSeamTest
+public class TaskResourceTest extends SeamTest
{
@Test
public void createTaskTest() throws Exception
@@ -42,11 +45,11 @@
final String mimeType = "application/json";
final String representation = "{\"task\":{\"name\":\"Test task\"}}";
- new ResourceRequest(Method.POST, "/v1/auth/category/School/unresolved")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.POST, "/v1/auth/category/School/unresolved")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Authorization", "Basic ZGVtbzpkZW1v"); // demo:demo
@@ -56,7 +59,7 @@
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 201, "Unexpected response code.");
@@ -71,11 +74,11 @@
final String mimeType = "application/xml";
final String representation = "<task><id>4</id><name>Learn new English vocabulary</name></task>";
- new ResourceRequest(Method.PUT, "/v1/auth/category/School/unresolved/4")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.PUT, "/v1/auth/category/School/unresolved/4")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Authorization", "Basic ZGVtbzpkZW1v"); // demo:demo
@@ -85,7 +88,7 @@
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 204, "Unexpected response code.");
@@ -93,11 +96,11 @@
}.run();
- new ResourceRequest(Method.GET, "/v1/auth/category/School/unresolved/4")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.GET, "/v1/auth/category/School/unresolved/4")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Accept", "application/xml");
@@ -105,7 +108,7 @@
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 200, "Unexpected response code.");
@@ -118,18 +121,18 @@
@Test
public void deleteTaskTest() throws Exception
{
- new ResourceRequest(Method.DELETE, "/v1/auth/category/School/unresolved/2")
+ new ResourceRequest(new ResourceRequestEnvironment(this), Method.DELETE, "/v1/auth/category/School/unresolved/2")
{
@Override
- protected void prepareRequest(MockHttpServletRequest request)
+ protected void prepareRequest(EnhancedMockHttpServletRequest request)
{
super.prepareRequest(request);
request.addHeader("Authorization", "Basic ZGVtbzpkZW1v"); // demo:demo
}
@Override
- protected void onResponse(MockHttpServletResponse response)
+ protected void onResponse(EnhancedMockHttpServletResponse response)
{
super.onResponse(response);
assertEquals(response.getStatus(), 204, "Unexpected response code.");
15 years, 7 months
Seam SVN: r11268 - branches/community/Seam_2_2/src/resteasy/org/jboss/seam/resteasy.
by seam-commits@lists.jboss.org
Author: jharting
Date: 2009-07-11 15:37:02 -0400 (Sat, 11 Jul 2009)
New Revision: 11268
Modified:
branches/community/Seam_2_2/src/resteasy/org/jboss/seam/resteasy/ResteasyBootstrap.java
Log:
JBSEAM-4299
Modified: branches/community/Seam_2_2/src/resteasy/org/jboss/seam/resteasy/ResteasyBootstrap.java
===================================================================
--- branches/community/Seam_2_2/src/resteasy/org/jboss/seam/resteasy/ResteasyBootstrap.java 2009-07-10 13:22:21 UTC (rev 11267)
+++ branches/community/Seam_2_2/src/resteasy/org/jboss/seam/resteasy/ResteasyBootstrap.java 2009-07-11 19:37:02 UTC (rev 11268)
@@ -299,6 +299,10 @@
{
Set<Class> handledResources = new HashSet(); // Stuff we don't want to examine twice
+ // These classes themselves should not be registered at all
+ // Configured ResourceHome and ResourceQuery components will be registered later
+ handledResources.add(ResourceHome.class);
+ handledResources.add(ResourceQuery.class);
for (Component seamComponent : seamComponents)
{
@@ -310,8 +314,6 @@
seamComponent.getBeanClass().equals(ResourceQuery.class))
{
registerHomeQueryResources(seamComponent);
- handledResources.add(ResourceHome.class);
- handledResources.add(ResourceQuery.class);
continue;
}
15 years, 7 months
Seam SVN: r11267 - branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-07-10 09:22:21 -0400 (Fri, 10 Jul 2009)
New Revision: 11267
Modified:
branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Configuration.xml
branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Mail.xml
Log:
added technology preview notes
Modified: branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Configuration.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Configuration.xml 2009-07-08 19:03:10 UTC (rev 11266)
+++ branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Configuration.xml 2009-07-10 13:22:21 UTC (rev 11267)
@@ -1189,6 +1189,11 @@
<ulink url="http://labs.jboss.com/portletbridge">http://labs.jboss.com/portletbridge</ulink>
for more.
</para>
+
+ <note>
+ <title>Technology preview </title>
+ <para>Seam Integration with JBoss Portlet Bridge is marked as technology preview, so standard support is not guaranteed.</para>
+ </note>
</sect1>
Modified: branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Mail.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Mail.xml 2009-07-08 19:03:10 UTC (rev 11266)
+++ branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Mail.xml 2009-07-10 13:22:21 UTC (rev 11267)
@@ -334,6 +334,11 @@
version of JBoss AS you use already has this file, replace it.
</para>
+ <note>
+ <title>Technology preview </title>
+ <para>Distributed mail-ra.rar in Seam is marked as technology preview, so standard support is not guaranteed.</para>
+ </note>
+
<para>
You can configure it like this:
</para>
15 years, 7 months
Seam SVN: r11266 - tags/JBoss_Seam_2_2_0_GA/build.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-07-08 15:03:10 -0400 (Wed, 08 Jul 2009)
New Revision: 11266
Modified:
tags/JBoss_Seam_2_2_0_GA/build/default.build.properties
Log:
for release
Modified: tags/JBoss_Seam_2_2_0_GA/build/default.build.properties
===================================================================
--- tags/JBoss_Seam_2_2_0_GA/build/default.build.properties 2009-07-08 18:18:37 UTC (rev 11265)
+++ tags/JBoss_Seam_2_2_0_GA/build/default.build.properties 2009-07-08 19:03:10 UTC (rev 11266)
@@ -8,7 +8,7 @@
major.version 2
minor.version .2
patchlevel .0
-qualifier -SNAPSHOT
+qualifier .GA
#
# Other program locations
# -----------------------
15 years, 7 months
Seam SVN: r11265 - tags.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-07-08 14:18:37 -0400 (Wed, 08 Jul 2009)
New Revision: 11265
Added:
tags/JBoss_Seam_2_2_0_GA/
Log:
tag 2.2.0.GA
Copied: tags/JBoss_Seam_2_2_0_GA (from rev 11264, branches/community/Seam_2_2)
15 years, 7 months
Seam SVN: r11264 - branches/community/Seam_2_2.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-07-08 14:16:09 -0400 (Wed, 08 Jul 2009)
New Revision: 11264
Modified:
branches/community/Seam_2_2/changelog.txt
branches/community/Seam_2_2/readme.txt
Log:
for release
Modified: branches/community/Seam_2_2/changelog.txt
===================================================================
--- branches/community/Seam_2_2/changelog.txt 2009-07-08 17:59:56 UTC (rev 11263)
+++ branches/community/Seam_2_2/changelog.txt 2009-07-08 18:16:09 UTC (rev 11264)
@@ -1,7 +1,40 @@
JBoss Seam Changelog
====================
+Release Notes - Seam - Version 2.2.0.GA
+** Bug
+ * [JBSEAM-2255] - Undeploying multiple wars inside an ear causes IllegalStateException.
+ * [JBSEAM-2579] - Messages.properties do not work as expected with multiple WARs inside multiple Seam EARs
+ * [JBSEAM-2797] - There should be one ResourceLoader per module inside an EAR
+ * [JBSEAM-4019] - Problem with SeamResourceBundle
+ * [JBSEAM-4121] - pages.xml not hot deploying in 2.1.1 GA
+ * [JBSEAM-4252] - Messages can be double-interpolated
+ * [JBSEAM-4256] - Title of section 16.3 disappeared in the doc (internationalizing/labels), and section 16.4, 16.5 and 16.6 should be under section 16.3
+ * [JBSEAM-4257] - Blog.testSearch unit test doesn't work after hibernate upgrade
+ * [JBSEAM-4271] - Update jboss-seam-2.x directory reference
+ * [JBSEAM-4272] - Project specific EL code completion doesn't work
+ * [JBSEAM-4274] - hibernate-core.jar missing in Seam examples deployed to Tomcat6
+ * [JBSEAM-4275] - Hibernate Search-enabled examples fail to deploy to jboss-embedded
+ * [JBSEAM-4276] - A JBDS generated WAR project with reverse-engineered entities doesn't work
+ * [JBSEAM-4278] - @Create methods on @Startup components are called without a transaction
+ * [JBSEAM-4289] - DBUnitSeamTest can't be executed in the same suite as SeamTest
+
+** Feature Request
+ * [JBSEAM-3119] - Multiple WAR in EAR verification, example, and document
+ * [JBSEAM-4219] - Allow use of RuleFlow in Seam RuleBase
+ * [JBSEAM-4241] - Add ability to retract facts from workingmemory in pageflow
+
+** Patch
+ * [JBSEAM-4245] - Disinjection in Seam-Guice
+
+** Task
+ * [JBSEAM-4068] - Use JBoss 5 as default target. Deprecate 4.2.x
+ * [JBSEAM-4195] - Merge enhanced servlet mocks into core
+ * [JBSEAM-4221] - Document SeamTextParser.Sanitizer
+ * [JBSEAM-4291] - Upgrade TestNG
+
+
Release Notes - Seam - Version 2.2.0.CR1
** Bug
Modified: branches/community/Seam_2_2/readme.txt
===================================================================
--- branches/community/Seam_2_2/readme.txt 2009-07-08 17:59:56 UTC (rev 11263)
+++ branches/community/Seam_2_2/readme.txt 2009-07-08 18:16:09 UTC (rev 11264)
@@ -1,7 +1,7 @@
JBoss Seam - Contextual Component framework for Java EE 5
=========================================================
-version 2.2.0.CR1, June 2009
+version 2.2.0.GA, June 2009
This software is distributed under the terms of the FSF Lesser Gnu
Public License (see lgpl.txt).
15 years, 7 months
Seam SVN: r11263 - in branches/community/Seam_2_2/src/main/org/jboss/seam: deployment and 1 other directory.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-07-08 13:59:56 -0400 (Wed, 08 Jul 2009)
New Revision: 11263
Added:
branches/community/Seam_2_2/src/main/org/jboss/seam/contexts/PagesDotXmlDeploymentHandler.java
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/deployment/WarRootDeploymentStrategy.java
Log:
JBSEAM-4121
Added: branches/community/Seam_2_2/src/main/org/jboss/seam/contexts/PagesDotXmlDeploymentHandler.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/contexts/PagesDotXmlDeploymentHandler.java (rev 0)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/contexts/PagesDotXmlDeploymentHandler.java 2009-07-08 17:59:56 UTC (rev 11263)
@@ -0,0 +1,61 @@
+package org.jboss.seam.deployment;
+
+import org.jboss.seam.contexts.Contexts;
+
+/**
+ * The {@link PagesDotXmlDeploymentHandler} process pages.xml files
+ * Its only purpose is to make sure pages.xml gets updated by hot deploy
+ *
+ * @author Stuart Douglas
+ *
+ */
+public class PagesDotXmlDeploymentHandler extends AbstractDeploymentHandler
+{
+
+ private static DeploymentMetadata PAGESDOTXML_SUFFIX_FILE_METADATA = new DeploymentMetadata()
+ {
+
+ public String getFileNameSuffix()
+ {
+ return "WEB-INF/pages.xml";
+ }
+
+ };
+
+ /**
+ * Name under which this {@link DeploymentHandler} is registered
+ */
+ public static final String NAME = "org.jboss.seam.deployment.PagesDotXmlDeploymentHandler";
+
+ public String getName()
+ {
+ return NAME;
+ }
+
+ public static PagesDotXmlDeploymentHandler instance()
+ {
+ if (Contexts.isEventContextActive())
+ {
+ if (Contexts.getEventContext().isSet(WarRootDeploymentStrategy.NAME))
+ {
+ DeploymentStrategy deploymentStrategy = (DeploymentStrategy) Contexts.getEventContext().get(WarRootDeploymentStrategy.NAME);
+ Object deploymentHandler = deploymentStrategy.getDeploymentHandlers().get(NAME);
+ if (deploymentHandler != null)
+ {
+ return (PagesDotXmlDeploymentHandler) deploymentHandler;
+ }
+ }
+ return null;
+ }
+ else
+ {
+ throw new IllegalStateException("Event context not active");
+ }
+ }
+
+ public DeploymentMetadata getMetadata()
+ {
+ return PAGESDOTXML_SUFFIX_FILE_METADATA;
+ }
+
+}
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/deployment/WarRootDeploymentStrategy.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/deployment/WarRootDeploymentStrategy.java 2009-07-08 14:44:47 UTC (rev 11262)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/deployment/WarRootDeploymentStrategy.java 2009-07-08 17:59:56 UTC (rev 11263)
@@ -29,6 +29,8 @@
public static final String NAME = "warRootDeploymentStrategy";
private DotPageDotXmlDeploymentHandler dotPageDotXmlDeploymentHandler;
+
+ private PagesDotXmlDeploymentHandler pagesDotXmlDeploymentHandler;
public WarRootDeploymentStrategy(ClassLoader classLoader, File warRoot)
{
@@ -51,7 +53,10 @@
this.warRoot = new File[0];
}
dotPageDotXmlDeploymentHandler = new DotPageDotXmlDeploymentHandler();
+ pagesDotXmlDeploymentHandler = new PagesDotXmlDeploymentHandler();
getDeploymentHandlers().put(DotPageDotXmlDeploymentHandler.NAME, dotPageDotXmlDeploymentHandler);
+ getDeploymentHandlers().put(PagesDotXmlDeploymentHandler.NAME, pagesDotXmlDeploymentHandler);
+
}
@Override
15 years, 7 months
Seam SVN: r11262 - in branches/community/Seam_2_2/doc/Seam_Reference_Guide: bn-IN and 22 other directories.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-07-08 10:44:47 -0400 (Wed, 08 Jul 2009)
New Revision: 11262
Modified:
branches/community/Seam_2_2/doc/Seam_Reference_Guide/as-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/as-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/bn-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/bn-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/de-DE/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/de-DE/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-ES/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-ES/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-MX/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-MX/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/fr-FR/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/fr-FR/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/gu-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/gu-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/hi-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/hi-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ja-JP/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ja-JP/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/kn-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/kn-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ko-KR/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ko-KR/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ml-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ml-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/mr-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/mr-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/or-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/or-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pa-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pa-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Annotations.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Author_Group.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Book_Info.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Cache.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/ClusteringAndEJBPassivation.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Components.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Concepts.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Configuration.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Controls.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Conversations.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Dependencies.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Drools.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Elenhancements.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Events.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Excel.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Feedback.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Framework.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Getting_Started_With_JBoss_Tools.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Gettingstarted.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Glassfish.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Groovy.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Guice.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Gwt.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Hsearch.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/I18n.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Itext.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Jbpm.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Jms.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Mail.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Performance.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Persistence.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Preface.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Remoting.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Revision_History.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Rss.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Security.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Spring.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Testing.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Text.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Tools.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Tutorial.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Validation.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Weblogic.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Webservices.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Websphere.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Wicket.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Xml.pot
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pt-BR/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/pt-BR/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ru-RU/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ru-RU/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/si-LK/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/si-LK/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/sl-SL/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/sl-SL/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ta-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/ta-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/te-IN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/te-IN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-CN/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-CN/Webservices.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-TW/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-TW/Webservices.po
Log:
POT and PO regeneration
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/as-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/as-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/as-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/as-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/as-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/as-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/bn-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/bn-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/bn-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/bn-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/bn-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/bn-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/de-DE/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/de-DE/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/de-DE/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/de-DE/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/de-DE/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/de-DE/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-ES/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-ES/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-ES/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-ES/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-ES/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-ES/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-MX/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-MX/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-MX/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Seam_-_Contextual_Components VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-11-06 00:10+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-MX/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-MX/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/es-MX/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Seam_-_Contextual_Components VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-11-06 00:10+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/fr-FR/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/fr-FR/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/fr-FR/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/fr-FR/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/fr-FR/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/fr-FR/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/gu-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/gu-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/gu-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/gu-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/gu-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/gu-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/hi-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/hi-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/hi-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/hi-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/hi-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/hi-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ja-JP/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ja-JP/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ja-JP/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: Tools\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2009-02-27 23:02+0900\n"
"Last-Translator: rto <reiko.ohtsuka(a)gmail.com>\n"
"Language-Team: Japanese <fedora-trans-ja(a)redhat.com>\n"
@@ -964,17 +964,17 @@
#: Testing.xml:390
#, fuzzy, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
"各テストの前にデータベースにデータを挿入したり、消去したりしたい場合はDBUnit"
"と連携します。SeamTestの替わりにDBUnitSeamTestを継承してください。"
#. Tag: para
#: Testing.xml:396
-#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+#, fuzzy, no-c-format
+msgid "You have to provide a dataset for DBUnit."
msgstr "DBUnitのデータセットを記述します。"
#. Tag: caution
@@ -1023,16 +1023,16 @@
#. Tag: para
#: Testing.xml:408
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
"<literal>prepareDBUnitOperations()</literal>をオーバーライドしてSeamに知らせ"
"ます。"
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -1048,7 +1048,7 @@
" }]]>"
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -1064,7 +1064,7 @@
"次に<literal>BaseData.xml</literal>に宣言されたすべての列を挿入します。"
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -1075,7 +1075,7 @@
"さい。"
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -1085,7 +1085,7 @@
"を指定して、DBUnitにデータソースを知らせます。"
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -1095,79 +1095,70 @@
"seamdiscsDatasource\"/>]]>"
#. Tag: para
-#: Testing.xml:434
-#, no-c-format
+#: Testing.xml:435
+#, fuzzy, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
"DBUnitSeamTestはMySQLとHSQLをサポートします。どちらを使うか、以下のように設定"
"してください。"
#. Tag: programlisting
-#: Testing.xml:439
-#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+#: Testing.xml:440
+#, fuzzy, no-c-format
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
#. Tag: para
-#: Testing.xml:441
-#, no-c-format
+#: Testing.xml:442
+#, fuzzy, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
"バイナリデータをテストデータセットに挿入することもできます(Windowsでは未検証"
"ですので注意してください)。リソースの場所を以下のように指定してください。"
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-"<literal>testng.xml</literal>にこの三つのパラメータを<emphasis>必ず</"
-"emphasis>指定してください。"
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-"DBUnitSeamTestで別のデータベースを使用するには、いくつかのメソッドを実装しな"
-"ければいけません。詳細は<literal>AbstractDBUnitSeamTest</literal>のjavadocを"
-"参照してください。"
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr "Seamメールの統合テスト"
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr "警告!この機能はまだ開発中です。"
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr "Seamメールの統合テストはとても簡単です。"
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -1227,7 +1218,7 @@
"}]]>"
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -1245,7 +1236,7 @@
"メソッドも使用できます。"
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
@@ -1253,3 +1244,19 @@
msgstr ""
"標準JSFコンポーネントのレンダリングはサポートしませんので、メールボディをテス"
"トするのは簡単ではありません。"
+
+#~ msgid ""
+#~ "You <emphasis>must</emphasis> specify these three parameters in your "
+#~ "<literal>testng.xml</literal>."
+#~ msgstr ""
+#~ "<literal>testng.xml</literal>にこの三つのパラメータを<emphasis>必ず</"
+#~ "emphasis>指定してください。"
+
+#~ msgid ""
+#~ "If you want to use DBUnitSeamTest with another database, you'll need to "
+#~ "implement some methods. Read the javadoc of "
+#~ "<literal>AbstractDBUnitSeamTest</literal> for more."
+#~ msgstr ""
+#~ "DBUnitSeamTestで別のデータベースを使用するには、いくつかのメソッドを実装し"
+#~ "なければいけません。詳細は<literal>AbstractDBUnitSeamTest</literal>の"
+#~ "javadocを参照してください。"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ja-JP/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ja-JP/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ja-JP/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: Tools\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2009-02-20 10:58-0500\n"
"Last-Translator: kojiro miyamoto <kojiro_miyamoto(a)hotmail.com>\n"
"Language-Team: Japanese <fedora-trans-ja(a)redhat.com>\n"
@@ -1268,45 +1268,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1314,44 +1328,32 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
-
#, fuzzy
#~ msgid ""
#~ "Provider classes can also be Seam components, currently only "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/kn-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/kn-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/kn-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/kn-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/kn-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/kn-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ko-KR/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ko-KR/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ko-KR/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ko-KR/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ko-KR/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ko-KR/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ml-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ml-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ml-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ml-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ml-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ml-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/mr-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/mr-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/mr-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/mr-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/mr-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/mr-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/or-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/or-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/or-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/or-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/or-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/or-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pa-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pa-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pa-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pa-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pa-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pa-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Annotations.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Annotations.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Annotations.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Author_Group.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Author_Group.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Author_Group.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Book_Info.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Book_Info.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Book_Info.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Cache.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Cache.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Cache.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/ClusteringAndEJBPassivation.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/ClusteringAndEJBPassivation.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/ClusteringAndEJBPassivation.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Components.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Components.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Components.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Concepts.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Concepts.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Concepts.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Configuration.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Configuration.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Configuration.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Controls.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Controls.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Controls.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:47+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Conversations.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Conversations.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Conversations.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Dependencies.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Dependencies.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Dependencies.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Drools.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Drools.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Drools.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Elenhancements.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Elenhancements.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Elenhancements.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Events.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Events.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Events.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Excel.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Excel.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Excel.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Feedback.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Feedback.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Feedback.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Framework.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Framework.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Framework.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Getting_Started_With_JBoss_Tools.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Getting_Started_With_JBoss_Tools.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Getting_Started_With_JBoss_Tools.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Gettingstarted.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Gettingstarted.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Gettingstarted.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Glassfish.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Glassfish.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Glassfish.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Groovy.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Groovy.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Groovy.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Guice.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Guice.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Guice.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Gwt.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Gwt.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Gwt.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Hsearch.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Hsearch.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Hsearch.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/I18n.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/I18n.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/I18n.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Itext.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Itext.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Itext.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Jbpm.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Jbpm.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Jbpm.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Jms.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Jms.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Jms.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Mail.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Mail.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Mail.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Performance.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Performance.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Performance.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Persistence.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Persistence.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Persistence.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Preface.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Preface.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Preface.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Remoting.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Remoting.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Remoting.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Revision_History.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Revision_History.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Revision_History.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Rss.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Rss.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Rss.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Security.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Security.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Security.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Spring.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Spring.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Spring.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Testing.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Testing.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Testing.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
@@ -718,15 +718,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -761,12 +761,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -777,7 +777,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -788,7 +788,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -796,7 +796,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -804,7 +804,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -812,70 +812,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -908,7 +904,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -920,7 +916,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Text.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Text.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Text.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Tools.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Tools.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Tools.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Tutorial.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Tutorial.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Tutorial.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Validation.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Validation.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Validation.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Weblogic.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Weblogic.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Weblogic.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Webservices.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Webservices.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Webservices.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
@@ -956,45 +956,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1002,40 +1016,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Websphere.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Websphere.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Websphere.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Wicket.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Wicket.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Wicket.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Xml.pot
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Xml.pot 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pot/Xml.pot 2009-07-08 14:44:47 UTC (rev 11262)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-07-07 16:48+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pt-BR/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pt-BR/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pt-BR/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/pt-BR/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/pt-BR/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/pt-BR/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ru-RU/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ru-RU/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ru-RU/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ru-RU/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ru-RU/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ru-RU/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/si-LK/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/si-LK/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/si-LK/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/si-LK/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/si-LK/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/si-LK/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/sl-SL/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/sl-SL/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/sl-SL/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-21 00:37+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/sl-SL/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/sl-SL/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/sl-SL/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-21 00:37+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ta-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ta-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ta-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/ta-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/ta-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/ta-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/te-IN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/te-IN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/te-IN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/te-IN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/te-IN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/te-IN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-CN/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-CN/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-CN/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-CN/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-CN/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-CN/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-TW/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-TW/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-TW/Testing.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -717,15 +717,15 @@
#: Testing.xml:390
#, no-c-format
msgid ""
-"If you need to insert or clean data in your database before each test you "
+"If you want to insert or clean data in your database before each test you "
"can use Seam's integration with DBUnit. To do this, extend "
-"<literal>DBUnitSeamTest</literal> rather than SeamTest."
+"<literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
msgstr ""
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
+msgid "You have to provide a dataset for DBUnit."
msgstr ""
#. Tag: caution
@@ -760,12 +760,12 @@
#: Testing.xml:408
#, no-c-format
msgid ""
-"and tell Seam about it by overriding <literal>prepareDBUnitOperations()</"
-"literal>:"
+"In your test class, configure your dataset with overriding "
+"<literal>prepareDBUnitOperations()</literal>:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -776,7 +776,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid ""
"<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation."
@@ -787,7 +787,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid ""
"If you require extra cleanup after a test method executes, add operations to "
@@ -795,7 +795,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid ""
"You need to tell DBUnit about the datasource you are using by setting a "
@@ -803,7 +803,7 @@
msgstr ""
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid ""
"<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/"
@@ -811,70 +811,66 @@
msgstr ""
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
msgid ""
"DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which "
-"database is being used:"
+"database is being used, otherwise it defaults to HSQL:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
msgid ""
"It also allows you to insert binary data into the test data set (n.b. this "
-"is untested on Windows). You need to tell it where to locate these resources:"
+"is untested on Windows). You need to tell it where to locate these resources "
+"on your classpath:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr ""
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
msgid ""
-"You <emphasis>must</emphasis> specify these three parameters in your "
-"<literal>testng.xml</literal>."
+"You do not have to configure any of these parameters if you use HSQL and "
+"have no binary imports. However, unless you specify "
+"<literal>datasourceJndiName</literal> in your test configuration, you will "
+"have to call <literal>setDatabaseJndiName()</literal> before your test runs. "
+"If you are not using HSQL or MySQL, you need to override some methods. See "
+"the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
msgstr ""
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid ""
-"If you want to use DBUnitSeamTest with another database, you'll need to "
-"implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</"
-"literal> for more."
-msgstr ""
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr ""
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr ""
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr ""
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -907,7 +903,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid ""
"We create a new <literal>FacesRequest</literal> as normal. Inside the "
@@ -919,7 +915,7 @@
msgstr ""
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid ""
"There is no support for rendering standard JSF components so you can't test "
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-TW/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-TW/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/zh-TW/Webservices.po 2009-07-08 14:44:47 UTC (rev 11262)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -955,45 +955,59 @@
#: Webservices.xml:449
#, no-c-format
msgid ""
-"Seam includes an extended unit testing superclass that helps you in creating "
-"unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</"
-"literal> class to emulate HTTP requests/response cycles:"
+"Seam includes a unit testing utility class that helps you create unit tests "
+"for a RESTful architecture. Extend the <literal>SeamTest</literal> class as "
+"usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</"
+"literal> to emulate HTTP requests/response cycles:"
msgstr ""
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment."
+"ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment"
+"(this), Method.GET, \"/my/relative/uri)\n"
+"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/"
+"uri)\n"
" {\n"
-"\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest "
+"request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse "
+"response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -1001,40 +1015,28 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
msgid ""
"This test only executes local calls, it does not communicate with the "
"<literal>SeamResourceServlet</literal> through TCP. The mock request is "
"passed through the Seam servlet and filters and the response is then "
"available for test assertions. Overriding the <literal>getDefaultHeaders()</"
-"literal> method allows you to set request headers for every test method in "
-"the test class."
+"literal> method in a shared instance of <literal>ResourceRequestEnvironment</"
+"literal> allows you to set request headers for every test method in the test "
+"class."
msgstr ""
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
msgid ""
"Note that a <literal>ResourceRequest</literal> has to be executed in a "
"<literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> "
-"callback. You can and should not execute it in any other callback, such as "
-"<literal>@BeforeClass</literal>. (This is an implementation limitation we "
-"will remove in a future update.)"
+"callback. You can not execute it in any other callback, such as "
+"<literal>@BeforeClass</literal>."
msgstr ""
-
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid ""
-"Also note that the imported mock objects are not the same as the mock "
-"objects you use in other Seam unit tests, which are in the package "
-"<literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy."
-"testfwk</literal> variations mimic real requests and responses much more "
-"closely."
-msgstr ""
15 years, 7 months
Seam SVN: r11261 - branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-07-08 10:40:45 -0400 (Wed, 08 Jul 2009)
New Revision: 11261
Modified:
branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Testing.po
branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Webservices.po
Log:
Italian translation
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Testing.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Testing.po 2009-07-08 14:31:10 UTC (rev 11260)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Testing.po 2009-07-08 14:40:45 UTC (rev 11261)
@@ -5,8 +5,8 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-05 18:37+0000\n"
-"PO-Revision-Date: 2009-06-05 20:47+0100\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
+"PO-Revision-Date: 2009-07-08 16:38+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -775,14 +775,14 @@
#. Tag: para
#: Testing.xml:390
#, no-c-format
-msgid "If you need to insert or clean data in your database before each test you can use Seam's integration with DBUnit. To do this, extend <literal>DBUnitSeamTest</literal> rather than SeamTest."
-msgstr "Se occorre inserire o pulire i dati nel database prima di ogni test, si può usare l'integrazione di Seam con DBUnit. Per fare questo si estenda <literal>DBUnitSeamTest</literal> piuttosto che SeamTest."
+msgid "If you want to insert or clean data in your database before each test you can use Seam's integration with DBUnit. To do this, extend <literal>DBUnitSeamTest</literal> rather than <literal>SeamTest</literal>."
+msgstr "Se si vuole inserire o pulire i dati nel database prima di ogni test, si può usare l'integrazione di Seam con DBUnit. Per fare questo si estenda <literal>DBUnitSeamTest</literal> piuttosto che SeamTest."
#. Tag: para
#: Testing.xml:396
#, no-c-format
-msgid "You need to provide a dataset for DBUnit."
-msgstr "Devi fornire un dataset per DBUnit."
+msgid "You have to provide a dataset for DBUnit."
+msgstr "Occorre fornire un dataset per DBUnit."
#. Tag: caution
#: Testing.xml:400
@@ -825,11 +825,11 @@
#. Tag: para
#: Testing.xml:408
#, no-c-format
-msgid "and tell Seam about it by overriding <literal>prepareDBUnitOperations()</literal>:"
-msgstr "e comunicarlo a Seam facendo l'override di <literal>prepareDBUnitOperations()</literal>:\""
+msgid "In your test class, configure your dataset with overriding <literal>prepareDBUnitOperations()</literal>:"
+msgstr "Nella classe di test configurare il dataset con l'override di <literal>prepareDBUnitOperations()</literal>:"
#. Tag: programlisting
-#: Testing.xml:412
+#: Testing.xml:413
#, no-c-format
msgid ""
"<![CDATA[protected void prepareDBUnitOperations() {\n"
@@ -845,85 +845,79 @@
" }]]>"
#. Tag: para
-#: Testing.xml:414
+#: Testing.xml:415
#, no-c-format
msgid "<literal>DataSetOperation</literal> defaults to <literal>DatabaseOperation.CLEAN_INSERT</literal> if no other operation is specified as a constructor argument. The above example cleans all tables defined <literal>BaseData.xml</literal>, then inserts all rows declared in <literal>BaseData.xml</literal> before each <literal>@Test</literal> method is invoked."
msgstr "<literal>DataSetOperation</literal> è impostato di default a <literal>DatabaseOperation.CLEAN_INSERT</literal> se non viene specificata qualche altra operazione come argomento del costruttore. L'esempio di cui sopra pulisce tutte le tabelle definite in <literal>BaseData.xml</literal> e quindi inserisce tutte le righe dichiarate in <literal>BaseData.xml</literal> prima che venga invocato ogni metodo <literal>@Test</literal>."
#. Tag: para
-#: Testing.xml:422
+#: Testing.xml:423
#, no-c-format
msgid "If you require extra cleanup after a test method executes, add operations to <literal>afterTestOperations</literal> list."
msgstr "Se viene richiesta un'ulteriore pulizia prima dell'esecuzione di un metodo di test, si aggiungano operazioni alla lista <literal>afterTestOperations</literal>."
#. Tag: para
-#: Testing.xml:427
+#: Testing.xml:428
#, no-c-format
msgid "You need to tell DBUnit about the datasource you are using by setting a TestNG test parameter named <literal>datasourceJndiName</literal>:"
msgstr "Occorre informare DBUnit del datasource usato impostando il parametro TestNG chiamato <literal>datasourceJndiName</literal>:"
#. Tag: programlisting
-#: Testing.xml:432
+#: Testing.xml:433
#, no-c-format
msgid "<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/seamdiscsDatasource\"/>]]>"
msgstr "<![CDATA[<parameter name=\"datasourceJndiName\" value=\"java:/seamdiscsDatasource\"/>]]>"
#. Tag: para
-#: Testing.xml:434
+#: Testing.xml:435
#, no-c-format
-msgid "DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which database is being used:"
-msgstr "DBUnitSeamTest supporta MySQL e HSQL- occorre dire quale database viene usato:"
+msgid "DBUnitSeamTest has support for MySQL and HSQL - you need to tell it which database is being used, otherwise it defaults to HSQL:"
+msgstr "DBUnitSeamTest supporta MySQL e HSQL- occorre dire quale database viene usato, altrimenti il default è HSQL:"
#. Tag: programlisting
-#: Testing.xml:439
+#: Testing.xml:440
#, no-c-format
-msgid "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
-msgstr "<![CDATA[<parameter name=\"database\" value=\"HSQL\" />]]>"
+msgid "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
+msgstr "<![CDATA[<parameter name=\"database\" value=\"MYSQL\" />]]>"
#. Tag: para
-#: Testing.xml:441
+#: Testing.xml:442
#, no-c-format
-msgid "It also allows you to insert binary data into the test data set (n.b. this is untested on Windows). You need to tell it where to locate these resources:"
-msgstr "Questo consente anche di inserire dati binari nel set dei dati di test (N.B. non è stato testato sotto Windows). Occorre dire dove si trovano queste risorse:"
+msgid "It also allows you to insert binary data into the test data set (n.b. this is untested on Windows). You need to tell it where to locate these resources on your classpath:"
+msgstr "Questo consente anche di inserire dati binari nel set dei dati di test (N.B. non è stato testato sotto Windows). Occorre dire dove si trovano queste risorse nel classpath:"
#. Tag: programlisting
-#: Testing.xml:447
+#: Testing.xml:448
#, no-c-format
msgid "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
msgstr "<![CDATA[<parameter name=\"binaryDir\" value=\"images/\" />]]>"
#. Tag: para
-#: Testing.xml:449
+#: Testing.xml:450
#, no-c-format
-msgid "You <emphasis>must</emphasis> specify these three parameters in your <literal>testng.xml</literal>."
-msgstr "Si <emphasis>devono</emphasis> specificare questi tre parametri in <literal>testng.xml</literal>."
+msgid "You do not have to configure any of these parameters if you use HSQL and have no binary imports. However, unless you specify <literal>datasourceJndiName</literal> in your test configuration, you will have to call <literal>setDatabaseJndiName()</literal> before your test runs. If you are not using HSQL or MySQL, you need to override some methods. See the Javadoc of <literal>DBUnitSeamTest</literal> for more details."
+msgstr "Non occorre configurare alcun parametro se si usa HSQL e non si hanno import binari. Comunque, amenoché si specifichi <literal>datasourceJndiName</literal> nella configurazione del test, occorre chiamare <literal>setDatabaseJndiName()</literal> prima di eseguire il test. Se non si usa HSQL o MySQL, occorre fare override di qualche metodo. Si veda Javadoc di <literal>DBUnitSeamTest</literal> per i dettagli."
-#. Tag: para
-#: Testing.xml:454
-#, no-c-format
-msgid "If you want to use DBUnitSeamTest with another database, you'll need to implement some methods. Read the javadoc of <literal>AbstractDBUnitSeamTest</literal> for more."
-msgstr "Per usare DBUnitSeamTest con altri database occorre implementare alcuni metodi. Si legga javadoc di <literal>AbstractDBUnitSeamTest</literal> per saperne di più."
-
#. Tag: title
-#: Testing.xml:463
+#: Testing.xml:461
#, no-c-format
msgid "Integration Testing Seam Mail"
msgstr "Test d'integrazione di Seam Mail"
#. Tag: caution
-#: Testing.xml:465
+#: Testing.xml:463
#, no-c-format
msgid "Warning! This feature is still under development."
msgstr "Attenzione! Questa funzionalità è ancora in fase di sviluppo."
#. Tag: para
-#: Testing.xml:469
+#: Testing.xml:467
#, no-c-format
msgid "It's very easy to integration test your Seam Mail:"
msgstr "E' facilissimo eseguire il test d'integrazione con Seam Mail:"
#. Tag: programlisting
-#: Testing.xml:473
+#: Testing.xml:471
#, no-c-format
msgid ""
"<![CDATA[public class MailTest extends SeamTest {\n"
@@ -979,14 +973,29 @@
"}]]>"
#. Tag: para
-#: Testing.xml:475
+#: Testing.xml:473
#, no-c-format
msgid "We create a new <literal>FacesRequest</literal> as normal. Inside the invokeApplication hook we render the message using <literal>getRenderedMailMessage(viewId);</literal>, passing the viewId of the message to render. The method returns the rendered message on which you can do your tests. You can of course also use any of the standard JSF lifecycle methods."
msgstr "Viene creata una nuova <literal>FacesRequest</literal> come normale. Dentro la sezione invokeApplication mostriamo il messaggio usando <literal>getRenderedMailMessage(viewId);</literal>, passando il viewId del messaggio da generare. Il metodo restituisce il messaggio sul quale è possibile fare i test. Si può anche usare ogni altro metodo standard del ciclo di vita JSF."
#. Tag: para
-#: Testing.xml:484
+#: Testing.xml:482
#, no-c-format
msgid "There is no support for rendering standard JSF components so you can't test the content body of the mail message easily."
msgstr "Non c'è alcun supporto per il rendering dei componenti JSF standard, così non è possibile testare facilmente il corpo dei messaggi email."
+#~ msgid ""
+#~ "You <emphasis>must</emphasis> specify these three parameters in your "
+#~ "<literal>testng.xml</literal>."
+#~ msgstr ""
+#~ "Si <emphasis>devono</emphasis> specificare questi tre parametri in "
+#~ "<literal>testng.xml</literal>."
+#~ msgid ""
+#~ "If you want to use DBUnitSeamTest with another database, you'll need to "
+#~ "implement some methods. Read the javadoc of "
+#~ "<literal>AbstractDBUnitSeamTest</literal> for more."
+#~ msgstr ""
+#~ "Per usare DBUnitSeamTest con altri database occorre implementare alcuni "
+#~ "metodi. Si legga javadoc di <literal>AbstractDBUnitSeamTest</literal> per "
+#~ "saperne di più."
+
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Webservices.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Webservices.po 2009-07-08 14:31:10 UTC (rev 11260)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Webservices.po 2009-07-08 14:40:45 UTC (rev 11261)
@@ -5,8 +5,8 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-11 07:43+0000\n"
-"PO-Revision-Date: 2009-06-11 09:51+0100\n"
+"POT-Creation-Date: 2009-07-08 14:32+0000\n"
+"PO-Revision-Date: 2009-07-08 16:40+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -883,43 +883,51 @@
#. Tag: para
#: Webservices.xml:449
#, no-c-format
-msgid "Seam includes an extended unit testing superclass that helps you in creating unit tests for a RESTful architecture. Extend the <literal>ResourceSeamTest</literal> class to emulate HTTP requests/response cycles:"
-msgstr "Seam include una superclasse estesa per l'unit testing che agevola la creazione di test d'unità per un architettura RESTful. Si estenda la classe <literal>ResourceSeamTest</literal> per emulare i cicli richiesta/risposta HTTP:"
+msgid "Seam includes a unit testing utility class that helps you create unit tests for a RESTful architecture. Extend the <literal>SeamTest</literal> class as usual and use the <literal>ResourceRequestEnvironment.ResourceRequest</literal> to emulate HTTP requests/response cycles:"
+msgstr "Seam include una classe d'utilità che agevola la creazione di test d'unità per un architettura RESTful. Si estenda la classe <literal>SeamTest</literal> come al solito e si usi <literal>ResourceRequestEnvironment.ResourceRequest</literal> per emulare i cicli richiesta/risposta HTTP:"
#. Tag: programlisting
-#: Webservices.xml:454
+#: Webservices.xml:455
#, no-c-format
msgid ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
-" {\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment(this), Method.GET, \"/my/relative/uri)\n"
"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/uri)\n"
+" {\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -927,39 +935,46 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
msgstr ""
-"<![CDATA[import org.jboss.seam.resteasy.testfwk.ResourceSeamTest;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletResponse;\n"
-"import org.jboss.seam.resteasy.testfwk.MockHttpServletRequest;\n"
+"<![CDATA[import org.jboss.seam.mock.ResourceRequestEnvironment;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletRequest;\n"
+"import org.jboss.seam.mock.EnhancedMockHttpServletResponse;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.ResourceRequest;\n"
+"import static org.jboss.seam.mock.ResourceRequestEnvironment.Method;\n"
"\n"
-"public class MyTest extends ResourceSeamTest {\n"
+"public class MyTest extends SeamTest {\n"
"\n"
-" @Override\n"
-" public Map<String, Object> getDefaultHeaders()\n"
-" {\n"
-" return new HashMap<String, Object>()\n"
-" {{\n"
-" put(\"Accept\", \"text/plain\");\n"
-" }};\n"
+" ResourceRequestEnvironment sharedEnvironment;\n"
+"\n"
+" @BeforeClass\n"
+" public void prepareSharedEnvironment() throws Exception {\n"
+" sharedEnvironment = new ResourceRequestEnvironment(this) {\n"
+" @Override\n"
+" public Map<String, Object> getDefaultHeaders() {\n"
+" return new HashMap<String, Object>() {{\n"
+" put(\"Accept\", \"text/plain\");\n"
+" }};\n"
+" }\n"
+" };\n"
" }\n"
"\n"
" @Test\n"
" public void test() throws Exception\n"
" {\n"
-" new ResourceRequest(Method.GET, \"/my/relative/uri)\n"
-" {\n"
+" //Not shared: new ResourceRequest(new ResourceRequestEnvironment(this), Method.GET, \"/my/relative/uri)\n"
"\n"
+" new ResourceRequest(sharedEnvironment, Method.GET, \"/my/relative/uri)\n"
+" {\n"
" @Override\n"
-" protected void prepareRequest(MockHttpServletRequest request)\n"
+" protected void prepareRequest(EnhancedMockHttpServletRequest request)\n"
" {\n"
" request.addQueryParameter(\"foo\", \"123\");\n"
" request.addHeader(\"Accept-Language\", \"en_US, de\");\n"
" }\n"
"\n"
" @Override\n"
-" protected void onResponse(MockHttpServletResponse response)\n"
+" protected void onResponse(EnhancedMockHttpServletResponse response)\n"
" {\n"
" assert response.getStatus() == 200;\n"
" assert response.getContentAsString().equals(\"foobar\");\n"
@@ -967,42 +982,17 @@
"\n"
" }.run();\n"
" }\n"
-"\n"
"}]]>"
#. Tag: para
-#: Webservices.xml:456
+#: Webservices.xml:457
#, no-c-format
-msgid "This test only executes local calls, it does not communicate with the <literal>SeamResourceServlet</literal> through TCP. The mock request is passed through the Seam servlet and filters and the response is then available for test assertions. Overriding the <literal>getDefaultHeaders()</literal> method allows you to set request headers for every test method in the test class."
-msgstr "Questo test esegue soltanto chiamate locali, non comunica con <literal>SeamResourceServlet</literal> attraverso TCP. La richiesta mock viene passata attraverso il servlet ed i filtri Seam e la risposta è poi disponibile per asserzioni di test. L'override del metodo <literal>getDefaultHeaders()</literal> consente di impostare gli header di richiesta per ogni metodo di test nella classe di test."
+msgid "This test only executes local calls, it does not communicate with the <literal>SeamResourceServlet</literal> through TCP. The mock request is passed through the Seam servlet and filters and the response is then available for test assertions. Overriding the <literal>getDefaultHeaders()</literal> method in a shared instance of <literal>ResourceRequestEnvironment</literal> allows you to set request headers for every test method in the test class."
+msgstr "Questo test esegue soltanto chiamate locali, non comunica con <literal>SeamResourceServlet</literal> attraverso TCP. La richiesta mock viene passata attraverso il servlet ed i filtri Seam e la risposta è poi disponibile per asserzioni di test. L'override del metodo <literal>getDefaultHeaders()</literal> in un'istanza condivisa di <literal>ResourceRequestEnvironment</literal> consente di impostare gli header di richiesta per ogni metodo di test nella classe di test."
#. Tag: para
-#: Webservices.xml:463
+#: Webservices.xml:465
#, no-c-format
-msgid "Note that a <literal>ResourceRequest</literal> has to be executed in a <literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> callback. You can and should not execute it in any other callback, such as <literal>@BeforeClass</literal>. (This is an implementation limitation we will remove in a future update.)"
-msgstr "Si noti che <literal>ResourceRequest</literal> deve essere eseguita in un metodo <literal>@Test</literal> o in una callback <literal>@BeforeMethod</literal>. Si può, ma non si dovrebbe eseguirla in altre callback, come <literal>@BeforeClass</literal>. (Questa è una limitazione che verrà rimossa in futuro.)"
+msgid "Note that a <literal>ResourceRequest</literal> has to be executed in a <literal>@Test</literal> method or in a <literal>@BeforeMethod</literal> callback. You can not execute it in any other callback, such as <literal>@BeforeClass</literal>."
+msgstr "Si noti che <literal>ResourceRequest</literal> deve essere eseguita in un metodo <literal>@Test</literal> o in una callback <literal>@BeforeMethod</literal>. Si può, ma non si dovrebbe eseguirla in altre callback, come <literal>@BeforeClass</literal>."
-# Rivedere la frase
-#. Tag: para
-#: Webservices.xml:470
-#, no-c-format
-msgid "Also note that the imported mock objects are not the same as the mock objects you use in other Seam unit tests, which are in the package <literal>org.jboss.seam.mock</literal>. The <literal>org.jboss.seam.resteasy.testfwk</literal> variations mimic real requests and responses much more closely."
-msgstr "Si noti anche che gli oggetti mock importati non sono gli stessi degli oggetti mock usati in altri unit test che sono nel pacchetto <literal>org.jboss.seam.mock</literal>. <literal>org.jboss.seam.resteasy.testfwk</literal> simula richieste e risposte in modo molto preciso."
-
-#~ msgid ""
-#~ "EJB Seam components are currently <emphasis>NOT</emphasis> supported! "
-#~ "However, as explained above, you can map plain stateless EJBs (with no "
-#~ "Seam lifecycle or injection) as REST resources."
-#~ msgstr ""
-#~ "I componenti Seam EJBsono <emphasis>NON</emphasis> sono attualmente "
-#~ "supportati! Comunque, come spiegato sopra, è possibile mappare semplici "
-#~ "EJB stateless (senza alcuna gestione del ciclo di vita o injection da "
-#~ "parte di Seam) come risorse REST."
-#~ msgid ""
-#~ "Provider classes can also be Seam components, currently only "
-#~ "<literal>APPLICATION</literal>-scoped provider components are supported."
-#~ msgstr ""
-#~ "Anche le classi dei provider possono essere dei componenti Seam, e "
-#~ "attualmente sono supportati soltanto componenti provider con scope "
-#~ "<literal>APPLICATION</literal>."
-
15 years, 7 months
Seam SVN: r11260 - branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-07-08 10:31:10 -0400 (Wed, 08 Jul 2009)
New Revision: 11260
Modified:
branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Excel.po
Log:
Italian translation
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Excel.po
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Excel.po 2009-07-08 12:31:31 UTC (rev 11259)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/it-IT/Excel.po 2009-07-08 14:31:10 UTC (rev 11260)
@@ -6,7 +6,7 @@
"Project-Id-Version: Seam_Reference_Guide\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-07-03 07:29+0000\n"
-"PO-Revision-Date: 2009-07-07 18:58+0100\n"
+"PO-Revision-Date: 2009-07-08 16:29+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -221,7 +221,7 @@
#: Excel.xml:117
#, no-c-format
msgid "<literal>type</literal> — Defines which export module to be used. The value is a string and can be either \"jxl\" or \"csv\". The default is \"jxl\"."
-msgstr "<literal>type</literal> — Definisce quale module esporto usare. Il valore è una string e può essere o \"jxl\" o \"csv\". Il default è \"jxl\"."
+msgstr "<literal>type</literal> — Definisce quale modulo export usare. Il valore è una stringa e può essere o \"jxl\" o \"csv\". Il default è \"jxl\"."
#. Tag: para
#: Excel.xml:125
@@ -381,7 +381,7 @@
#: Excel.xml:334
#, no-c-format
msgid "<literal><e:worksheet/></literal> — Zero or more worksheets (see <xref linkend=\"excel.worksheet\"/> )."
-msgstr "<literal><e:worksheet/></literal> — Zero or più fogli di lavoro (see <xref linkend=\"excel.worksheet\"/> )."
+msgstr "<literal><e:worksheet/></literal> — Zero o più fogli di lavoro (si veda <xref linkend=\"excel.worksheet\"/> )."
#. Tag: emphasis
#: Excel.xml:343
15 years, 7 months