Skip to main content
Jump to: navigation, search

Sequoyah/unit test

Sequoyah Unit Tests

Currently we have 2 components being covered with unit tests: Device Framework and VNC Viewer.


Setting up

Set up a new SVN connection, using the following URL: http://dev.eclipse.org/svnroot/tools/org.eclipse.sequoyah/trunk/

Components

Device Framework

This unit test creates a new QEmuArm device and evaluate this action.

Method being tested: InstanceManager.createInstance

Check out the following plug-ins:

org.eclipse.sequoyah.device/
  plugins/
    org.eclipse.sequoyah.device.common.utilities
    org.eclipse.sequoyah.device.framework
    org.eclipse.sequoyah.device.framework.ui
    org.eclipse.sequoyah.device.qemu
    org.eclipse.sequoyah.device.qemuarm
    org.eclipse.sequoyah.device.service.start
    org.eclipse.sequoyah.device.service.stop
  tests/
    org.eclipse.sequoyah.device.junit


VNC Viewer

This test verifies a connection with a VNC Server. Before running it, start a new VNC Server in the port 5900 at the same machine that is running the test (localhost).

Method being tested: PluginProtocolActionDelegate.requestStartProtocolAsClient

Check out the following plug-ins:

org.eclipse.sequoyah.vnc/
  plugins/
    org.eclipse.sequoyah.vnc.protocol
    org.eclipse.sequoyah.vnc.vncviewer
  tests/
    org.eclipse.sequoyah.vnc.vncviewer.junit
org.eclipse.sequoyah.device/
  plugins/
    org.eclipse.sequoyah.device.common.utilities


How to run the tests

Steps:

  1. In Eclipse, create a new JUnit Plug-in Test Run Configuration using org.eclipse.sequoyah.device.junit as the Project, and org.eclipse.sequoyah.device.framework.junit.TestDevice as the class for the test.
  2. Run the Test
  3. Verify the results in the JUnit View (maybe you will have to switch to the Java perspective)

Back to the top