Code Monkey home page Code Monkey logo

Comments (8)

afawcett avatar afawcett commented on May 27, 2024

Thanks for raising this, @frup42 and I are looking into this....

from fflib-apex-mocks.

dfruddffdc avatar dfruddffdc commented on May 27, 2024

Thanks for raising this issue (and fixing the similar issue in fflib-apex-common). We've tried running the failing test classes in a couple of different Spring 16 orgs, and have been unable to replicate the test failures. Hopefully this means the platform bug has been addressed!

Would you be able to confirm if these tests are still failing if you run them now? If they are, can you tell us your org details, in case they explain the difference in behaviour?

  • What API version are using for the fflib classes?
  • What API version for the rest of the classes, components?
  • Which SF instance are you running on?
  • What org type are you running (developer edition, professional edition etc)?
  • Are you seeing the problem in more than one org? If so, are these all on Spring 16?

I wouldn’t want to ask you to share the login details for your orgs containing production code - so if you are getting the issue across other orgs, would you be able to give us a sanitised version without any of that private stuff in where you still get the issue?

Presumably this would be a case of deploying just apexmocks into an org, but like I say - when we’ve done this we have been unable to replicate.

from fflib-apex-mocks.

rfjolnisson avatar rfjolnisson commented on May 27, 2024

Tests are now working on all our EU5 instances as normal.

We run everything on 33.0 at the moment. We were seeing this issue only on dev orgs on EU5 instances. We also have EU0, EU1, EU2, EU3, AP0 & AP1 dev orgs where the tests ran as normal.

from fflib-apex-mocks.

afawcett avatar afawcett commented on May 27, 2024

Thanks for the update. 👍

from fflib-apex-mocks.

dk-dev avatar dk-dev commented on May 27, 2024

Just FYI, we are getting this too on NA5. Below is when deploying fflib-apex-common

fflib_ApexMocksTest
whenStubExceptionTheExceptionShouldBeThrown
System.AssertException: Assertion Failed 
Stack Trace: Class.fflib_ApexMocksTest.whenStubExceptionTheExceptionShouldBeThrown: line 222, column 1

fflib_ApexMocksTest whenStubMultipleVoidMethodsWithExceptionsThenExceptionsShouldBeThrown System.AssertException: Assertion Failed: Stubbed exception should have been thrown. 
Stack Trace: Class.fflib_ApexMocksTest.whenStubMultipleVoidMethodsWithExceptionsThenExceptionsShouldBeThrown: line 268, column 1

fflib_ApexMocksTest whenStubVoidMethodWithExceptionAndCallMethodTwiceThenExceptionShouldBeThrownTwice System.AssertException: Assertion Failed: Stubbed exception should have been thrown. 
Stack Trace: Class.fflib_ApexMocksTest.whenStubVoidMethodWithExceptionAndCallMethodTwiceThenExceptionShouldBeThrownTwice: line 306, column 1

fflib_ApexMocksTest whenStubVoidMethodWithExceptionThenExceptionShouldBeThrown System.AssertException: Assertion Failed: Stubbed exception should have been thrown. 
Stack Trace: Class.fflib_ApexMocksTest.whenStubVoidMethodWithExceptionThenExceptionShouldBeThrown: line 242, column 1

fflib_SObjectUnitOfWorkTest testDerivedUnitOfWork_CommitSuccess System.DmlException: Insert failed. First exception on row 40; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Usage limit reached{Queries remaining:4}.........Stack{Class.rstk.ObjectFinder.checkUsage: line 191, column 1 Class.rstk.ObjectFinder.getCount: line 8, column 1 Class.rstk.ObjectFinder: line 14, column 1 Class.rstk.TriggerUtil.checkDuplicate: line 577, column 1 Class.rstk.TriggerHandler.checkDuplicate: line 207, column 1 Class.rstk.TriggerHandler.before: line 194, column 1 Class.rstk.TriggerHandler.delegate: line 83, column 1 Trigger.rstk.OpportunityLineItem: line 2, column 1}: [] 
Stack Trace: Class.fflib_SObjectUnitOfWork.SimpleDML.dmlInsert: line 91, column 1 Class.fflib_SObjectUnitOfWork.commitWork: line 304, column 1 Class.fflib_SObjectUnitOfWorkTest.testDerivedUnitOfWork_CommitSuccess: line 206, column 1

fflib_SObjectUnitOfWorkTest testUnitOfWorkNewDirtyDelete System.DmlException: Insert failed. First exception on row 40; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Usage limit reached{Queries remaining:4}.........Stack{Class.rstk.ObjectFinder.checkUsage: line 191, column 1 Class.rstk.ObjectFinder.getCount: line 8, column 1 Class.rstk.ObjectFinder: line 14, column 1 Class.rstk.TriggerUtil.checkDuplicate: line 577, column 1 Class.rstk.TriggerHandler.checkDuplicate: line 207, column 1 Class.rstk.TriggerHandler.before: line 194, column 1 Class.rstk.TriggerHandler.delegate: line 83, column 1 Trigger.rstk.OpportunityLineItem: line 2, column 1}: [] 
Stack Trace: Class.fflib_SObjectUnitOfWork.SimpleDML.dmlInsert: line 91, column 1 Class.fflib_SObjectUnitOfWork.commitWork: line 304, column 1 Class.fflib_SObjectUnitOfWorkTest.testUnitOfWorkNewDirtyDelete: line 69, column 1

from fflib-apex-mocks.

afawcett avatar afawcett commented on May 27, 2024

Salesforce are working on a fix for this.

from fflib-apex-mocks.

Oblongmana avatar Oblongmana commented on May 27, 2024

Just dropping in to give a +1 on NA3. Will comment out in the interim.

Let me know if any further info required, but I'm hoping...

Salesforce are working on a fix for this.

...means the issue's been identified as an SF internal issue that they're fixing?

from fflib-apex-mocks.

loganm avatar loganm commented on May 27, 2024

+1 on CS6

Problem is transient. Deploy again and the tests will pass.
Good to hear Salesforce is on the case.

from fflib-apex-mocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.