01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object;
05:
06: import junit.framework.Assert;
07: import junit.framework.TestCase;
08:
09: public class SerializationUtilTest extends TestCase {
10:
11: private SerializationUtil UTIL = new SerializationUtil();
12:
13: public void testIsParent() {
14: Assert.assertEquals(true, UTIL.isParent("this$123"));
15: Assert.assertEquals(true, UTIL.isParent("this$1"));
16: Assert.assertEquals(false, UTIL.isParent("this"));
17: Assert.assertEquals(false, UTIL.isParent("BOGUS"));
18: Assert.assertEquals(false, UTIL.isParent("athis$123"));
19: Assert.assertEquals(false, UTIL.isParent("this$123x"));
20: Assert.assertEquals(false, UTIL.isParent("this123"));
21: Assert.assertEquals(false, UTIL.isParent("this$"));
22: }
23: }
|