eu.scape_project.watch.plugin
Class PluginManagerTest

java.lang.Object
  extended by eu.scape_project.watch.plugin.PluginManagerTest

public class PluginManagerTest
extends Object

Tests the plugin manager.

Author:
Petar Petrov

Constructor Summary
PluginManagerTest()
           
 
Method Summary
 void setUp()
          Gets the plugin manager.
 void shouldGetPluginInfoForName()
          Tests the obtaining of plugin info by name.
 void shouldLoadPlugin()
          Tests the loading of a plugin.
 void shouldLoadTwoVersionsOfAdaptor()
          Tests the loading of two versions of the same class.
 void shouldNotCallInitTwoTimes()
          Tests that the init method shall not be called twice.
 void shouldObtainPluginManager()
          Tests the creation of the manager.
 void shouldShutdownCorrectly()
           
 void tearDown()
          Destroys the plugin manager and removes the dummy adaptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginManagerTest

public PluginManagerTest()
Method Detail

setUp

public void setUp()
Gets the plugin manager.


tearDown

public void tearDown()
Destroys the plugin manager and removes the dummy adaptors.


shouldObtainPluginManager

public void shouldObtainPluginManager()
Tests the creation of the manager.


shouldGetPluginInfoForName

public void shouldGetPluginInfoForName()
Tests the obtaining of plugin info by name.


shouldLoadPlugin

public void shouldLoadPlugin()
                      throws Exception
Tests the loading of a plugin.

Throws:
Exception - if something goes wrong.

shouldNotCallInitTwoTimes

public void shouldNotCallInitTwoTimes()
                               throws Exception
Tests that the init method shall not be called twice.

Throws:
Exception - when the init method gets called for the second time.

shouldLoadTwoVersionsOfAdaptor

public void shouldLoadTwoVersionsOfAdaptor()
                                    throws Exception
Tests the loading of two versions of the same class.

Throws:
Exception - if something goes wrong.

shouldShutdownCorrectly

public void shouldShutdownCorrectly()


Copyright © 2012. All Rights Reserved.