@Test public void invokeParamListNull() { FunctionTestUtil.assertResultError(countFunction.invoke((List) null), InvalidParametersEvent.class); }
public FEELFnResult<BigDecimal> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } return FEELFnResult.ofResult( BigDecimal.valueOf( list.size() ) ); }
CountFunction extends BaseFEELFunction { public FEELFnResult<BigDecimal> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } return FEELFnResult.ofResult( BigDecimal.valueOf( list.size() ) ); } }
CountFunction extends BaseFEELFunction { public FEELFnResult<BigDecimal> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } return FEELFnResult.ofResult( BigDecimal.valueOf( list.size() ) ); } CountFunction(); }
CountFunction extends BaseFEELFunction { public FEELFnResult<BigDecimal> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } return FEELFnResult.ofResult( BigDecimal.valueOf( list.size() ) ); } CountFunction(); FEELFnResult<BigDecimal> invoke(@ParameterName( "list" ) List list); FEELFnResult<BigDecimal> invoke(@ParameterName( "c" ) Object[] list); }
CountFunction extends BaseFEELFunction { public FEELFnResult<BigDecimal> invoke(@ParameterName( "list" ) List list) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } return FEELFnResult.ofResult( BigDecimal.valueOf( list.size() ) ); } CountFunction(); FEELFnResult<BigDecimal> invoke(@ParameterName( "list" ) List list); FEELFnResult<BigDecimal> invoke(@ParameterName( "c" ) Object[] list);  }