Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

HillockTest.java

Go to the documentation of this file.
00001 package net.threebit.utils.sosc.test;
00002 
00003 /*
00004         Copyright 2003 Kevin O'Donnell
00005 
00006         This program is free software; you can redistribute it and/or modify
00007         it under the terms of the GNU General Public License as published by
00008         the Free Software Foundation; either version 2 of the License, or
00009         (at your option) any later version.
00010 
00011         This program is distributed in the hope that it will be useful,
00012         but WITHOUT ANY WARRANTY; without even the implied warranty of
00013         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014         GNU General Public License for more details.
00015 
00016         You should have received a copy of the GNU General Public License
00017         along with this program; if not, write to the Free Software
00018         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 */
00020 
00021 import junit.framework.*;
00022 import net.threebit.utils.sosc.*;
00023 
00028 public class HillockTest extends TestCase {
00029 
00030         public void test6() throws Exception {
00031                 Hillock.startPath("test6"); Thread.sleep(100);
00032                 Hillock.startNode("A1"); Thread.sleep(100);
00033                         Hillock.startNode("B1"); Thread.sleep(100);
00034                                 Hillock.node("C1"); Thread.sleep(100);
00035                                 Hillock.node("C2"); Thread.sleep(100);
00036                                 Hillock.node("C3"); Thread.sleep(100);
00037                                 Hillock.node("C4"); Thread.sleep(100);
00038                         Hillock.endNode();
00039                         Hillock.startNode("B2"); Thread.sleep(100);
00040                                 Hillock.node("C1"); Thread.sleep(100);
00041                                 Hillock.node("C2"); Thread.sleep(100);
00042                                 Hillock.node("C3"); Thread.sleep(100);
00043                                 Hillock.node("C4"); Thread.sleep(100);
00044                         Hillock.endNode();
00045                 Hillock.endNode();
00046                 Hillock.endPath();
00047         }
00048 
00049         public void test5GXLGenerator() {
00050                 Hillock.startPath("test5GXLGenerator");
00051                 Hillock.startNode("A-1"); Hillock.endNode();
00052                 Hillock.startNode("A-2");
00053                         Hillock.startNode("B1");
00054                                 Hillock.startNode("C1"); Hillock.endNode();
00055                                 Hillock.startNode("C2"); Hillock.endNode();
00056                                 Hillock.node("C3");
00057                         Hillock.endNode();
00058                         Hillock.startNode("B2"); Hillock.endNode();
00059                 Hillock.endNode(); // A2
00060                 Hillock.startNode("A3"); Hillock.endNode();
00061                 /*
00062                 String gxl = Hillock.gxl(path);
00063                 System.out.println("GXL:\n" + gxl);
00064                 */
00065         }
00066 
00067         public void test4() {
00068                 Hillock.startPath("HillockTest.test4");
00069                 Hillock.startNode("node1");
00070                 Hillock.startNode("node2");
00071                 Hillock.startNode("node3");
00072                 Hillock.startNode("node4");
00073                 Hillock.startNode("node5");
00074                 Hillock.startNode("node6");
00075                 Hillock.startNode("node7");
00076                 Hillock.startNode("node8");
00077                 Hillock.startNode("node9");
00078                 Hillock.endPath();
00079         }
00080 
00081         public void test2() {
00082                 Hillock.startPath("HillockTest.test2.nonodes");
00083                 Hillock.endPath();
00084         }
00085 
00086         /*
00087         public void test1() {
00088                 String classy = Hillock.jdbcDriverClass();
00089                 String url = Hillock.jdbcURL();
00090                 String user = Hillock.jdbcUserName();
00091                 String pass = Hillock.jdbcPassword();
00092                 assertTrue( classy != null && !classy.equals(""));
00093                 assertTrue( url != null && !url.equals(""));
00094                 assertTrue( user != null && !user.equals(""));
00095                 assertTrue( pass != null && !pass.equals(""));
00096         }
00097         */
00098 
00099         public void test0 () {
00100                 System.out.println("SLEEPING FOR THE BENEFIT OF THE WORKER THREAD");
00101                 try { Thread.sleep(5000); } catch (Exception e) { }
00102         }
00103 
00104 }

Generated on Mon Jul 14 17:19:20 2003 for SOSC by doxygen1.2.15