You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2006/09/28 20:17:17 UTC

svn commit: r450956 - in /incubator/tuscany/sandbox/rfeng/samples/mortgage: pom.xml src/test/java/mortgage/MortgageClientTestCase.java

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