* Upgrade API to 67.0 * Remove override due to build failure * Fix test due to dependency changes * Fix failing tests due to dependency changes * New package version 0.10.0-1-api-upgrade-67 created --------- Co-authored-by: Wim Velzeboer <wvelzeb1@its.jnj.com> Co-authored-by: github-actions <github-actions@github.com>
36 lines
853 B
OpenEdge ABL
36 lines
853 B
OpenEdge ABL
@IsTest(IsParallel=true)
|
|
private class fflib_ClassicUnitOfWorkFactoryTest
|
|
{
|
|
@IsTest
|
|
static void testUnitOfWork()
|
|
{
|
|
new fflib_ClassicUnitOfWorkFactory(new List<SObjectType>{ Schema.Account.SObjectType });
|
|
}
|
|
|
|
@IsTest
|
|
static void testUnitOfWorkMock()
|
|
{
|
|
new fflib_ClassicUnitOfWorkFactory()
|
|
.setMock(newUnitOfWorkStub());
|
|
}
|
|
|
|
private static fflib_ISObjectUnitOfWork newUnitOfWorkStub() {
|
|
return (fflib_ISObjectUnitOfWork) Test.createStub(
|
|
fflib_ISObjectUnitOfWork.class,
|
|
new UnitOfWorkStubProvider()
|
|
);
|
|
}
|
|
|
|
private class UnitOfWorkStubProvider implements System.StubProvider {
|
|
public Object handleMethodCall(
|
|
Object stubbedObject,
|
|
String stubbedMethodName,
|
|
System.Type returnType,
|
|
List<System.Type> listOfParamTypes,
|
|
List<String> listOfParamNames,
|
|
List<Object> listOfArgs
|
|
) {
|
|
return null;
|
|
}
|
|
}
|
|
} |