1 19 20 package org.netbeans.api.nodes2looks; 21 22 import java.util.Arrays ; 23 import java.util.Collection ; 24 import java.util.ArrayList ; 25 26 import org.openide.nodes.*; 27 import org.netbeans.junit.*; 28 import org.openide.util.Lookup; 29 30 import org.netbeans.api.nodes2looks.Nodes; 31 import org.netbeans.spi.looks.*; 32 33 36 public class LookNodeValuesTest extends TestBaseValues { 37 38 40 public LookNodeValuesTest(java.lang.String testName) { 41 super(testName); 42 } 43 44 public static void main(java.lang.String [] args) { 45 junit.textui.TestRunner.run(suite()); 46 } 47 48 public static NbTest suite() { 49 NbTestSuite suite = new NbTestSuite(LookNodeValuesTest.class); 50 return suite; 51 } 52 53 protected void setUp() throws Exception { 54 55 Look look = new SampleLook( "LookNodeValesTestLook" ); 56 LookSelector selector = Selectors.selector( new SampleProvider( look ) ); 57 GoldenValue[] goldenValues = GoldenValue.createGoldenValues(); 58 SampleRepObject ro = new SampleRepObject( goldenValues ); 59 Node node = Nodes.node( ro, null, selector ); 60 setTarget( node, ro, 1 ); 61 setGoldenValues( goldenValues ); 62 63 super.setUp(); 64 } 65 66 protected void tearDown() throws Exception { 67 super.tearDown(); 68 } 69 70 71 73 79 81 82 } 83 84 85 | Popular Tags |