samples/extensibleicon/test/org/apidesign/extensibleicon/ModifiedTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
     1 package org.apidesign.extensibleicon;
     2 
     3 import org.junit.After;
     4 import org.junit.Before;
     5 import org.junit.Test;
     6 import static org.junit.Assert.*;
     7 
     8 public class ModifiedTest {
     9     private ModifiableIcon icon;
    10     
    11     public ModifiedTest() {
    12     }
    13 
    14     @Before
    15     public void setUp() {
    16         icon = new ModifiableIcon();
    17     }
    18 
    19     @After
    20     public void tearDown() {
    21     }
    22 
    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 }