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:
Oliver Gierke
2015-03-19 18:52:37 +01:00
parent 0cf395c1b1
commit 5487395397
3 changed files with 12 additions and 42 deletions

View File

@@ -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;