Moved the code in the "tests" plugin (plural) to the "test" fragment (singular)....
[phpeclipse.git] / net.sourceforge.phpeclipse.tests / src / net / sourceforge / phpeclipse / phpeditor / php / test / IdentifierIndexManagerTest.java
diff --git a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/IdentifierIndexManagerTest.java b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/IdentifierIndexManagerTest.java
deleted file mode 100644 (file)
index f3969a7..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Created on 08.05.2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package net.sourceforge.phpeclipse.phpeditor.php.test;
-
-import java.io.StringBufferInputStream;
-
-import org.eclipse.core.runtime.CoreException;
-
-import junit.framework.TestCase;
-import net.sourceforge.phpeclipse.builder.IdentifierIndexManager;
-
-/**
- * 
- */
-public class IdentifierIndexManagerTest extends TestCase {
-  IdentifierIndexManager fManager; 
-  
-  public void testManager() {
-    System.out.println("----- testManager -----");
-    String testString = "<?php if ((eregi(\"<[^>]*script*\\\"?[^>]*>\", $secvalue)) ||\r\n" + 
-       "       (eregi(\"<[^>]*object*\\\"?[^>]*>\", $secvalue)) ||\r\n" + 
-       "       (eregi(\"<[^>]*iframe*\\\"?[^>]*>\", $secvalue)) ||\r\n" + 
-       "       (eregi(\"<[^>]*applet*\\\"?[^>]*>\", $secvalue)) ||\r\n" + 
-       "       (eregi(\"<[^>]*meta*\\\"?[^>]*>\", $secvalue)) ||\r\n" + 
-       "       (eregi(\"<[^>]*style*\\\"?[^>]*>\", $secvalue)) ||\r\n" + 
-       "       (eregi(\"<[^>]*form*\\\"?[^>]*>\", $secvalue)) ||\r\n" + 
-       "       (eregi(\"\\([^>]*\\\"?[^)]*\\)\", $secvalue)) ||\r\n" + 
-       "       (eregi(\"\\\"\", $secvalue))) {\r\n" + 
-       "   die (\"<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\\\"javascript:history.go(-1)\\\"><b>Go Back</b></a> ]\");\r\n" + 
-       "    } ?>";
-    IdentifierIndexManager.LineCreator lineCreator =  fManager.createLineCreator();
-    try {
-      fManager.addInputStream(new StringBufferInputStream(testString), "test", lineCreator);
-    } catch (CoreException e) {
-      // TODO Auto-generated catch block
-      e.printStackTrace();
-    }
-  }
-  /* (non-Javadoc)
-   * @see junit.framework.TestCase#setUp()
-   */
-  protected void setUp() throws Exception {
-    fManager = new IdentifierIndexManager("c:\\temp\\test");
-  }
-}