@Test public void invokeWrongType() { FunctionTestUtil.assertResultError(notFunction.invoke(1), InvalidParametersEvent.class); FunctionTestUtil.assertResultError(notFunction.invoke("test"), InvalidParametersEvent.class); FunctionTestUtil.assertResultError(notFunction.invoke(BigDecimal.ZERO), InvalidParametersEvent.class); }
public FEELFnResult<Boolean> invoke(@ParameterName("negand") Object negand) { if ( negand != null && !(negand instanceof Boolean) ) { return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "negand", "must be a boolean value" ) ); } return FEELFnResult.ofResult( negand == null ? null : !((Boolean) negand) ); }
NotFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName("negand") Object negand) { if ( negand != null && !(negand instanceof Boolean) ) { return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "negand", "must be a boolean value" ) ); } return FEELFnResult.ofResult( negand == null ? null : !((Boolean) negand) ); } }
NotFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName("negand") Object negand) { if ( negand != null && !(negand instanceof Boolean) ) { return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "negand", "must be a boolean value" ) ); } return FEELFnResult.ofResult( negand == null ? null : !((Boolean) negand) ); } NotFunction(); }
NotFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName("negand") Object negand) { if ( negand != null && !(negand instanceof Boolean) ) { return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "negand", "must be a boolean value" ) ); } return FEELFnResult.ofResult( negand == null ? null : !((Boolean) negand) ); } NotFunction(); FEELFnResult<Boolean> invoke(@ParameterName("negand") Object negand); }
NotFunction extends BaseFEELFunction { public FEELFnResult<Boolean> invoke(@ParameterName("negand") Object negand) { if ( negand != null && !(negand instanceof Boolean) ) { return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "negand", "must be a boolean value" ) ); } return FEELFnResult.ofResult( negand == null ? null : !((Boolean) negand) ); } NotFunction(); FEELFnResult<Boolean> invoke(@ParameterName("negand") Object negand);  }