com.atlassian.plugin.osgi.util
Class TestOsgiHeaderUtil

java.lang.Object
  extended by com.atlassian.plugin.osgi.util.TestOsgiHeaderUtil

public class TestOsgiHeaderUtil
extends Object


Constructor Summary
TestOsgiHeaderUtil()
           
 
Method Summary
 void getManifestGetsManifest()
           
 void getManifestReturnsNullIfGetResourceAsStreamFails()
           
 void getManifestReturnsNullIfManifestIsCorrupt()
           
 void getManifestReturnsNullIfManifestIsMissing()
           
 void getManifestReturnsNullIfResourceStreamThrowsWhenRead()
           
 void shouldAssertValueShouldNotBeEmpty()
           
 void shouldAssertValueShouldNotBeNull()
           
 void shouldGetEmptyAttributeWithoutValidation()
           
 void shouldGetNullAttributeWithoutValidation()
           
 void shouldGetValidatedAttribute()
           
 void shouldRaiseAnExceptionWhenValueIsMissing()
           
 void testFindReferredPackages()
           
 void testFindReferredPackagesMustNotReturnJavaPackages()
           
 void testFindReferredPackagesWithVersion()
           
 void testGeneratePackageVersionString()
           
 void testGetPluginKeyBundle()
           
 void testGetPluginKeyManifest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestOsgiHeaderUtil

public TestOsgiHeaderUtil()
Method Detail

shouldAssertValueShouldNotBeNull

public void shouldAssertValueShouldNotBeNull()

shouldAssertValueShouldNotBeEmpty

public void shouldAssertValueShouldNotBeEmpty()
                                       throws IOException
Throws:
IOException

shouldRaiseAnExceptionWhenValueIsMissing

public void shouldRaiseAnExceptionWhenValueIsMissing()
                                              throws IOException
Throws:
IOException

shouldGetValidatedAttribute

public void shouldGetValidatedAttribute()
                                 throws IOException
Throws:
IOException

shouldGetEmptyAttributeWithoutValidation

public void shouldGetEmptyAttributeWithoutValidation()
                                              throws IOException
Throws:
IOException

shouldGetNullAttributeWithoutValidation

public void shouldGetNullAttributeWithoutValidation()
                                             throws IOException
Throws:
IOException

testFindReferredPackages

public void testFindReferredPackages()
                              throws IOException
Throws:
IOException

testFindReferredPackagesMustNotReturnJavaPackages

public void testFindReferredPackagesMustNotReturnJavaPackages()
                                                       throws IOException
Throws:
IOException

testFindReferredPackagesWithVersion

public void testFindReferredPackagesWithVersion()
                                         throws IOException
Throws:
IOException

testGetPluginKeyBundle

public void testGetPluginKeyBundle()

testGetPluginKeyManifest

public void testGetPluginKeyManifest()

testGeneratePackageVersionString

public void testGeneratePackageVersionString()

getManifestGetsManifest

public void getManifestGetsManifest()

getManifestReturnsNullIfManifestIsMissing

public void getManifestReturnsNullIfManifestIsMissing()

getManifestReturnsNullIfGetResourceAsStreamFails

public void getManifestReturnsNullIfGetResourceAsStreamFails()

getManifestReturnsNullIfResourceStreamThrowsWhenRead

public void getManifestReturnsNullIfResourceStreamThrowsWhenRead()
                                                          throws Exception
Throws:
Exception

getManifestReturnsNullIfManifestIsCorrupt

public void getManifestReturnsNullIfManifestIsCorrupt()


Copyright © 2015 Atlassian. All rights reserved.