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