com.atlassian.plugin.osgi.factory
Class TestOsgiPluginFactory

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.osgi.factory.TestOsgiPluginFactory
All Implemented Interfaces:
junit.framework.Test

public class TestOsgiPluginFactory
extends junit.framework.TestCase


Constructor Summary
TestOsgiPluginFactory()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testCanLoadJarWithNoManifest()
           
 void testCanLoadNoXml()
           
 void testCanLoadNoXmlButWithManifestEntry()
           
 void testCanLoadNoXmlButWithManifestEntryNoVersion()
           
 void testCanLoadWithXml()
           
 void testCanLoadWithXmlArtifact()
           
 void testCanLoadWithXmlVersion3()
           
 void testCreateOsgiPlugin()
           
 void testCreateOsgiPluginWithBadVersion()
           
 void testCreateOsgiPluginWithBadVersion2()
           
 void testCreateOsgiPluginWithManifestKey()
           
 void testCreateOsgiPluginWithManifestKeyAndDescriptorSkippingTransform()
           
 void testCreateOsgiPluginWithManifestKeyNoVersion()
           
 void testPluginInformationAndPluginNameIsExtractedFromManifest()
           
 void testShouldLoadPluginIfManifestDoesNotHaveOptionalInformation()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Constructor Detail

TestOsgiPluginFactory

public TestOsgiPluginFactory()
Method Detail

setUp

public void setUp()
           throws java.io.IOException,
                  java.net.URISyntaxException
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.io.IOException
java.net.URISyntaxException

tearDown

public void tearDown()
              throws java.io.IOException
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.io.IOException

testCreateOsgiPlugin

public void testCreateOsgiPlugin()
                          throws com.atlassian.plugin.PluginParseException
Throws:
com.atlassian.plugin.PluginParseException

testCreateOsgiPluginWithBadVersion

public void testCreateOsgiPluginWithBadVersion()
                                        throws com.atlassian.plugin.PluginParseException,
                                               java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCreateOsgiPluginWithBadVersion2

public void testCreateOsgiPluginWithBadVersion2()
                                         throws com.atlassian.plugin.PluginParseException,
                                                java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCreateOsgiPluginWithManifestKey

public void testCreateOsgiPluginWithManifestKey()
                                         throws com.atlassian.plugin.PluginParseException,
                                                java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCreateOsgiPluginWithManifestKeyAndDescriptorSkippingTransform

public void testCreateOsgiPluginWithManifestKeyAndDescriptorSkippingTransform()
                                                                       throws com.atlassian.plugin.PluginParseException,
                                                                              java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testPluginInformationAndPluginNameIsExtractedFromManifest

public void testPluginInformationAndPluginNameIsExtractedFromManifest()
                                                               throws java.io.IOException
Throws:
java.io.IOException

testShouldLoadPluginIfManifestDoesNotHaveOptionalInformation

public void testShouldLoadPluginIfManifestDoesNotHaveOptionalInformation()
                                                                  throws java.io.IOException
Throws:
java.io.IOException

testCreateOsgiPluginWithManifestKeyNoVersion

public void testCreateOsgiPluginWithManifestKeyNoVersion()
                                                  throws com.atlassian.plugin.PluginParseException,
                                                         java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCanLoadWithXml

public void testCanLoadWithXml()
                        throws com.atlassian.plugin.PluginParseException,
                               java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCanLoadWithXmlArtifact

public void testCanLoadWithXmlArtifact()
                                throws com.atlassian.plugin.PluginParseException,
                                       java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCanLoadJarWithNoManifest

public void testCanLoadJarWithNoManifest()
                                  throws com.atlassian.plugin.PluginParseException,
                                         java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCanLoadNoXml

public void testCanLoadNoXml()
                      throws com.atlassian.plugin.PluginParseException,
                             java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCanLoadNoXmlButWithManifestEntry

public void testCanLoadNoXmlButWithManifestEntry()
                                          throws com.atlassian.plugin.PluginParseException,
                                                 java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCanLoadNoXmlButWithManifestEntryNoVersion

public void testCanLoadNoXmlButWithManifestEntryNoVersion()
                                                   throws com.atlassian.plugin.PluginParseException,
                                                          java.io.IOException
Throws:
com.atlassian.plugin.PluginParseException
java.io.IOException

testCanLoadWithXmlVersion3

public void testCanLoadWithXmlVersion3()
                                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2012 Atlassian. All Rights Reserved.