@Test public void invokeNull() { FunctionTestUtil.assertResultError(concatenateFunction.invoke(null), InvalidParametersEvent.class); }
public FEELFnResult<List<Object>> invoke(@ParameterName("list") Object[] lists) { if ( lists == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); for ( Object list : lists ) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "lists", "one of the elements in the list is null")); } else if ( list instanceof Collection ) { result.addAll( (Collection) list ); } else { result.add( list ); } } return FEELFnResult.ofResult( result ); }
ConcatenateFunction extends BaseFEELFunction { public FEELFnResult<List<Object>> invoke(@ParameterName("list") Object[] lists) { if ( lists == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); for ( Object list : lists ) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "lists", "one of the elements in the list is null")); } else if ( list instanceof Collection ) { result.addAll( (Collection) list ); } else { result.add( list ); } } return FEELFnResult.ofResult( result ); } }
ConcatenateFunction extends BaseFEELFunction { public FEELFnResult<List<Object>> invoke(@ParameterName("list") Object[] lists) { if ( lists == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); for ( Object list : lists ) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "lists", "one of the elements in the list is null")); } else if ( list instanceof Collection ) { result.addAll( (Collection) list ); } else { result.add( list ); } } return FEELFnResult.ofResult( result ); } ConcatenateFunction(); }
ConcatenateFunction extends BaseFEELFunction { public FEELFnResult<List<Object>> invoke(@ParameterName("list") Object[] lists) { if ( lists == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); for ( Object list : lists ) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "lists", "one of the elements in the list is null")); } else if ( list instanceof Collection ) { result.addAll( (Collection) list ); } else { result.add( list ); } } return FEELFnResult.ofResult( result ); } ConcatenateFunction(); FEELFnResult<List<Object>> invoke(@ParameterName("list") Object[] lists); }
ConcatenateFunction extends BaseFEELFunction { public FEELFnResult<List<Object>> invoke(@ParameterName("list") Object[] lists) { if ( lists == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null")); } final List<Object> result = new ArrayList<>(); for ( Object list : lists ) { if ( list == null ) { return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "lists", "one of the elements in the list is null")); } else if ( list instanceof Collection ) { result.addAll( (Collection) list ); } else { result.add( list ); } } return FEELFnResult.ofResult( result ); } ConcatenateFunction(); FEELFnResult<List<Object>> invoke(@ParameterName("list") Object[] lists);  }