author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 10:09:05 +0200 | |
changeset 256 | 9d7d928a6b52 |
permissions | -rw-r--r-- |
1 package org.apidesign.extensibleicon;
3 import org.junit.After;
4 import org.junit.Before;
5 import org.junit.Test;
6 import static org.junit.Assert.*;
8 public class ModifiedTest {
9 private ModifiableIcon icon;
11 public ModifiedTest() {
12 }
14 @Before
15 public void setUp() {
16 icon = new ModifiableIcon();
17 }
19 @After
20 public void tearDown() {
21 }
23 @Test public void testEnabledDisabledState() {
24 assertNull("Not yet modified", icon.getLookup().lookup(Modified.class));
25 icon.markModified();
26 assertNotNull("Modified", icon.getLookup().lookup(Modified.class));
27 }
28 }