[seam-commits] Seam SVN: r13797 - branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Oct 6 09:57:01 EDT 2010
Author: manaRH
Date: 2010-10-06 09:57:01 -0400 (Wed, 06 Oct 2010)
New Revision: 13797
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
branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/RepeatingTest.java
branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/testng.xml
Log:
JBPAPP-4060 - rewrote used account id in different test classes and add preserve-order for testng test classes
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-06 12:41:30 UTC (rev 13796)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/AsynchronousTest.java 2010-10-06 13:57:01 UTC (rev 13797)
@@ -35,7 +35,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "2");
}
@Override
@@ -58,7 +58,7 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 2;
assert account.getPayments().size() == 1;
}
@@ -74,7 +74,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "2");
}
@Override
@@ -83,13 +83,13 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 2;
assert account.getPayments().size() == 1;
Payment payment = account.getPayments().get(0);
assert new BigDecimal("100.00").equals(payment.getAmount());
//assert !payment.getActive();
//assert payment.getLastPaid() != null;
- assert new BigDecimal("901.46").equals(account.getBalance());
+ assert new BigDecimal("902.46").equals(account.getBalance());
}
}.run();
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-06 12:41:30 UTC (rev 13796)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/EventsTest.java 2010-10-06 13:57:01 UTC (rev 13797)
@@ -35,7 +35,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "3");
}
@Override
@@ -58,7 +58,7 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 3;
assert account.getPayments().size() == 1;
}
@@ -74,7 +74,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "3");
}
@Override
@@ -84,13 +84,13 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 3;
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("891.46").equals(account.getBalance());
+ assert new BigDecimal("893.46").equals(account.getBalance());
}
}.run();
@@ -105,7 +105,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "3");
}
@Override
@@ -128,7 +128,7 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 3;
assert account.getPayments().size() == 1;
}
@@ -144,7 +144,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "3");
}
@Override
@@ -154,13 +154,13 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 3;
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("891.46").equals(account.getBalance());
+ assert new BigDecimal("893.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", "1");
+ setParameter("accountId", "3");
}
@Override
@@ -200,7 +200,7 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 3;
assert account.getPayments().size() == 1;
}
@@ -216,7 +216,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "3");
}
@Override
@@ -226,13 +226,13 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 3;
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("881.46").equals(account.getBalance());
+ assert new BigDecimal("883.46").equals(account.getBalance());
}
}.run();
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/RepeatingTest.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/RepeatingTest.java 2010-10-06 12:41:30 UTC (rev 13796)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/RepeatingTest.java 2010-10-06 13:57:01 UTC (rev 13797)
@@ -45,7 +45,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -75,14 +75,14 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
Payment payment = (Payment) getValue("#{newPayment}");
assert payment.getPayee().equals("IRS");
assert payment.getAmount().equals(new BigDecimal("110.00"));
assert payment.getAccount() != null;
- assert payment.getAccount().getId() == 1;
+ assert payment.getAccount().getId() == 5;
assert payment.getActive();
}
@@ -100,7 +100,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -109,14 +109,14 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
Payment payment = account.getPayments().get(0);
assert new BigDecimal("110.00").equals(payment.getAmount());
assert payment.getActive();
assert REPEATING.equals(payment.getPaymentFrequency());
- assert new BigDecimal("891.46").equals(account.getBalance());
+ assert new BigDecimal("895.46").equals(account.getBalance());
}
}.run();
@@ -134,7 +134,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -146,14 +146,14 @@
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
Payment payment = account.getPayments().get(0);
assert new BigDecimal("110.00").equals(payment.getAmount());
assert payment.getActive();
assert REPEATING.equals(payment.getPaymentFrequency());
assert payment.getLastPaid() != null;
- assert new BigDecimal("781.46").equals(account.getBalance());
+ assert new BigDecimal("785.46").equals(account.getBalance());
paymentId = payment.getId();
}
@@ -165,7 +165,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
setParameter("paymentId", paymentId.toString());
}
@@ -185,13 +185,13 @@
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
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("781.46").equals(account.getBalance());
+ assert new BigDecimal("785.46").equals(account.getBalance());
}
}.run();
@@ -206,7 +206,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -217,8 +217,8 @@
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
- assert new BigDecimal("781.46").equals(account.getBalance());
+ assert account.getId() == 5;
+ assert new BigDecimal("785.46").equals(account.getBalance());
}
}.run();
@@ -246,7 +246,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -278,14 +278,14 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
Payment payment = (Payment) getValue("#{newPayment}");
assert payment.getPayee().equals("IRS");
assert payment.getAmount().equals(new BigDecimal("110.00"));
assert payment.getAccount() != null;
- assert payment.getAccount().getId() == 1;
+ assert payment.getAccount().getId() == 5;
assert payment.getActive();
}
@@ -303,7 +303,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -312,12 +312,12 @@
assert ((Boolean)getValue("#{accountHome.idDefined}"));
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
Payment payment = account.getPayments().get(0);
assert new BigDecimal("110.00").equals(payment.getAmount());
assert payment.getActive();
- assert new BigDecimal("1001.46").equals(account.getBalance());
+ assert new BigDecimal("1005.46").equals(account.getBalance());
}
}.run();
@@ -335,7 +335,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -347,12 +347,12 @@
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
Payment payment = account.getPayments().get(0);
assert new BigDecimal("110.00").equals(payment.getAmount());
assert payment.getActive();
- assert new BigDecimal("891.46").equals(account.getBalance());
+ assert new BigDecimal("895.46").equals(account.getBalance());
paymentId = payment.getId();
}
@@ -370,7 +370,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -382,12 +382,12 @@
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
assert account.getPayments().size() == 1;
Payment payment = account.getPayments().get(0);
assert new BigDecimal("110.00").equals(payment.getAmount());
assert payment.getActive();
- assert new BigDecimal("781.46").equals(account.getBalance());
+ assert new BigDecimal("785.46").equals(account.getBalance());
paymentId = payment.getId();
}
@@ -403,7 +403,7 @@
@Override
protected void beforeRequest()
{
- setParameter("accountId", "1");
+ setParameter("accountId", "5");
}
@Override
@@ -414,13 +414,13 @@
Account account = (Account) getValue("#{selectedAccount}");
assert account !=null;
- assert account.getId() == 1;
+ assert account.getId() == 5;
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("781.46").equals(account.getBalance());
+ assert new BigDecimal("785.46").equals(account.getBalance());
}
}.run();
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/testng.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/testng.xml 2010-10-06 12:41:30 UTC (rev 13796)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/src/org/jboss/seam/example/quartz/test/testng.xml 2010-10-06 13:57:01 UTC (rev 13797)
@@ -1,17 +1,17 @@
<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
<suite name="Quartz Example" verbose="2" parallel="false">
- <test name="Quartz Example">
+ <test name="Quartz Example" preserve-order="true">
<parameter name="datasourceJndiName" value="java:/DefaultDS"/>
<classes>
<class name="org.jboss.seam.example.quartz.test.AccountTest" />
- <class name="org.jboss.seam.example.quartz.test.CronTest" />
- <class name="org.jboss.seam.example.quartz.test.OnceTest" />
- <class name="org.jboss.seam.example.quartz.test.RepeatingTest" />
+ <!--<class name="org.jboss.seam.example.quartz.test.CronTest" /> this class has no test method -->
+ <!--<class name="org.jboss.seam.example.quartz.test.OnceTest" /> this class has no test method -->
<class name="org.jboss.seam.example.quartz.test.AsynchronousTest" />
<class name="org.jboss.seam.example.quartz.test.EventsTest" />
+ <class name="org.jboss.seam.example.quartz.test.RepeatingTest" />
</classes>
</test>
</suite>
More information about the seam-commits
mailing list