author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Thu, 30 Oct 2014 21:30:10 +0100 | |
changeset 409 | 40cabcdcd2be |
permissions | -rw-r--r-- |
jtulach@256 | 1 |
package org.apidesign.extensibleicon; |
jtulach@256 | 2 |
|
jtulach@256 | 3 |
import org.junit.After; |
jtulach@256 | 4 |
import org.junit.Before; |
jtulach@256 | 5 |
import org.junit.Test; |
jtulach@256 | 6 |
import static org.junit.Assert.*; |
jtulach@256 | 7 |
|
jtulach@256 | 8 |
public class ModifiedTest { |
jtulach@256 | 9 |
private ModifiableIcon icon; |
jtulach@256 | 10 |
|
jtulach@256 | 11 |
public ModifiedTest() { |
jtulach@256 | 12 |
} |
jtulach@256 | 13 |
|
jtulach@256 | 14 |
@Before |
jtulach@256 | 15 |
public void setUp() { |
jtulach@256 | 16 |
icon = new ModifiableIcon(); |
jtulach@256 | 17 |
} |
jtulach@256 | 18 |
|
jtulach@256 | 19 |
@After |
jtulach@256 | 20 |
public void tearDown() { |
jtulach@256 | 21 |
} |
jtulach@256 | 22 |
|
jtulach@256 | 23 |
@Test public void testEnabledDisabledState() { |
jtulach@256 | 24 |
assertNull("Not yet modified", icon.getLookup().lookup(Modified.class)); |
jtulach@256 | 25 |
icon.markModified(); |
jtulach@256 | 26 |
assertNotNull("Modified", icon.getLookup().lookup(Modified.class)); |
jtulach@256 | 27 |
} |
jtulach@256 | 28 |
} |