Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deploying #49

Closed
manudewan opened this issue Aug 21, 2014 · 3 comments
Closed

Error when deploying #49

manudewan opened this issue Aug 21, 2014 · 3 comments

Comments

@manudewan
Copy link

Hi Andy, I'm getting the following error when deploying to my dev org (I used your button/ heroku app):

classes/MetadataServiceTest.cls(76,9):Method does not exist or incorrect signature: Test.setMock(Type, MetadataServiceTest.WebServiceMockImpl)

@afawcett
Copy link
Contributor

So sorry for the late reply, not sure if you got to the bottom of the issue, but i suspect you may have an Apex class called Test in your org. This type of error is a common side effect when this is the case. In any case the fix can be made from my side to use System.Test.setMock to avoid clashing with your own Test class, though i would still recommend for future renaming this class. If this is not the cause, please let me know and we can continue to discuss.

afawcett pushed a commit that referenced this issue Sep 15, 2014
Fix - #49
Demo image upload to showcase cool stuff done with the API
@afawcett
Copy link
Contributor

I have now updated MetadataServiceTest to qualify its use of the Test class, if you take a new copy of this file from the repo, assuming your issue was as above, it should be solved! 👍

@manudewan
Copy link
Author

Thanks Andy, will give it a go and confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants