org.springframework.osgi.mock
Class MockBundleTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.osgi.mock.MockBundleTest
All Implemented Interfaces:
Test

public class MockBundleTest
extends TestCase

Author:
Costin Leau

Constructor Summary
MockBundleTest()
           
 
Method Summary
protected  void setUp()
           
 void testBundleContextSpecified()
           
 void testDefaultGetBundleContext()
           
 void testDefaultStart()
           
 void testDefaultStop()
           
 void testFindEntries()
          Test method for MockBundle.findEntries(java.lang.String, java.lang.String, boolean).
 void testGetBundleId()
          Test method for MockBundle.getBundleId().
 void testGetEmptyEnumerator()
           
 void testGetEntry()
          Test method for MockBundle.getEntry(java.lang.String).
 void testGetEntryPaths()
          Test method for MockBundle.getEntryPaths(java.lang.String).
 void testGetHeaders()
          Test method for MockBundle.getHeaders().
 void testGetHeadersString()
          Test method for MockBundle.getHeaders(java.lang.String).
 void testGetLastModified()
          Test method for MockBundle.getLastModified().
 void testGetLocation()
          Test method for MockBundle.getLocation().
 void testGetRegisteredServices()
          Test method for MockBundle.getRegisteredServices().
 void testGetResource()
          Test method for MockBundle.getResource(java.lang.String).
 void testGetResources()
          Test method for MockBundle.getResources(java.lang.String).
 void testGetServicesInUse()
          Test method for MockBundle.getServicesInUse().
 void testGetState()
          Test method for MockBundle.getState().
 void testGetSymbolicName()
          Test method for MockBundle.getSymbolicName().
 void testHasPermission()
          Test method for MockBundle.hasPermission(java.lang.Object).
 void testLoadClass()
          Test method for MockBundle.loadClass(java.lang.String).
 void testMockBundle()
          Test method for MockBundle.MockBundle().
 void testMockBundleBundleContext()
          Test method for MockBundle.MockBundle(org.osgi.framework.BundleContext).
 void testMockBundleDictionary()
          Test method for MockBundle.MockBundle(java.util.Dictionary).
 void testMockBundleString()
          Test method for MockBundle.MockBundle(java.lang.String).
 void testMockBundleStringDictionaryBundleContext()
          Test method for MockBundle.MockBundle(java.lang.String, java.util.Dictionary, org.osgi.framework.BundleContext).
 void testStartWithOptions()
           
 void testStopWithOptions()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockBundleTest

public MockBundleTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestCase
Throws:
Exception

testMockBundle

public void testMockBundle()
Test method for MockBundle.MockBundle().


testMockBundleDictionary

public void testMockBundleDictionary()
Test method for MockBundle.MockBundle(java.util.Dictionary).


testMockBundleString

public void testMockBundleString()
Test method for MockBundle.MockBundle(java.lang.String).


testMockBundleBundleContext

public void testMockBundleBundleContext()
Test method for MockBundle.MockBundle(org.osgi.framework.BundleContext).


testMockBundleStringDictionaryBundleContext

public void testMockBundleStringDictionaryBundleContext()
Test method for MockBundle.MockBundle(java.lang.String, java.util.Dictionary, org.osgi.framework.BundleContext).


testFindEntries

public void testFindEntries()
Test method for MockBundle.findEntries(java.lang.String, java.lang.String, boolean).


testGetBundleId

public void testGetBundleId()
Test method for MockBundle.getBundleId().


testGetEntry

public void testGetEntry()
                  throws Exception
Test method for MockBundle.getEntry(java.lang.String).

Throws:
Exception

testGetEntryPaths

public void testGetEntryPaths()
Test method for MockBundle.getEntryPaths(java.lang.String).


testGetHeaders

public void testGetHeaders()
Test method for MockBundle.getHeaders().


testGetHeadersString

public void testGetHeadersString()
Test method for MockBundle.getHeaders(java.lang.String).


testGetLastModified

public void testGetLastModified()
Test method for MockBundle.getLastModified().


testGetLocation

public void testGetLocation()
Test method for MockBundle.getLocation().


testGetRegisteredServices

public void testGetRegisteredServices()
Test method for MockBundle.getRegisteredServices().


testGetResource

public void testGetResource()
Test method for MockBundle.getResource(java.lang.String).


testGetResources

public void testGetResources()
                      throws Exception
Test method for MockBundle.getResources(java.lang.String).

Throws:
Exception

testGetServicesInUse

public void testGetServicesInUse()
Test method for MockBundle.getServicesInUse().


testGetState

public void testGetState()
Test method for MockBundle.getState().


testGetSymbolicName

public void testGetSymbolicName()
Test method for MockBundle.getSymbolicName().


testHasPermission

public void testHasPermission()
Test method for MockBundle.hasPermission(java.lang.Object).


testLoadClass

public void testLoadClass()
                   throws Exception
Test method for MockBundle.loadClass(java.lang.String).

Throws:
Exception

testGetEmptyEnumerator

public void testGetEmptyEnumerator()

testDefaultStart

public void testDefaultStart()
                      throws Exception
Throws:
Exception

testStartWithOptions

public void testStartWithOptions()
                          throws Exception
Throws:
Exception

testDefaultStop

public void testDefaultStop()
                     throws Exception
Throws:
Exception

testStopWithOptions

public void testStopWithOptions()
                         throws Exception
Throws:
Exception

testDefaultGetBundleContext

public void testDefaultGetBundleContext()
                                 throws Exception
Throws:
Exception

testBundleContextSpecified

public void testBundleContextSpecified()
                                throws Exception
Throws:
Exception


Copyright © 2006-2011 Spring Framework. All Rights Reserved.