Debian Codegraph @

src/test/resources/ehcache-decorator-noname-fail-test.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd">
5
6 <!-- Disable for test ehcache.xml. Should go to the same place. -->
7 <diskStore path="java.io.tmpdir" />
8
9 <defaultCache maxElementsInMemory="10" eternal="false"
10 timeToIdleSeconds="5" timeToLiveSeconds="10" overflowToDisk="false">
11 <!-- This config should fail, defaultCache cannot define multiple ambiguous decrators -->
12 <cacheDecoratorFactory
13 class="net.sf.ehcache.constructs.MockDecoratorFactory" properties="someKey=defaultDecoratorOne" />
14 <cacheDecoratorFactory
15 class="net.sf.ehcache.constructs.MockDecoratorFactory" properties="someKey=defaultDecoratorTwo" />
16 </defaultCache>
17
18 <cache name="noDecoratorCache" eternal="false"
19 maxElementsInMemory="1000" overflowToDisk="false" />
20
21 </ehcache>