org.springframework.osgi.mock
Class MockBundleContextTest

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

public class MockBundleContextTest
extends TestCase

Author:
Costin Leau

Constructor Summary
MockBundleContextTest()
           
 
Method Summary
protected  void setUp()
           
 void testAddServiceListener()
           
 void testCreateFilter()
          Test method for MockBundleContext.createFilter(java.lang.String).
 void testGetAllServiceReferences()
          Test method for MockBundleContext.getAllServiceReferences(java.lang.String, java.lang.String).
 void testGetBundle()
          Test method for MockBundleContext.getBundle().
 void testGetBundleLong()
          Test method for MockBundleContext.getBundle(long).
 void testGetBundles()
          Test method for MockBundleContext.getBundles().
 void testGetDataFile()
          Test method for MockBundleContext.getDataFile(java.lang.String).
 void testGetProperty()
          Test method for MockBundleContext.getProperty(java.lang.String).
 void testGetService()
          Test method for MockBundleContext.getService(org.osgi.framework.ServiceReference).
 void testGetServiceReference()
          Test method for MockBundleContext.getServiceReference(java.lang.String).
 void testGetServiceReferences()
          Test method for MockBundleContext.getServiceReferences(java.lang.String, java.lang.String).
 void testInstallBundleString()
          Test method for MockBundleContext.installBundle(java.lang.String).
 void testInstallBundleStringInputStream()
          Test method for MockBundleContext.installBundle(java.lang.String, java.io.InputStream).
 void testMandatoryPropertiesAvailable()
           
 void testMockBundleContext()
          Test method for MockBundleContext.MockBundleContext().
 void testMockBundleContextBundle()
          Test method for MockBundleContext.MockBundleContext(org.osgi.framework.Bundle).
 void testMockBundleContextBundleProperties()
          Test method for MockBundleContext.MockBundleContext(org.osgi.framework.Bundle, java.util.Properties).
 void testRegisterServiceStringArrayObjectDictionary()
          Test method for MockBundleContext.registerService(java.lang.String[], java.lang.Object, java.util.Dictionary).
 void testRegisterServiceStringObjectDictionary()
          Test method for MockBundleContext.registerService(java.lang.String, java.lang.Object, java.util.Dictionary).
 void testRemoveServiceListener()
           
 void testUngetService()
          Test method for MockBundleContext.ungetService(org.osgi.framework.ServiceReference).
 
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

MockBundleContextTest

public MockBundleContextTest()
Method Detail

setUp

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

testMockBundleContext

public void testMockBundleContext()
Test method for MockBundleContext.MockBundleContext().


testMockBundleContextBundle

public void testMockBundleContextBundle()
Test method for MockBundleContext.MockBundleContext(org.osgi.framework.Bundle).


testMockBundleContextBundleProperties

public void testMockBundleContextBundleProperties()
Test method for MockBundleContext.MockBundleContext(org.osgi.framework.Bundle, java.util.Properties).


testCreateFilter

public void testCreateFilter()
                      throws Exception
Test method for MockBundleContext.createFilter(java.lang.String).

Throws:
Exception

testGetAllServiceReferences

public void testGetAllServiceReferences()
                                 throws Exception
Test method for MockBundleContext.getAllServiceReferences(java.lang.String, java.lang.String).

Throws:
Exception

testGetBundle

public void testGetBundle()
Test method for MockBundleContext.getBundle().


testGetBundleLong

public void testGetBundleLong()
Test method for MockBundleContext.getBundle(long).


testGetBundles

public void testGetBundles()
Test method for MockBundleContext.getBundles().


testGetDataFile

public void testGetDataFile()
Test method for MockBundleContext.getDataFile(java.lang.String).


testGetProperty

public void testGetProperty()
Test method for MockBundleContext.getProperty(java.lang.String).


testGetService

public void testGetService()
Test method for MockBundleContext.getService(org.osgi.framework.ServiceReference).


testGetServiceReference

public void testGetServiceReference()
                             throws Exception
Test method for MockBundleContext.getServiceReference(java.lang.String).

Throws:
Exception

testGetServiceReferences

public void testGetServiceReferences()
                              throws Exception
Test method for MockBundleContext.getServiceReferences(java.lang.String, java.lang.String).

Throws:
Exception

testInstallBundleString

public void testInstallBundleString()
                             throws Exception
Test method for MockBundleContext.installBundle(java.lang.String).

Throws:
Exception

testInstallBundleStringInputStream

public void testInstallBundleStringInputStream()
                                        throws Exception
Test method for MockBundleContext.installBundle(java.lang.String, java.io.InputStream).

Throws:
Exception

testRegisterServiceStringArrayObjectDictionary

public void testRegisterServiceStringArrayObjectDictionary()
Test method for MockBundleContext.registerService(java.lang.String[], java.lang.Object, java.util.Dictionary).


testRegisterServiceStringObjectDictionary

public void testRegisterServiceStringObjectDictionary()
Test method for MockBundleContext.registerService(java.lang.String, java.lang.Object, java.util.Dictionary).


testUngetService

public void testUngetService()
Test method for MockBundleContext.ungetService(org.osgi.framework.ServiceReference).


testMandatoryPropertiesAvailable

public void testMandatoryPropertiesAvailable()

testAddServiceListener

public void testAddServiceListener()
                            throws Exception
Throws:
Exception

testRemoveServiceListener

public void testRemoveServiceListener()
                               throws Exception
Throws:
Exception


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