@Test public void should_allow_any_index_for_indexed_array_property() throws Exception { assertNotNull("Should return a fake value even though no such index in the target" , resolver.getValue(new Object[0], Integer.MAX_VALUE)); assertNotNull("Should return a fake value even though no such index in the target" , resolver.getValue(new Object[0], new Integer(12345))); }
public Object getValue(Object target, Object property) throws GenericElEvaluationException, PropertyNotFoundException { return this.getValue(target, property, getTypeOfCollectionOrBean(target, property)); }
MockingPropertyResolver implements PredefinedVariableResolver.NewVariableEncounteredListener { public Object getValue(Object target, Object property) throws GenericElEvaluationException, PropertyNotFoundException { return this.getValue(target, property, getTypeOfCollectionOrBean(target, property)); } }
MockingPropertyResolver implements PredefinedVariableResolver.NewVariableEncounteredListener { public Object getValue(Object target, Object property) throws GenericElEvaluationException, PropertyNotFoundException { return this.getValue(target, property, getTypeOfCollectionOrBean(target, property)); } MockingPropertyResolver(); }
MockingPropertyResolver implements PredefinedVariableResolver.NewVariableEncounteredListener { public Object getValue(Object target, Object property) throws GenericElEvaluationException, PropertyNotFoundException { return this.getValue(target, property, getTypeOfCollectionOrBean(target, property)); } MockingPropertyResolver(); void definePropertyTypeOverride(final String elExpression, final Class<?> newType); Class<?> getTypeOfCollectionOrBean(Object target, Object property); Object getValue(Object target, Object property); @SuppressWarnings("rawtypes") Object getValue(final Object target, final Object property, final Class originalType); void handleNewVariableEncountered(final String variableName); void addElExpressionFilter(ElExpressionFilter elExpressionFilter); void clearElExpressionFilters(); void setTypeResolver(PropertyTypeResolver typeResolver); }
MockingPropertyResolver implements PredefinedVariableResolver.NewVariableEncounteredListener { public Object getValue(Object target, Object property) throws GenericElEvaluationException, PropertyNotFoundException { return this.getValue(target, property, getTypeOfCollectionOrBean(target, property)); } MockingPropertyResolver(); void definePropertyTypeOverride(final String elExpression, final Class<?> newType); Class<?> getTypeOfCollectionOrBean(Object target, Object property); Object getValue(Object target, Object property); @SuppressWarnings("rawtypes") Object getValue(final Object target, final Object property, final Class originalType); void handleNewVariableEncountered(final String variableName); void addElExpressionFilter(ElExpressionFilter elExpressionFilter); void clearElExpressionFilters(); void setTypeResolver(PropertyTypeResolver typeResolver);  }