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.ReusablePropertyConfiguration;
14
15 public class ReusablePropertyConfigurationTestCase extends AbstractBasePropertyConfigurationTestCase
16 {
17
18 public static final String REFERENCE = "reference";
19 public static final String WRAPPER = "wrapper";
20
21 public void testReusable()
22 {
23 ReusablePropertyConfiguration config = new ReusablePropertyConfiguration();
24 setTestValues(REFERENCE, config);
25 verifyTestValues(REFERENCE, config);
26 verifyIgnored(REFERENCE, config);
27 config.reset();
28 verifyTestValues(REFERENCE, config);
29 setTestValues(WRAPPER, config);
30 verifyTestValues(REFERENCE, config);
31 verifyTestValues(WRAPPER, config);
32 verifyIgnored(WRAPPER, config);
33 config.reset();
34 verifyMissing(WRAPPER, config);
35 verifyTestValues(REFERENCE, config);
36 setTestValues(WRAPPER, config);
37 verifyTestValues(REFERENCE, config);
38 verifyTestValues(WRAPPER, config);
39 config.reset();
40 verifyMissing(WRAPPER, config);
41 verifyTestValues(REFERENCE, config);
42 }
43
44 }