Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2014-04-24 02:35:39 +0000
committerMarc-Andre Laperle2014-05-01 22:04:54 +0000
commitd017788e727c4c8098a611893fb1f553ac3954cb (patch)
tree860b6c5e3c4e5b5fe3434270d0671f45ab05ef7d
parentb2080ff46b7fb7d282b337862b1d62bc02f83d90 (diff)
downloadorg.eclipse.linuxtools-d017788e727c4c8098a611893fb1f553ac3954cb.tar.gz
org.eclipse.linuxtools-d017788e727c4c8098a611893fb1f553ac3954cb.tar.xz
org.eclipse.linuxtools-d017788e727c4c8098a611893fb1f553ac3954cb.zip
tmf: Re-enable SWTBot tests that now pass
Change-Id: I9b0ef07302e5fd8a9e48e9df1fa692b0d2cdfed5 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/25455 Tested-by: Hudson CI
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui.swtbot.tests/src/org/eclipse/linuxtools/tmf/ui/swtbot/tests/TestCustomTxtWizard.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui.swtbot.tests/src/org/eclipse/linuxtools/tmf/ui/swtbot/tests/TestCustomTxtWizard.java b/lttng/org.eclipse.linuxtools.tmf.ui.swtbot.tests/src/org/eclipse/linuxtools/tmf/ui/swtbot/tests/TestCustomTxtWizard.java
index 4da75ca317..bdf1acdc95 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui.swtbot.tests/src/org/eclipse/linuxtools/tmf/ui/swtbot/tests/TestCustomTxtWizard.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui.swtbot.tests/src/org/eclipse/linuxtools/tmf/ui/swtbot/tests/TestCustomTxtWizard.java
@@ -21,8 +21,9 @@ import java.io.FileWriter;
import java.io.IOException;
import java.io.RandomAccessFile;
+import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Logger;
-import org.apache.log4j.varia.NullAppender;
+import org.apache.log4j.SimpleLayout;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
@@ -31,7 +32,6 @@ import org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences;
import org.eclipse.swtbot.swt.finder.waits.Conditions;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -101,7 +101,7 @@ public class TestCustomTxtWizard {
Thread.currentThread().setName("SWTBot Thread"); // for the debugger
/* set up for swtbot */
SWTBotPreferences.TIMEOUT = 20000; /* 20 second timeout */
- fLogger.addAppender(new NullAppender());
+ fLogger.addAppender(new ConsoleAppender(new SimpleLayout()));
fBot = new SWTWorkbenchBot();
SWTBotUtil.closeView("welcome", fBot);
@@ -120,7 +120,6 @@ public class TestCustomTxtWizard {
* @throws FileNotFoundException
* the xml file wasn't written, this is bad
*/
- @Ignore
@Test
public void testNew() throws FileNotFoundException, IOException {
File xmlFile = ResourcesPlugin.getWorkspace().getRoot().getLocation().append(".metadata/.plugins/org.eclipse.linuxtools.tmf.core/custom_txt_parsers.xml").toFile();
@@ -141,6 +140,7 @@ public class TestCustomTxtWizard {
assertNotNull(treeNode);
treeNode.contextMenu("Manage Custom Parsers...").click();
fBot.waitUntil(Conditions.shellIsActive(MANAGE_CUSTOM_PARSERS_SHELL_TITLE));
+
fBot.button("New...").click();
fBot.textWithLabel("Log type:").setText(PROJECT_NAME);
@@ -191,7 +191,6 @@ public class TestCustomTxtWizard {
* @throws FileNotFoundException
* the xml file wasn't written, this is bad
*/
- @Ignore
@Test
public void testEdit() throws FileNotFoundException, IOException {
File xmlFile = ResourcesPlugin.getWorkspace().getRoot().getLocation().append(".metadata/.plugins/org.eclipse.linuxtools.tmf.core/custom_txt_parsers.xml").toFile();

Back to the top