-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Mocks.cls class and added build script
See blog, http://andyinthecloud.com/2015/03/29/unit-testing-apex-enterprise-patter ns-and-apexmocks-part-2/
- Loading branch information
1 parent
fbf30f7
commit 2857bd7
Showing
4 changed files
with
43 additions
and
126 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="Apex Commons Sample Application" default="generate.mocks" basedir="."> | ||
|
||
<target name="generate.mocks"> | ||
<java classname="com.financialforce.apexmocks.ApexMockGenerator"> | ||
<classpath> | ||
<pathelement location="${basedir}/bin/apex-mocks-generator-3.1.2.jar"/> | ||
</classpath> | ||
<arg value="${basedir}/fflib-sample-code/src/classes"/> | ||
<arg value="${basedir}/interfacemocks.properties"/> | ||
<arg value="Mocks"/> | ||
<arg value="${basedir}/fflib-sample-code/src/classes"/> | ||
</java> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
IOpportunities=Opportunities:fflib_SObjectMocks.SObjectDomain | ||
IOpportunitiesSelector=OpportunitiesSelector:fflib_SObjectMocks.SObjectSelector | ||
IOpportunitiesService=OpportunitiesService |