Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Wagiaalla2013-05-22 14:07:59 -0400
committerCamilo Bernal2013-05-23 11:38:51 -0400
commit536b844c9cd585323d4849e7d8434cd38cea9114 (patch)
tree8ee4266fca74d252336bc6567f98cacb01bff22f /systemtap/org.eclipse.linuxtools.systemtap.ui.tests
parentbbe910d4a109e054e92d0d8f3748a2ef6760d77b (diff)
downloadorg.eclipse.linuxtools-536b844c9cd585323d4849e7d8434cd38cea9114.tar.gz
org.eclipse.linuxtools-536b844c9cd585323d4849e7d8434cd38cea9114.tar.xz
org.eclipse.linuxtools-536b844c9cd585323d4849e7d8434cd38cea9114.zip
Mock stap for testing
Change-Id: I61c517602efebe83424f8989e45594af08205c54 Reviewed-on: https://git.eclipse.org/r/13055 Tested-by: Hudson CI Reviewed-by: Camilo Bernal <cabernal@redhat.com> IP-Clean: Camilo Bernal <cabernal@redhat.com> Tested-by: Camilo Bernal <cabernal@redhat.com>
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.systemtap.ui.tests')
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java67
1 files changed, 0 insertions, 67 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java
deleted file mode 100644
index 4def75e8a7..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 IBM Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.linuxtools.systemtap.ui.tests;
-
-import java.io.InputStream;
-import java.io.OutputStream;
-
-public class SystemtapGuiMockProcess extends Process {
- protected int exitcode;
-
- public SystemtapGuiMockProcess(int exitcode) {
- this.exitcode = exitcode;
- }
-
- @Override
- public void destroy() {
- }
-
- @Override
- public int exitValue() {
- return exitcode;
- }
-
- @Override
- public InputStream getErrorStream() {
- return new InputStream() {
- @Override
- public int read() {
- return -1;
- }
- };
- }
-
- @Override
- public InputStream getInputStream() {
- return new InputStream() {
- @Override
- public int read() {
- return -1;
- }
- };
- }
-
- @Override
- public OutputStream getOutputStream() {
- return new OutputStream() {
- @Override
- public void write(int b) {
- }
- };
- }
-
- @Override
- public int waitFor() {
- return exitcode;
- }
-
-}

Back to the top