package org.netbeans.jellytools.examples; import org.netbeans.jellytools.JellyTestCase; import org.netbeans.jellytools.RepositoryTabOperator; import org.netbeans.jellytools.actions.FilesystemsViewAction; import org.netbeans.junit.NbTestSuite; //shows Filesystems/repository tab by action using public class TestShowFilesystems extends JellyTestCase { public TestShowFilesystems(java.lang.String testName) { super(testName); } public static void main(java.lang.String[] args) { junit.textui.TestRunner.run(suite()); } public static junit.framework.Test suite() { return new NbTestSuite(TestShowFilesystems.class); } public void testShowFilesystems() { //create an action which knows how to show Filesystems FilesystemsViewAction viewAction = new FilesystemsViewAction(); //show Filesystems by main menu viewAction.performMenu(); //close it new RepositoryTabOperator().close(); //show Filesystems by API call viewAction.performAPI(); //close it new RepositoryTabOperator().close(); //show Filesystems by default mode viewAction.perform(); } }