You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2009/07/31 21:09:03 UTC

svn commit: r799704 - /felix/trunk/scr/src/test/java/org/apache/felix/scr/impl/BundleComponentActivatorTest.java

Author: fmeschbe
Date: Fri Jul 31 19:09:03 2009
New Revision: 799704

URL: http://svn.apache.org/viewvc?rev=799704&view=rev
Log:
FELIX-928 For Java 1.3 compilation we need casts

Modified:
    felix/trunk/scr/src/test/java/org/apache/felix/scr/impl/BundleComponentActivatorTest.java

Modified: felix/trunk/scr/src/test/java/org/apache/felix/scr/impl/BundleComponentActivatorTest.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/impl/BundleComponentActivatorTest.java?rev=799704&r1=799703&r2=799704&view=diff
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/impl/BundleComponentActivatorTest.java (original)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/impl/BundleComponentActivatorTest.java Fri Jul 31 19:09:03 2009
@@ -82,7 +82,7 @@
         throws MalformedURLException
     {
         URL descriptor = new URL( "file:foo.xml" );
-        final Bundle bundle = EasyMock.createNiceMock( Bundle.class );
+        final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class );
         EasyMock.expect( bundle.getResource( "/some/location/foo.xml" ) ).andReturn( descriptor );
 
         EasyMock.replay( new Object[]{ bundle } );
@@ -105,7 +105,7 @@
                 new URL( "file:foo2.xml" )
             };
         final Enumeration de = new Vector( Arrays.asList( urls ) ).elements();
-        final Bundle bundle = EasyMock.createNiceMock( Bundle.class );
+        final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class );
         EasyMock.expect( bundle.findEntries( path, filePattern, false ) ).andReturn( de );
 
         EasyMock.replay( new Object[]{ bundle } );
@@ -150,7 +150,7 @@
     public void test_findDescriptors_withWildcardLocation_nullEnum()
         throws MalformedURLException
     {
-        final Bundle bundle = EasyMock.createNiceMock( Bundle.class );
+        final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class );
         EasyMock.expect( bundle.findEntries( "/", "*.xml", false ) ).andReturn( null );
 
         EasyMock.replay( new Object[]{ bundle } );
@@ -169,7 +169,7 @@
     public void test_findDescriptors_withWildcardLocation_emptyEnum()
         throws MalformedURLException
     {
-        final Bundle bundle = EasyMock.createNiceMock( Bundle.class );
+        final Bundle bundle = (Bundle) EasyMock.createNiceMock( Bundle.class );
         EasyMock.expect( bundle.findEntries( "/", "*.xml", false ) ).andReturn( new Vector().elements() );
 
         EasyMock.replay( new Object[]{ bundle } );