1 19 package org.fjank.jcache.distribution; 20 21 import junit.framework.TestCase; 22 23 27 public class ClusterNotificationTest extends TestCase { 28 29 private static final String seria = "seria"; 30 private static final String region = "regio"; 31 private static final String group = "group"; 32 private ClusterNotification not = new ClusterNotification(region,group, ClusterNotification.OBJECT_ADDED,seria); 33 public final void testGetData() { 34 assertEquals(seria, not.getData()); 35 } 36 37 public final void testGetType() { 38 assertEquals(ClusterNotification.OBJECT_ADDED, not.getType()); 39 } 40 41 public final void testGetRegionName() { 42 assertEquals(region, not.getRegionName()); 43 } 44 45 public final void testGetGroupName() { 46 assertEquals(group, not.getGroupName()); 47 } 48 49 public final void testToString() { 50 not.toString(); 51 } 52 53 } 54 | Popular Tags |