1 |
| package org.jboss.cache.statetransfer; |
2 |
| |
3 |
| import org.jboss.cache.Fqn; |
4 |
| import org.jboss.cache.loader.FileCacheLoader; |
5 |
| |
6 |
| import java.io.IOException; |
7 |
| import java.io.ObjectOutputStream; |
8 |
| |
9 |
| public class CorruptedFileCacheLoader extends FileCacheLoader |
10 |
| { |
11 |
2
| public CorruptedFileCacheLoader()
|
12 |
| { |
13 |
2
| super();
|
14 |
| } |
15 |
| |
16 |
2
| @Override
|
17 |
| public void loadState(Fqn subtree, ObjectOutputStream os) throws Exception |
18 |
| { |
19 |
2
| throw new IOException("see StateTransfer200Test#testCacheLoaderFailure()");
|
20 |
| } |
21 |
| } |