tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r450956 - in /incubator/tuscany/sandbox/rfeng/samples/mortgage: pom.xml src/test/java/mortgage/MortgageClientTestCase.java
Date Thu, 28 Sep 2006 18:17:17 GMT
Author: rfeng
Date: Thu Sep 28 11:17:16 2006
New Revision: 450956

URL: http://svn.apache.org/viewvc?view=rev&rev=450956
Log: (empty)

Modified:
    incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml
    incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java

Modified: incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml?view=diff&rev=450956&r1=450955&r2=450956
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml (original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml Thu Sep 28 11:17:16 2006
@@ -26,8 +26,8 @@
     <modelVersion>4.0.0</modelVersion>
     <artifactId>sample-mortgage</artifactId>
     <packaging>jar</packaging>
-    <name>Tuscany Mortage Sample</name>
-    <description>A sample Mortage application made of several SCA components wired
together.</description>
+    <name>Tuscany Mortgage Sample</name>
+    <description>A sample Mortgage application made of several SCA components wired
together.</description>
 
     <dependencies>
         <dependency>
@@ -49,7 +49,7 @@
                 <configuration>
                     <archive>
                         <manifest>
-                            <mainClass>mortgage.MortageClient</mainClass>
+                            <mainClass>mortgage.MortgageClient</mainClass>
                         </manifest>
                     </archive>
                 </configuration>

Modified: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java?view=diff&rev=450956&r1=450955&r2=450956
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java
Thu Sep 28 11:17:16 2006
@@ -30,12 +30,12 @@
  */
 public class MortgageClientTestCase extends SCATestCase {
 
-    private LoanApproval loanApplication;
+    private LoanApproval loanApproval;
 
     protected void setUp() throws Exception {
         super.setUp();
         CompositeContext context = CurrentCompositeContext.getContext();
-        loanApplication = context.locateService(LoanApproval.class, "LoanApplicationComponent");
+        loanApproval = context.locateService(LoanApproval.class, "LoanApprovalComponent");
     }
 
     public void testApprove() throws Exception {
@@ -46,7 +46,7 @@
         customer.setMonthlyIncome(5000.0d);
         customer.setState("CA");
 
-        boolean approved = loanApplication.approve(customer, 200000d, 30);
+        boolean approved = loanApproval.approve(customer, 200000d, 30);
         System.out.println(approved ? "Approved" : "Rejected");
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message