Browse Source

added test for expression re-evaluation

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2851 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 16 years ago
parent
commit
b33728c991
  1. 8
      org.springframework.context/src/test/java/org/springframework/context/expression/ApplicationContextExpressionTests.java

8
org.springframework.context/src/test/java/org/springframework/context/expression/ApplicationContextExpressionTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2009 the original author or authors.
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -145,6 +145,12 @@ public class ApplicationContextExpressionTests { @@ -145,6 +145,12 @@ public class ApplicationContextExpressionTests {
assertEquals(42, tb3.age);
assertEquals("123 UK", tb3.country);
assertEquals("123 UK", tb3.countryFactory.getObject());
System.getProperties().put("country", "US");
assertEquals("123 UK", tb3.country);
assertEquals("123 US", tb3.countryFactory.getObject());
System.getProperties().put("country", "UK");
assertEquals("123 UK", tb3.country);
assertEquals("123 UK", tb3.countryFactory.getObject());
assertSame(tb0, tb3.tb);
tb3 = (ValueTestBean) SerializationTestUtils.serializeAndDeserialize(tb3);

Loading…
Cancel
Save