1 package org.springframework.richclient.application.event;
2
3 import junit.framework.TestCase;
4
5 public class LifecycleApplicationEventTests extends TestCase {
6
7 private class Base {
8 }
9
10 private class Child extends Base {
11 }
12
13
14
15
16 public void testEventObjectType() {
17 Child child = new Child();
18 LifecycleApplicationEvent event = new LifecycleApplicationEvent(LifecycleApplicationEvent.CREATED, child);
19 assertTrue("Child extends Base so objectIs() should return true.", event.objectIs(Base.class));
20 }
21
22 }