DATACMNS-661 - Polishing.
Removed the ability to configure a custom SpElExpressionParser for now as it's not really part of the performance optimization. Polished assertions in SpelEvaluatingMethodInterceptor. Original pull request: #118.
This commit is contained in:
@@ -23,7 +23,6 @@ import java.util.List;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.expression.spel.standard.SpelExpressionParser;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link SpelAwareProxyProjectionFactory}.
|
||||
@@ -66,22 +65,6 @@ public class SpelAwareProxyProjectionFactoryUnitTests {
|
||||
assertThat(properties, hasItem("firstname"));
|
||||
}
|
||||
|
||||
/**
|
||||
* @see DATACMNS-661
|
||||
*/
|
||||
@Test
|
||||
public void shouldSupportConfiguringFactoryWithCustomSpelParser() {
|
||||
|
||||
Customer customer = new Customer();
|
||||
customer.firstname = "Dave";
|
||||
customer.lastname = "Matthews";
|
||||
|
||||
factory.setParser(new SpelExpressionParser());
|
||||
CustomerExcerpt excerpt = factory.createProjection(CustomerExcerpt.class, customer);
|
||||
|
||||
assertThat(excerpt.getFullName(), is("Dave Matthews"));
|
||||
}
|
||||
|
||||
static class Customer {
|
||||
|
||||
public String firstname, lastname;
|
||||
|
||||
Reference in New Issue
Block a user