Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] launching a simple pde junit test

 

Hi,

 

I have trouble in setting up a simple pde junit test. I googled and could not find much information to solve my problem. Please give me some insight or direct me to a site I can find valuable information. Thanks at advance.

 

My steps in creating a simple pde junit test:

 

(1)     create a plugin project (I tried both plugin options: (a) with an activator and plugin contribution to UI (b) no activator and not contributing to ui)

(2)     add dependencies: org.eclipse.ui, org.junit

(3)     create a dummy test case by adding a class like below under src.

 

import junit.framework.TestCase;

 

 

public class myTest extends TestCase {

      public void testMe () {

            assertEquals (true, true);

      }

}

 

(4)right click the plugin and select Run As> JUnit Plug-in Test

Result: Another eclipse window is up, then in console window, I always see:

Could not connect to:  : 1343            

java.net.SocketException: Unrecognized Windows Sockets error: 10106: create

      at java.net.Socket.createImpl(Unknown Source)

      at java.net.Socket.<init>(Unknown Source)

      at java.net.Socket.<init>(Unknown Source)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377)

      at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:58)

      at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.run(CoreTestApplication.java:24)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:572)

      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:171)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)

      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)

      at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

      at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

 

 

Please advice.

 

Thanks,

Rong

=======
Notice: This e-mail message, together with any attachments, contains
information of Symyx Technologies, Inc. or any of its affiliates or
subsidiaries that may be confidential, proprietary, copyrighted,
privileged and/or protected work product, and is meant solely for
the intended recipient. If you are not the intended recipient, and
have received this message in error, please contact the sender
immediately, permanently delete the original and any copies of this
email and any attachments thereto.

Back to the top