1 19 20 package org.netbeans.spi.looks; 21 22 import org.openide.nodes.*; 23 import org.netbeans.junit.*; 24 25 import org.netbeans.api.nodes2looks.Nodes; 26 import org.netbeans.spi.looks.*; 27 28 public class ProxyLookEventsTest extends TestBaseEvents { 29 30 32 public ProxyLookEventsTest(java.lang.String testName) { 33 super(testName); 34 } 35 36 public static void main(java.lang.String [] args) { 37 junit.textui.TestRunner.run(suite()); 38 } 39 40 public static NbTest suite() { 41 NbTestSuite suite = new NbTestSuite( ProxyLookEventsTest.class ); 42 return suite; 43 } 44 45 protected void setUp() throws Exception { 46 47 Look sampleLook = ProxyLookValuesTest.createLook(); 48 LookSelector sampleSelector = Selectors.selector( new SampleProvider( sampleLook ) ); 49 GoldenValue[] goldenValues = GoldenValue.createGoldenValues(); 50 SampleRepObject representedObject = new SampleRepObject( goldenValues ); 51 Node lookNode = Nodes.node( representedObject, sampleLook, sampleSelector ); 52 53 setTarget( lookNode, representedObject ); 54 setGoldenValues( goldenValues ); 55 56 super.setUp(); 57 } 58 59 protected void tearDown() throws Exception { 60 super.tearDown(); 61 } 62 63 64 66 72 } 73 74 | Popular Tags |