The Evaluate Math Expression assertion was a tactical assertion but now it is available as open source in GitHub. You can build the new JAR file for the latest supported Gateway versions.
https://github.com/ca-api-gateway-extensions/evaluate-math-expression
The existing (or older) assertion may have the file named:
EvaluateMathExpressionAssertion-*.jar
EvaluateMathExpressionAssertion-sdk80-1.0-*.jar
EvaluateMathExpressionAssertion-sdk80-1.0-2383.jar
Release : 10.1 and above
Prerequisites:
Here are the steps to build a new JAR file:
C:\gradle-test\evaluate-math-expression>gradle build
BUILD SUCCESSFUL in 5s
5 actionable tasks: 2 executed, 3 up-to-date
Deploying the new file:
If you get any error as shown below then you must edit the build.gradle file in evaluate-math-expression folder.
Error:
C:\gradle-test\evaluate-math-expression>gradle build
> Task :test
com.l7tech.external.custom.evaluatemathexpression.EvaluateMathExpressionServiceInvocationTest > classMethod FAILED
org.mockito.exceptions.base.MockitoException at DefaultInternalRunner.java:39
Caused by: java.lang.UnsupportedOperationException at ClassInjector.java:821
Caused by: java.lang.IllegalStateException at ClassInjector.java:1357
Caused by: java.lang.NoSuchMethodException at Class.java:2108
1 test completed, 1 failed
> Task :test FAILED
FAILURE: Build failed with an exception.
Solution:
Edit the build.gradle file and change this
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.15.0'
to
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.22.0'