1
2
3
4
5
6
7
8
9
10
11 package org.mule.config.spring.parsers.assembly;
12
13 import org.mule.config.spring.parsers.assembly.configuration.PropertyConfiguration;
14 import org.mule.config.spring.parsers.assembly.configuration.SimplePropertyConfiguration;
15 import org.mule.config.spring.parsers.assembly.configuration.TempWrapperPropertyConfiguration;
16
17 public class TempWrapperPropertyConfigurationTestCase extends AbstractBasePropertyConfigurationTestCase
18 {
19
20 public static final String REFERENCE = "reference";
21 public static final String WRAPPER = "wrapper";
22
23 public void testTempWrapper()
24 {
25 PropertyConfiguration reference = new SimplePropertyConfiguration();
26 setTestValues(REFERENCE, reference);
27 PropertyConfiguration wrapper = new TempWrapperPropertyConfiguration(reference);
28 verifyTestValues(REFERENCE, wrapper);
29 setTestValues(WRAPPER, wrapper);
30 verifyTestValues(REFERENCE, wrapper);
31 verifyTestValues(WRAPPER, wrapper);
32 verifyMissing(WRAPPER, reference);
33 verifyTestValues(REFERENCE, reference);
34 }
35
36 }