Comments (1)
Hi @EmilioMN92
I think I see what might be happening here, but I cannot reproduce with a more simple test, included below. I'd have to do a bit more research.
May I suggest reducing your case to its bare essentials, which may uncover some overlooked bit of information.
IBase.cls
public interface IBase {
void One();
}
InterfaceResolveTest.cls
@Istest
private class InterfaceResolveTest {
@IsTest
private static void test() {
ISuper suuper = (ISuper) Test.createStub(ISuper.class, new Stubby());
System.assertEquals('ISuper', new InterfaceResolveTest().setMock(suuper));
}
private String setMock(IBase mock) {
return 'IBase';
}
private String setMock(ISuper mock) {
return 'ISuper';
}
}
ISuper.cls
public interface ISuper extends IBase {
void Two();
}
Stubby.cls
public class Stubby implements StubProvider {
public Object handleMethodCall(
Object stubbedObject,
String stubbedMethodName,
Type returnType,
List<Type> listOfParamTypes,
List<String> listOfParamNames,
List<Object> listOfArgs) {
return this;
}
}
from fflib-apex-common-samplecode.
Related Issues (20)
- Hello World Tutorial for APEX Mocks HOT 10
- Mocks.cls using deprecated mockNonVoidMethod & mockVoidMethod method HOT 2
- Interplay between onValidate and onAfterInsert/Update HOT 4
- Error Message "Dependent class is invalid and needs recompilation" when deploying in blank org HOT 6
- Deployment Issue HOT 2
- Typo? HOT 2
- Migrate to SFDX Source Format
- The Youtube video in readme is private HOT 1
- Deployment Fails OpportunitiesTest HOT 1
- Error occurs during ant migration HOT 1
- Alternative instantiation for Services HOT 3
- DreamForce 2013 video is unavailable
- Deploy does not work - Class InvoicingServiceImpl : Illegal assignment from fflib_IDomain to fflib_ISObjectDomain HOT 3
- OpportunitiesTest: testUpdateAccountOnInsertOfOpportunity fails HOT 1
- Create Releases and add docs when introducing Breaking changes HOT 2
- Test can't be deployed - Method does not exist or incorrect signature: void selectSObjectsById HOT 3
- doWork not being called when Mocking Unit of Work
- Missing methods in IOpportunitiesSelector
- Example of using domains of arbitrary ApexTypes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fflib-apex-common-samplecode.