1 19 20 package org.netbeans.api.debugger.jpda; 21 22 import java.util.HashSet ; 23 import java.util.Set ; 24 import org.netbeans.junit.NbTestCase; 25 import org.netbeans.spi.debugger.ActionsProviderSupport; 26 27 28 33 public class DummyTests extends NbTestCase { 34 35 public DummyTests (String s) { 36 super (s); 37 } 38 39 public void testFinalInActionsProviderSupport () throws Exception { 40 final int[] test = {0}; 41 ActionsProviderSupport aps = new ActionsProviderSupport () { 42 public Set getActions () { 43 return new HashSet (); 44 } 45 public void doAction (Object a) { 46 } 47 public boolean isEnabled (Object a) { 48 test[0]++; 49 return true; 50 } 51 }; 52 aps.isEnabled (null); 53 assertEquals ("ActionsProviderSupport test ", 1, test[0]); 54 } 55 } 56 | Popular Tags |