com.atlassian.plugin.descriptors
Class TestAbstractModuleDescriptor

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.descriptors.TestAbstractModuleDescriptor
All Implemented Interfaces:
junit.framework.Test

public class TestAbstractModuleDescriptor
extends junit.framework.TestCase


Field Summary
static java.lang.String ANNOTATION_PERMISSION
           
 
Constructor Summary
TestAbstractModuleDescriptor()
           
 
Method Summary
 void testAssertModuleClassImplements()
           
 void testCheckPermissionsForModuleDescriptorAndPluginDefinedWithNoPermission()
           
 void testCheckPermissionsForModuleDescriptorAndPluginWithSamePermission()
           
 void testCheckPermissionsForModuleDescriptorWithPermissionsAllInPluginPermissions()
           
 void testCheckPermissionsForModuleDescriptorWithPermissionsAndPluginWithAllPermission()
           
 void testCheckPermissionsForModuleDescriptorWithPermissionsNotInPluginPermissions()
           
 void testDestroy()
           
 void testDestroyWhenDisabled()
           
 void testGetModuleReturnClass()
           
 void testGetModuleReturnClassWithExtendsNumber()
           
 void testGetResourceDescriptor()
           
 void testGetResourceDescriptorByType()
           
 void testLoadClassFromNewModuleFactory()
           
 void testLoadClassFromNewModuleFactoryButUnknownType()
           
 void testLoadClassFromNewModuleFactoryWithExtendsNothingType()
           
 void testLoadClassFromNewModuleFactoryWithExtendsNumberType()
           
 void testSingletonness()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANNOTATION_PERMISSION

public static final java.lang.String ANNOTATION_PERMISSION
See Also:
Constant Field Values
Constructor Detail

TestAbstractModuleDescriptor

public TestAbstractModuleDescriptor()
Method Detail

testAssertModuleClassImplements

public void testAssertModuleClassImplements()
                                     throws org.dom4j.DocumentException,
                                            com.atlassian.plugin.PluginParseException
Throws:
org.dom4j.DocumentException
com.atlassian.plugin.PluginParseException

testLoadClassFromNewModuleFactory

public void testLoadClassFromNewModuleFactory()

testLoadClassFromNewModuleFactoryWithExtendsNumberType

public void testLoadClassFromNewModuleFactoryWithExtendsNumberType()

testLoadClassFromNewModuleFactoryWithExtendsNothingType

public void testLoadClassFromNewModuleFactoryWithExtendsNothingType()

testGetModuleReturnClass

public void testGetModuleReturnClass()

testGetModuleReturnClassWithExtendsNumber

public void testGetModuleReturnClassWithExtendsNumber()

testLoadClassFromNewModuleFactoryButUnknownType

public void testLoadClassFromNewModuleFactoryButUnknownType()

testSingletonness

public void testSingletonness()
                       throws org.dom4j.DocumentException,
                              com.atlassian.plugin.PluginParseException
Throws:
org.dom4j.DocumentException
com.atlassian.plugin.PluginParseException

testGetResourceDescriptor

public void testGetResourceDescriptor()
                               throws org.dom4j.DocumentException,
                                      com.atlassian.plugin.PluginParseException
Throws:
org.dom4j.DocumentException
com.atlassian.plugin.PluginParseException

testGetResourceDescriptorByType

public void testGetResourceDescriptorByType()
                                     throws org.dom4j.DocumentException,
                                            com.atlassian.plugin.PluginParseException
Throws:
org.dom4j.DocumentException
com.atlassian.plugin.PluginParseException

testDestroy

public void testDestroy()

testDestroyWhenDisabled

public void testDestroyWhenDisabled()

testCheckPermissionsForModuleDescriptorAndPluginDefinedWithNoPermission

public void testCheckPermissionsForModuleDescriptorAndPluginDefinedWithNoPermission()

testCheckPermissionsForModuleDescriptorAndPluginWithSamePermission

public void testCheckPermissionsForModuleDescriptorAndPluginWithSamePermission()

testCheckPermissionsForModuleDescriptorWithPermissionsAndPluginWithAllPermission

public void testCheckPermissionsForModuleDescriptorWithPermissionsAndPluginWithAllPermission()

testCheckPermissionsForModuleDescriptorWithPermissionsNotInPluginPermissions

public void testCheckPermissionsForModuleDescriptorWithPermissionsNotInPluginPermissions()

testCheckPermissionsForModuleDescriptorWithPermissionsAllInPluginPermissions

public void testCheckPermissionsForModuleDescriptorWithPermissionsAllInPluginPermissions()


Copyright © 2012 Atlassian. All Rights Reserved.