eu.larkc.core
Class PluginRegistryTest

java.lang.Object
  extended by eu.larkc.core.LarkcTest
      extended by eu.larkc.core.PluginRegistryTest

public class PluginRegistryTest
extends LarkcTest

Tests if plug-ins can be retrieved from the plug-in registry. Also tests advanced functionality like switching the decider.

Author:
Christoph Fuchs, Luka Bradesko

Constructor Summary
PluginRegistryTest()
           
 
Method Summary
 void nonexistentPluginRetrieval()
          If a plugin is retrieved which does not exist, the plugin registry should not return any plugin (null).
 void pluginRetrieval()
          Tests if plugin instance can be retrieved via the plug-in registry using the plugins TestIdentifier, TestTransformer and TestDecider which only have purpose for testing.
 void testAllPluginsMethods()
          Tests if _test plug-ins are in the registry
 void testEndpointDataRetrieval()
          Test whether plug-in endpoints are returned correctly
 
Methods inherited from class eu.larkc.core.LarkcTest
deleteOrdiTreeDirectory, startLarKC
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginRegistryTest

public PluginRegistryTest()
Method Detail

testAllPluginsMethods

public void testAllPluginsMethods()
                           throws java.lang.IllegalArgumentException,
                                  java.lang.InstantiationException,
                                  java.lang.IllegalAccessException,
                                  java.lang.reflect.InvocationTargetException,
                                  PluginRegistryQueryException
Tests if _test plug-ins are in the registry

Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalArgumentException
PluginRegistryQueryException

pluginRetrieval

public void pluginRetrieval()
                     throws java.lang.IllegalArgumentException,
                            java.lang.InstantiationException,
                            java.lang.IllegalAccessException,
                            java.lang.reflect.InvocationTargetException
Tests if plugin instance can be retrieved via the plug-in registry using the plugins TestIdentifier, TestTransformer and TestDecider which only have purpose for testing.

Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalArgumentException

nonexistentPluginRetrieval

public void nonexistentPluginRetrieval()
                                throws java.lang.IllegalArgumentException,
                                       java.lang.InstantiationException,
                                       java.lang.IllegalAccessException,
                                       java.lang.reflect.InvocationTargetException
If a plugin is retrieved which does not exist, the plugin registry should not return any plugin (null).

Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalArgumentException

testEndpointDataRetrieval

public void testEndpointDataRetrieval()
                               throws PluginRegistryQueryException
Test whether plug-in endpoints are returned correctly

Throws:
PluginRegistryQueryException
java.lang.IllegalArgumentException