org.springframework.osgi.extensions.annotation
Class OsgiServiceAnnotationTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.osgi.extensions.annotation.OsgiServiceAnnotationTest
All Implemented Interfaces:
Test

public class OsgiServiceAnnotationTest
extends TestCase

Author:
Andy Piper

Constructor Summary
OsgiServiceAnnotationTest()
           
 
Method Summary
protected  Object getPrivateProperty(Object target, String fieldName)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testErrorMultiCardinality()
           
 void testGetServicePropertyBeanName()
           
 void testGetServicePropertyCardinality()
           
 void testGetServicePropertyClassloader()
           
 void testGetServicePropertyComplex()
           
 void testGetServicePropertyFilter()
           
 void testGetServicePropertyServiceClass()
           
 void testProperMultiCardinality()
           
 void testServiceBeanInjectedValues()
           
 void testServiceBeanInjection()
           
 void testServiceFactoryBeanInjected()
           
 void testServiceFactoryBeanNotInjected()
           
 void tstGetServicePropertySetters()
          Disabled since it doesn't work as we can't proxy final classes.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OsgiServiceAnnotationTest

public OsgiServiceAnnotationTest()
Method Detail

setUp

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

tearDown

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

tstGetServicePropertySetters

public void tstGetServicePropertySetters()
                                  throws Exception
Disabled since it doesn't work as we can't proxy final classes.

Throws:
Exception

testGetServicePropertyCardinality

public void testGetServicePropertyCardinality()
                                       throws Exception
Throws:
Exception

testProperMultiCardinality

public void testProperMultiCardinality()
                                throws Exception
Throws:
Exception

testErrorMultiCardinality

public void testErrorMultiCardinality()
                               throws Exception
Throws:
Exception

testGetServicePropertyClassloader

public void testGetServicePropertyClassloader()
                                       throws Exception
Throws:
Exception

testGetServicePropertyBeanName

public void testGetServicePropertyBeanName()
                                    throws Exception
Throws:
Exception

testGetServicePropertyFilter

public void testGetServicePropertyFilter()
                                  throws Exception
Throws:
Exception

testGetServicePropertyServiceClass

public void testGetServicePropertyServiceClass()
                                        throws Exception
Throws:
Exception

testGetServicePropertyComplex

public void testGetServicePropertyComplex()
                                   throws Exception
Throws:
Exception

testServiceBeanInjection

public void testServiceBeanInjection()
                              throws Exception
Throws:
Exception

testServiceFactoryBeanNotInjected

public void testServiceFactoryBeanNotInjected()
                                       throws Exception
Throws:
Exception

testServiceFactoryBeanInjected

public void testServiceFactoryBeanInjected()
                                    throws Exception
Throws:
Exception

testServiceBeanInjectedValues

public void testServiceBeanInjectedValues()
                                   throws Exception
Throws:
Exception

getPrivateProperty

protected Object getPrivateProperty(Object target,
                                    String fieldName)


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