1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/extensibleicon/test/org/apidesign/extensibleicon/ModifiedTest.java Sat Jun 14 10:09:05 2008 +0200
1.3 @@ -0,0 +1,28 @@
1.4 +package org.apidesign.extensibleicon;
1.5 +
1.6 +import org.junit.After;
1.7 +import org.junit.Before;
1.8 +import org.junit.Test;
1.9 +import static org.junit.Assert.*;
1.10 +
1.11 +public class ModifiedTest {
1.12 + private ModifiableIcon icon;
1.13 +
1.14 + public ModifiedTest() {
1.15 + }
1.16 +
1.17 + @Before
1.18 + public void setUp() {
1.19 + icon = new ModifiableIcon();
1.20 + }
1.21 +
1.22 + @After
1.23 + public void tearDown() {
1.24 + }
1.25 +
1.26 + @Test public void testEnabledDisabledState() {
1.27 + assertNull("Not yet modified", icon.getLookup().lookup(Modified.class));
1.28 + icon.markModified();
1.29 + assertNotNull("Modified", icon.getLookup().lookup(Modified.class));
1.30 + }
1.31 +}
1.32 \ No newline at end of file