1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| package org.jboss.cache.marshall; |
8 |
| |
9 |
| import org.jboss.cache.RegionManager; |
10 |
| |
11 |
| public class CacheMarshaller200Test extends CacheMarshallerTestBase |
12 |
| { |
13 |
16
| public CacheMarshaller200Test()
|
14 |
| { |
15 |
16
| currentVersion = "2.0.0.GA";
|
16 |
16
| currentVersionShort = 20;
|
17 |
16
| expectedMarshallerClass = CacheMarshaller200.class;
|
18 |
| } |
19 |
| |
20 |
1
| public void testHandle140Stream() throws Exception
|
21 |
| { |
22 |
1
| VersionAwareMarshaller marshallerOld = new VersionAwareMarshaller(new RegionManager(), false, false, "1.4.0.GA");
|
23 |
| |
24 |
| |
25 |
| |
26 |
1
| byte[] buf = marshallerOld.objectToByteBuffer("hello");
|
27 |
1
| Object unmarshalled = marshaller.objectFromByteBuffer(buf);
|
28 |
| |
29 |
1
| assertEquals("hello", unmarshalled);
|
30 |
| } |
31 |
| |
32 |
| } |