You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2013/12/10 03:37:21 UTC
svn commit: r1549748 -
/felix/trunk/framework/src/test/java/org/apache/felix/framework/util/EventDispatcherTest.java
Author: cziegeler
Date: Tue Dec 10 02:37:21 2013
New Revision: 1549748
URL: http://svn.apache.org/r1549748
Log:
Remove system out from test
Modified:
felix/trunk/framework/src/test/java/org/apache/felix/framework/util/EventDispatcherTest.java
Modified: felix/trunk/framework/src/test/java/org/apache/felix/framework/util/EventDispatcherTest.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/test/java/org/apache/felix/framework/util/EventDispatcherTest.java?rev=1549748&r1=1549747&r2=1549748&view=diff
==============================================================================
--- felix/trunk/framework/src/test/java/org/apache/felix/framework/util/EventDispatcherTest.java (original)
+++ felix/trunk/framework/src/test/java/org/apache/felix/framework/util/EventDispatcherTest.java Tue Dec 10 02:37:21 2013
@@ -93,7 +93,6 @@ public class EventDispatcherTest extends
public void serviceChanged(ServiceEvent arg0)
{
fired.add(this);
- System.out.println("*** sl1");
}
};
ed.addListener(b1.getBundleContext(), ServiceListener.class, sl1, null);
@@ -103,7 +102,6 @@ public class EventDispatcherTest extends
public void serviceChanged(ServiceEvent arg0)
{
fired.add(this);
- System.out.println("*** sl2");
}
};
ed.addListener(b2.getBundleContext(), ServiceListener.class, sl2, null);
@@ -113,13 +111,12 @@ public class EventDispatcherTest extends
public void serviceChanged(ServiceEvent arg0)
{
fired.add(this);
- System.out.println("*** sl3");
}
};
ed.addListener(b3.getBundleContext(), ServiceListener.class, sl3, null);
// --- make the invocation
- ServiceReference sr = (ServiceReference) EasyMock.createNiceMock(ServiceReference.class);
+ ServiceReference sr = EasyMock.createNiceMock(ServiceReference.class);
EasyMock.expect(sr.getProperty(Constants.OBJECTCLASS)).andReturn(new String[]
{
"java.lang.String"
@@ -139,7 +136,7 @@ public class EventDispatcherTest extends
assertEquals("Precondition failed", 0, fired.size());
- Framework framework = (Framework) EasyMock.createNiceMock(Framework.class);
+ Framework framework = EasyMock.createNiceMock(Framework.class);
EasyMock.replay(new Object[]
{
framework
@@ -156,8 +153,8 @@ public class EventDispatcherTest extends
private Bundle getMockBundle()
{
- BundleContext bc = (BundleContext) EasyMock.createNiceMock(BundleContext.class);
- Bundle b = (Bundle) EasyMock.createNiceMock(Bundle.class);
+ BundleContext bc = EasyMock.createNiceMock(BundleContext.class);
+ Bundle b = EasyMock.createNiceMock(Bundle.class);
EasyMock.expect(b.getBundleContext()).andReturn(bc).anyTimes();
b.getState();
EasyMock.expectLastCall().andReturn(Integer.valueOf(Bundle.ACTIVE)).anyTimes();