Seam SVN: r13852 - branches/enterprise.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-10-14 06:00:04 -0400 (Thu, 14 Oct 2010)
New Revision: 13852
Added:
branches/enterprise/JBPAPP_4_3_CP08_JBPAPP-5180/
Log:
created branch for One-off JBPAPP-5180
Copied: branches/enterprise/JBPAPP_4_3_CP08_JBPAPP-5180 (from rev 13851, tags/JBPAPP_4_3_CP08)
14 years, 2 months
Seam SVN: r13851 - in modules/xml/trunk/impl/src: main/java/org/jboss/seam/xml/parser/namespace and 2 other directories.
by seam-commits@lists.jboss.org
Author: swd847
Date: 2010-10-14 05:39:25 -0400 (Thu, 14 Oct 2010)
New Revision: 13851
Modified:
modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ParametersXmlItem.java
modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/XmlItemType.java
modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/PackageNamespaceElementResolver.java
modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/RootNamespaceElementResolver.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/Bean2.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java
modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/simple/simple-beans.xml
Log:
Allow the user to resolve fields and methods with the same name
Modified: modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ParametersXmlItem.java
===================================================================
--- modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ParametersXmlItem.java 2010-10-14 07:56:30 UTC (rev 13850)
+++ modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ParametersXmlItem.java 2010-10-14 09:39:25 UTC (rev 13851)
@@ -37,7 +37,7 @@
public Set<TypeOccuranceInformation> getAllowedItem()
{
- return Collections.singleton(TypeOccuranceInformation.of(XmlItemType.PARAMETER, 1, null));
+ return Collections.singleton(TypeOccuranceInformation.of(XmlItemType.PARAMETER, null, null));
}
}
Modified: modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/XmlItemType.java
===================================================================
--- modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/XmlItemType.java 2010-10-14 07:56:30 UTC (rev 13850)
+++ modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/XmlItemType.java 2010-10-14 09:39:25 UTC (rev 13851)
@@ -23,5 +23,37 @@
public enum XmlItemType
{
- CLASS, METHOD, FIELD, ANNOTATION, VALUE, ENTRY, KEY, DEPENDENCY, PARAMETERS, PARAMETER, ARRAY, REPLACE, MODIFIES;
+ CLASS, METHOD, FIELD, ANNOTATION, VALUE("value", "v"), ENTRY("entry", "e"), KEY("key", "k"), DEPENDENCY, PARAMETERS("parameters"), PARAMETER, ARRAY("array"), REPLACE("replaces"), MODIFIES("modifies");
+
+ private final String elementName;
+ private final String alias;
+
+ private XmlItemType(String elementName, String alias)
+ {
+ this.elementName = elementName;
+ this.alias = alias;
+ }
+
+ private XmlItemType(String elementName)
+ {
+ this.elementName = elementName;
+ this.alias = null;
+ }
+
+ private XmlItemType()
+ {
+ this.elementName = "";
+ this.alias = "";
+ }
+
+ public String getElementName()
+ {
+ return elementName;
+ }
+
+ public String getAlias()
+ {
+ return alias;
+ }
+
}
Modified: modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/PackageNamespaceElementResolver.java
===================================================================
--- modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/PackageNamespaceElementResolver.java 2010-10-14 07:56:30 UTC (rev 13850)
+++ modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/PackageNamespaceElementResolver.java 2010-10-14 09:39:25 UTC (rev 13851)
@@ -36,7 +36,6 @@
import org.jboss.seam.xml.parser.SaxNode;
import org.jboss.seam.xml.util.PropertyUtils;
import org.jboss.seam.xml.util.TypeOccuranceInformation;
-import org.jboss.seam.xml.util.XmlConfigurationException;
import org.jboss.weld.extensions.properties.Property;
import org.jboss.weld.extensions.properties.query.NamedPropertyCriteria;
import org.jboss.weld.extensions.properties.query.PropertyQueries;
@@ -106,7 +105,7 @@
// if the item can be a method of a FIELD
if (TypeOccuranceInformation.isTypeInSet(parent.getAllowedItem(), XmlItemType.METHOD) || TypeOccuranceInformation.isTypeInSet(parent.getAllowedItem(), XmlItemType.FIELD))
{
- return resolveMethodOrField(name, parent, node.getInnerText(), node.getDocument(), node.getLineNo());
+ return resolveMethodOrField(name, parent, node);
}
else
{
@@ -120,7 +119,7 @@
return null;
}
- public static XmlItem resolveMethodOrField(String name, XmlItem parent, String innerText, String document, int lineno)
+ public static XmlItem resolveMethodOrField(String name, XmlItem parent, SaxNode node)
{
Class<?> p = parent.getJavaClass();
boolean methodFound = Reflections.methodExists(p, name);
@@ -130,17 +129,29 @@
if (methodFound && property != null)
{
- throw new XmlConfigurationException(parent.getJavaClass().getName() + " has both a method and a property named " + name + " and so cannot be configured via XML", document, lineno);
+ // if there is both a method and a field of the same name
+ // we look for the <parameters> element
+ for (SaxNode child : node.getChildren())
+ {
+ if (child.getName().equals(XmlItemType.PARAMETERS.getElementName()))
+ {
+ property = null;
+ }
+ }
+ if (property != null)
+ {
+ methodFound = false;
+ }
}
if (methodFound)
{
- return new MethodXmlItem(parent, name, document, lineno);
+ return new MethodXmlItem(parent, name, node.getDocument(), node.getLineNo());
}
else if (property != null)
{
// ensure the property is accessible
PropertyUtils.setAccessible(property);
- return new PropertyXmlItem(parent, property, innerText, null, document, lineno);
+ return new PropertyXmlItem(parent, property, node.getInnerText(), null, node.getDocument(), node.getLineNo());
}
return null;
}
Modified: modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/RootNamespaceElementResolver.java
===================================================================
--- modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/RootNamespaceElementResolver.java 2010-10-14 07:56:30 UTC (rev 13850)
+++ modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/RootNamespaceElementResolver.java 2010-10-14 09:39:25 UTC (rev 13851)
@@ -57,31 +57,31 @@
XmlItem getRootItem(SaxNode node, XmlItem parent)
{
String item = node.getName();
- if (item.equals("value") || item.equals("v"))
+ if (item.equals(XmlItemType.VALUE.getElementName()) || item.equals(XmlItemType.VALUE.getAlias()))
{
return new ValueXmlItem(parent, node.getInnerText(), node.getDocument(), node.getLineNo());
}
- else if (item.equals("key") || item.equals("k"))
+ else if (item.equals(XmlItemType.KEY.getElementName()) || item.equals(XmlItemType.KEY.getAlias()))
{
return new KeyXmlItem(parent, node.getInnerText(), node.getDocument(), node.getLineNo());
}
- else if (item.equals("entry") || item.equals("e"))
+ else if (item.equals(XmlItemType.ENTRY.getElementName()) || item.equals(XmlItemType.ENTRY.getAlias()))
{
return new EntryXmlItem(parent, node.getDocument(), node.getLineNo());
}
- else if (item.equals("array"))
+ else if (item.equals(XmlItemType.ARRAY.getElementName()))
{
return new ArrayXmlItem(parent, node.getAttributes(), node.getDocument(), node.getLineNo());
}
- else if (item.equals("replaces"))
+ else if (item.equals(XmlItemType.REPLACE.getElementName()))
{
return new ReplacesXmlItem(parent, node.getDocument(), node.getLineNo());
}
- else if (item.equals("modifies"))
+ else if (item.equals(XmlItemType.MODIFIES.getElementName()))
{
return new ModifiesXmlItem(parent, node.getDocument(), node.getLineNo());
}
- else if (item.equals("parameters"))
+ else if (item.equals(XmlItemType.PARAMETERS.getElementName()))
{
return new ParametersXmlItem(parent, node.getDocument(), node.getLineNo());
}
Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/Bean2.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/Bean2.java 2010-10-14 07:56:30 UTC (rev 13850)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/Bean2.java 2010-10-14 09:39:25 UTC (rev 13851)
@@ -41,4 +41,6 @@
{
return new Bean3();
}
+
+ public String produceBean3;
}
Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java
===================================================================
--- modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java 2010-10-14 07:56:30 UTC (rev 13850)
+++ modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java 2010-10-14 09:39:25 UTC (rev 13851)
@@ -51,6 +51,9 @@
Assert.assertTrue(x != null);
Assert.assertTrue(x.bean2 != null);
+ Bean2 bean2 = getReference(Bean2.class);
+ Assert.assertEquals("test value", bean2.produceBean3);
+
Bean3 y = getReference(Bean3.class);
Assert.assertTrue(y != null);
Assert.assertTrue("Post construct method not called", x.value == 1);
Modified: modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/simple/simple-beans.xml
===================================================================
--- modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/simple/simple-beans.xml 2010-10-14 07:56:30 UTC (rev 13850)
+++ modules/xml/trunk/impl/src/test/resources/org/jboss/seam/xml/test/simple/simple-beans.xml 2010-10-14 09:39:25 UTC (rev 13851)
@@ -20,7 +20,9 @@
<replaces/>
<test:produceBean3>
<Produces/>
+ <parameters/>
</test:produceBean3>
+ <test:produceBean3>test value</test:produceBean3>
</test:Bean2>
<test:OverriddenBean>
14 years, 2 months
Seam SVN: r13850 - modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace.
by seam-commits@lists.jboss.org
Author: swd847
Date: 2010-10-14 03:56:30 -0400 (Thu, 14 Oct 2010)
New Revision: 13850
Modified:
modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/RootNamespaceElementResolver.java
Log:
add additional weldx packages to the root namespace
Modified: modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/RootNamespaceElementResolver.java
===================================================================
--- modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/RootNamespaceElementResolver.java 2010-10-14 07:47:30 UTC (rev 13849)
+++ modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/RootNamespaceElementResolver.java 2010-10-14 07:56:30 UTC (rev 13850)
@@ -38,7 +38,7 @@
{
private final CompositeNamespaceElementResolver delegate;
- static final String[] namspaces = { "java.lang", "java.util", "javax.annotation", "javax.inject", "javax.enterprise.inject", "javax.enterprise.context", "javax.enterprise.event", "javax.decorator", "javax.interceptor", "org.jboss.seam.xml.annotations.internal", "org.jboss.weld.extensions.core" };
+ static final String[] namspaces = { "java.lang", "java.util", "javax.annotation", "javax.inject", "javax.enterprise.inject", "javax.enterprise.context", "javax.enterprise.event", "javax.decorator", "javax.interceptor", "org.jboss.seam.xml.annotations.internal", "org.jboss.weld.extensions.core", "org.jboss.weld.extensions.unwraps", "org.jboss.weld.extensions.resourceLoader" };
public RootNamespaceElementResolver()
{
14 years, 2 months
Seam SVN: r13849 - branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-10-14 03:47:30 -0400 (Thu, 14 Oct 2010)
New Revision: 13849
Modified:
branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Jms.xml
Log:
JBPAPP-1835 documented asynchronous issue with ThreadPoolDispatcher
Modified: branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Jms.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Jms.xml 2010-10-14 07:41:34 UTC (rev 13848)
+++ branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Jms.xml 2010-10-14 07:47:30 UTC (rev 13849)
@@ -81,12 +81,27 @@
</para>
<para>
- For EJB components, we annotate the implementation of bean to specify that a method is processed
+ For EJB components, we annotate the local interface to specify that a method is processed
asynchronously.
</para>
+ <note>
+ <title>Asynchronous annotation while ThreadPoolDispatcher is used</title>
+ <para>If you use <literal>org.jboss.seam.async.ThreadPoolDispatcher</literal> as an asynchronous dispatcher in your EJB3 code,
+ you have to annotate with <literal>@Asynchronous</literal> annotation Bean class method and not local interface method like shown in example.</para>
+
+ <para>Spawning threads from local interface is not supported.</para>
+ </note>
+
+ <programlisting role="JAVA"><![CDATA[@Local
+public interface PaymentHandler
+{
+ @Asynchronous
+ public void processPayment(Payment payment);
+}]]></programlisting>
+
<para>
- For JavaBean components we annotate the component implementation class.
+ (For JavaBean components we can annotate the component implementation class if we like.)
</para>
<para>
@@ -97,7 +112,6 @@
@Name("paymentHandler")
public class PaymentHandlerBean implements PaymentHandler
{
- @Asynchronous
public void processPayment(Payment payment)
{
//do some work!
14 years, 2 months
Seam SVN: r13848 - branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-10-14 03:41:34 -0400 (Thu, 14 Oct 2010)
New Revision: 13848
Modified:
branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Book_Info.xml
Log:
updating reference guide book version info
Modified: branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Book_Info.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Book_Info.xml 2010-10-13 20:16:31 UTC (rev 13847)
+++ branches/enterprise/JBPAPP_4_3_FP01/doc/Seam_Reference_Guide/en-US/Book_Info.xml 2010-10-14 07:41:34 UTC (rev 13848)
@@ -3,14 +3,14 @@
]>
<bookinfo id="Seam_Reference_Guide-Seam___Contextual_Components">
<title>Seam Reference Guide</title>
- <subtitle>for Use with JBoss Enterprise Application Platform 4.3.0 Cumulative Patch 7</subtitle>
+ <subtitle>for Use with JBoss Enterprise Application Platform 4.3.0 Cumulative Patch 9</subtitle>
<edition>2.0</edition>
<pubsnumber>2</pubsnumber>
<productname>JBoss Enterprise Application Platform</productname>
<productnumber>4.3</productnumber>
- <pubdate>December, 2008</pubdate>
+ <pubdate>November, 2010</pubdate>
<isbn>N/A</isbn>
- <abstract><para>This book is a Reference Guide to Seam 2.0.2.FP for JBoss Enterprise Application Platform 4.3.0_CP07</para>
+ <abstract><para>This book is a Reference Guide to Seam 2.0.2.FP for JBoss Enterprise Application Platform 4.3.0_CP09</para>
</abstract>
<corpauthor>
<inlinemediaobject>
14 years, 2 months
Seam SVN: r13847 - modules/persistence/trunk/docs/src/main/docbook/en-US.
by seam-commits@lists.jboss.org
Author: swd847
Date: 2010-10-13 16:16:31 -0400 (Wed, 13 Oct 2010)
New Revision: 13847
Modified:
modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-general.xml
Log:
minor doc update
Modified: modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-general.xml
===================================================================
--- modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-general.xml 2010-10-13 18:24:21 UTC (rev 13846)
+++ modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-general.xml 2010-10-13 20:16:31 UTC (rev 13847)
@@ -203,9 +203,9 @@
<para>
By default seam will attempt to look up <literal>java:comp/UserTransaction</literal> from JNDI
- (or alternatively retrieve it from the EJBContext if a container managed transaction is active).
- Installing <code>EntityTransaction</code> tells seam to use the JPA <code>EntityTransaction</code>
- instead. To use this you must have a
+ (or alternatively retrieve it from the <code>EJBContext</code> if a container managed transaction
+ is active). Installing <code>EntityTransaction</code> tells seam to use the JPA
+ <code>EntityTransaction</code> instead. To use this you must have a
<link linkend="persistence.seam-managed-persistence-contexts">Seam Managed Persistence Context</link>
installed with qualifier <code>@Default</code>.
</para>
@@ -232,17 +232,22 @@
<code>@TransactionAttribute</code> for this purpose, however it also provides
an alternative <code>@Transactional</code> annotation for environments where
the EJB API's are not available. An alternative to <code>@ApplicationException</code>,
- <code>@SeamApplicationException</code> is also provided. Unlike EJBs managed beans
+ <code>@SeamApplicationException</code> is also provided. Unlike EJBs, managed beans
are not transactional by default, you can change this by adding the
<code>@TransactionAttribute</code> to the bean class.
</para>
<para>
- If you are using seam managed transactions you do not need to worry about declarative
- transaction management. Seam will automatically start a transaction for you at the
- start of the faces request, and commit it before the render response phase.
+
</para>
+ <para>
+ If you are using seam managed transactions as part of the seam-faces module you do not
+ need to worry about declarative transaction management. Seam will automatically start
+ a transaction for you at the start of the faces request, and commit it before the
+ render response phase.
+ </para>
+
<warning>
<para>
<code>@SeamApplicationException</code> will not control transaction rollback
@@ -251,6 +256,7 @@
and <code>@ApplicationException</code>.
</para>
</warning>
+
<note>
<para>
<code>TransactionAttributeType.REQUIRES_NEW</code> and
@@ -258,6 +264,7 @@
beans. This will be added before seam-persistence goes final.
</para>
</note>
+
<para>
Lets have a look at some code. Annotations applied at a method level override annotations
applied at the class level.
@@ -276,7 +283,7 @@
...
}
- /* This a transaction will not be started for this method, however it */
+ /* A transaction will not be started for this method, however it */
/* will not complain if there is an existing transaction active. */
@TransactionAttributeType(TransactionAttributeType.SUPPORTED)
void doMoreWork()
@@ -322,7 +329,7 @@
(for JPA) or a <emphasis>managed session</emphasis> (for Hibernate) in your components.
A Seam-managed persistence context is just a built-in Seam component that manages an
instance of <literal>EntityManager</literal> or <literal>Session</literal> in the
- conversation (or any other) context. You can inject it with <literal>@In</literal>.
+ conversation (or any other) context. You can inject it with <literal>@Inject</literal>.
</para>
<section>
@@ -342,6 +349,7 @@
persistence context can be injected normally, and has the same scope and
qualifiers that are specified on the resource producer field.
</para>
+
<para>
This will work even in a SE environment where <code>@PersistenceUnit</code>
injection is not normally supported. This is because the seam persistence
@@ -385,10 +393,10 @@
<para>
Persistence contexts scoped to the conversation allows you to program optimistic
transactions that span multiple requests to the server without the need to use the
- <literal>merge()</literal> operation , without the need to re-load
+ <code>merge()</code> operation , without the need to re-load
data at the beginning of each request, and without the need to wrestle with the
- <literal>LazyInitializationException</literal> or
- <literal>NonUniqueObjectException</literal>.
+ <code>LazyInitializationException</code> or
+ <code>NonUniqueObjectException</code>.
</para>
<para>
14 years, 2 months
Seam SVN: r13844 - branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-10-13 08:08:27 -0400 (Wed, 13 Oct 2010)
New Revision: 13844
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/AsynchronousTest.java
branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/EventsTest.java
Log:
JBPAPP-4060 extending pauses and changed accounts for testing
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/AsynchronousTest.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/AsynchronousTest.java 2010-10-13 11:17:28 UTC (rev 13843)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/AsynchronousTest.java 2010-10-13 12:08:27 UTC (rev 13844)
@@ -66,7 +66,7 @@
// Wait, let quartz execute the async method which schedules the job
// for immediate execution
- pause(50);
+ pause(1000l);
new FacesRequest("/search.xhtml", id)
{
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/EventsTest.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/EventsTest.java 2010-10-13 11:17:28 UTC (rev 13843)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/EventsTest.java 2010-10-13 12:08:27 UTC (rev 13844)
@@ -66,7 +66,7 @@
// Wait, let quartz execute the async method which schedules the job
// for immediate execution
- pause(50);
+ pause(1000l);
new FacesRequest("/search.xhtml", id)
{
@@ -105,7 +105,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "3");
+ setParameter("accountId", "4");
}
@Override
@@ -128,7 +128,7 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 3;
+ assert account.getId() == 4;
assert account.getPayments().size() == 1;
}
@@ -136,7 +136,7 @@
// Wait, let quartz execute the async method which schedules the job
// for immediate execution
- pause(50);
+ pause(1000l);
new FacesRequest("/search.xhtml", id)
{
@@ -144,7 +144,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "3");
+ setParameter("accountId", "4");
}
@Override
@@ -154,13 +154,13 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 3;
+ assert account.getId() == 4;
assert account.getPayments().size() == 1;
Payment payment = account.getPayments().get(0);
assert new BigDecimal("110.00").equals(payment.getAmount());
//assert !payment.getActive();
//assert payment.getLastPaid() != null;
- assert new BigDecimal("893.46").equals(account.getBalance());
+ assert new BigDecimal("894.46").equals(account.getBalance());
assert (Boolean) getValue("#{transactionStatus.transactionCompleted}");
assert (Boolean) getValue("#{transactionStatus.transactionSucceded}");
assert payment.getId().equals(getValue("#{transactionStatus.id}"));
@@ -177,7 +177,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "3");
+ setParameter("accountId", "5");
}
@Override
@@ -200,7 +200,7 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 3;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
}
@@ -216,7 +216,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "3");
+ setParameter("accountId", "5");
}
@Override
@@ -226,13 +226,13 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 3;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
Payment payment = account.getPayments().get(0);
assert new BigDecimal("120.00").equals(payment.getAmount());
//assert !payment.getActive();
//assert payment.getLastPaid() != null;
- assert new BigDecimal("883.46").equals(account.getBalance());
+ assert new BigDecimal("885.46").equals(account.getBalance());
}
}.run();
14 years, 2 months
Seam SVN: r13843 - modules/persistence/trunk/docs/src/main/docbook/en-US.
by seam-commits@lists.jboss.org
Author: swd847
Date: 2010-10-13 07:17:28 -0400 (Wed, 13 Oct 2010)
New Revision: 13843
Modified:
modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-general.xml
Log:
minor
Modified: modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-general.xml
===================================================================
--- modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-general.xml 2010-10-13 11:03:17 UTC (rev 13842)
+++ modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-general.xml 2010-10-13 11:17:28 UTC (rev 13843)
@@ -90,7 +90,7 @@
<literal>seam-xml.jar</literal> as well for configuration purposes. The
relevant maven configuration is as follows:
</para>
-<programlisting role="XML><![CDATA[<dependency>
+<programlisting role="XML"><![CDATA[<dependency>
<groupId>org.jboss.seam.persistence</groupId>
<artifactId>seam-persistence-api</artifactId>
<version>${seam.persistence.version}</version>
@@ -120,7 +120,7 @@
using java EE this is taken care of for you. If not, we recommend hibernate.
</para>
-<programlisting role="XML><![CDATA[<dependency>
+<programlisting role="XML"><![CDATA[<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.5.1-Final</version>
@@ -179,6 +179,7 @@
</t:EntityTransaction>
</beans>]]></programlisting>
+
<para>
Lets look at these individually.
</para>
14 years, 2 months