-
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.
- Loading branch information
Showing
6 changed files
with
79 additions
and
93 deletions.
There are no files selected for viewing
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
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
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
41 changes: 41 additions & 0 deletions
41
...pex/src/test/resources/net/sourceforge/pmd/lang/apex/metrics/MetadataDeployController.cls
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,41 @@ | ||
public with sharing class MetadataDeployController | ||
{ | ||
private class Foo { | ||
} | ||
|
||
global String ZipData { get; set; } | ||
|
||
public MetadataService.AsyncResult AsyncResult {get; private set;} | ||
|
||
public String getPackageXml(String page) | ||
{ | ||
return '<?xml version="1.0" encoding="UTF-8"?>' + | ||
'<Package xmlns="http://soap.sforce.com/2006/04/metadata">' + | ||
'<types>' + | ||
'<members>HelloWorld</members>' + | ||
'<name>ApexClass</name>' + | ||
'</types>' + | ||
'<version>26.0</version>' + | ||
'</Package>'; | ||
} | ||
|
||
public String getHelloWorldMetadata() | ||
{ | ||
return '<?xml version="1.0" encoding="UTF-8"?>' + | ||
'<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">' + | ||
'<apiVersion>28.0</apiVersion>' + | ||
'<status>Active</status>' + | ||
'</ApexClass>'; | ||
} | ||
|
||
public String getHelloWorld() | ||
{ | ||
return 'public class HelloWorld' + | ||
'{' + | ||
'public static void helloWorld()' + | ||
'{' + | ||
'System.debug(\' Hello World\');' + | ||
'}' + | ||
'}'; | ||
} | ||
} |