aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLazar Kirchev2013-03-27 20:13:18 (EDT)
committerLazar Kirchev2013-03-27 20:13:18 (EDT)
commit452e0c8dae5a52ad9bb97e073caa16b40c3c1eee (patch)
tree8b45cd271337bfd3747894fe7999b0ca4b35f815
parent39af747aa850411e67c0f40efe8cd16017263396 (diff)
downloadrt.equinox.bundles-452e0c8dae5a52ad9bb97e073caa16b40c3c1eee.zip
rt.equinox.bundles-452e0c8dae5a52ad9bb97e073caa16b40c3c1eee.tar.gz
rt.equinox.bundles-452e0c8dae5a52ad9bb97e073caa16b40c3c1eee.tar.bz2
Bug 403893 - fix test accordinglyI20130402-0800
-rwxr-xr-xbundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapterTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapterTest.java b/bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapterTest.java
index c59b1d6..91ce5f5 100755
--- a/bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapterTest.java
+++ b/bundles/org.eclipse.equinox.console.tests/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapterTest.java
@@ -17,9 +17,11 @@ import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Set;
+import org.apache.felix.service.command.CommandSession;
import org.eclipse.osgi.framework.console.CommandInterpreter;
import org.eclipse.osgi.framework.console.CommandProvider;
import org.junit.Test;
+import org.easymock.EasyMock;
public class CommandProviderAdapterTest {
@@ -34,11 +36,12 @@ public class CommandProviderAdapterTest {
}
}
CommandProviderAdapter providerAdapter = new CommandProviderAdapter(provider, m.toArray(new Method[0]));
+ CommandSession session = EasyMock.createMock(CommandSession.class);
- String result = (String) providerAdapter.main(new Object[] {"test"});
+ String result = (String) providerAdapter.main(session, new Object[] {"test"});
assertEquals("Result should be test", "test", result);
- result = (String) providerAdapter.main(new Object[] {"echo", "hello"});
+ result = (String) providerAdapter.main(session, new Object[] {"echo", "hello"});
assertEquals("Result should be hello", "hello", result);
}