summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-01-12 10:29:56 (EST)
committerCarsten Drossel2009-01-12 10:29:56 (EST)
commit5f62385ea1eb70201fecd3d6c5523a732ea140da (patch)
tree2dfdc4d0e2338d74a6e445a0495b9ab54e8ecc40
parent31a7c36ccfba24c8008ffc54c822a8e0e58d6c25 (diff)
downloadorg.eclipse.riena-5f62385ea1eb70201fecd3d6c5523a732ea140da.zip
org.eclipse.riena-5f62385ea1eb70201fecd3d6c5523a732ea140da.tar.gz
org.eclipse.riena-5f62385ea1eb70201fecd3d6c5523a732ea140da.tar.bz2
marking tests as UI tests
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/AbstractSWTRidgetWithControlTest.java2
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ChoiceCompositeTest.java2
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/NonUITestCase.java2
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/UITestCase.java5
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/ui/ridgets/marker/StatuslineMessageMarkerViewerTest.java2
5 files changed, 12 insertions, 1 deletions
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/AbstractSWTRidgetWithControlTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/AbstractSWTRidgetWithControlTest.java
index f6fc3b9..a789424 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/AbstractSWTRidgetWithControlTest.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/AbstractSWTRidgetWithControlTest.java
@@ -24,6 +24,7 @@ import org.eclipse.jface.databinding.swt.SWTObservables;
import org.eclipse.riena.core.marker.IMarker;
import org.eclipse.riena.core.util.ReflectionUtils;
import org.eclipse.riena.tests.UITestHelper;
+import org.eclipse.riena.tests.collect.UITestCase;
import org.eclipse.riena.ui.core.marker.DisabledMarker;
import org.eclipse.riena.ui.core.marker.MandatoryMarker;
import org.eclipse.riena.ui.core.marker.OutputMarker;
@@ -44,6 +45,7 @@ import org.eclipse.swt.widgets.Text;
* Abstract test class for <code>control</code>s of type <code>Control</code> or
* controls supporting simular features.
*/
+@UITestCase
public abstract class AbstractSWTRidgetWithControlTest extends TestCase {
private Shell shell;
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ChoiceCompositeTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ChoiceCompositeTest.java
index b0ccb05..f906ed4 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ChoiceCompositeTest.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ChoiceCompositeTest.java
@@ -12,6 +12,7 @@ package org.eclipse.riena.internal.ui.ridgets.swt;
import junit.framework.TestCase;
+import org.eclipse.riena.tests.collect.UITestCase;
import org.eclipse.riena.ui.swt.ChoiceComposite;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
@@ -24,6 +25,7 @@ import org.eclipse.swt.widgets.Shell;
/**
* Tests for the class {@link ChoiceComposite}.
*/
+@UITestCase
public class ChoiceCompositeTest extends TestCase {
private Shell shell;
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/NonUITestCase.java b/org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/NonUITestCase.java
index 7d9e33d..da82e47 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/NonUITestCase.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/NonUITestCase.java
@@ -18,6 +18,8 @@ import java.lang.annotation.Target;
/**
* Marks a {@code TestCase} as an non-UI test.
+ *
+ * @see UITestCase
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/UITestCase.java b/org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/UITestCase.java
index 9a882d2..a69eebe 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/UITestCase.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/tests/collect/UITestCase.java
@@ -17,7 +17,10 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
- * Marks a {@code TestCase} as an UI test.
+ * Marks a {@code TestCase} as an UI test. A UI test is a test that opens a
+ * shell to create a testing environment that allows to test aspects of UI
+ * widgets that could not be tested otherwise. Examples are focus handling or
+ * functionality that depends on the actual visibility.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/ui/ridgets/marker/StatuslineMessageMarkerViewerTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/ui/ridgets/marker/StatuslineMessageMarkerViewerTest.java
index 1dfd5e6..be4f64d 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/ui/ridgets/marker/StatuslineMessageMarkerViewerTest.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/ui/ridgets/marker/StatuslineMessageMarkerViewerTest.java
@@ -14,6 +14,7 @@ import junit.framework.TestCase;
import org.easymock.EasyMock;
import org.eclipse.riena.internal.ui.ridgets.swt.TextRidget;
+import org.eclipse.riena.tests.collect.UITestCase;
import org.eclipse.riena.ui.core.marker.ErrorMessageMarker;
import org.eclipse.riena.ui.core.marker.MessageMarker;
import org.eclipse.riena.ui.ridgets.IStatuslineRidget;
@@ -26,6 +27,7 @@ import org.eclipse.swt.widgets.Text;
/**
* Tests for the {@code StatuslineMessageMarkerViewer}.
*/
+@UITestCase
public class StatuslineMessageMarkerViewerTest extends TestCase {
private static final String EMPTY_STATUSLINE_MESSAGE = "TestEmptyStatusline";