Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-05-29 15:23:01 +0000
committerspingel2011-05-29 15:23:01 +0000
commit81be28de6992a80d43b12832d3f7d0fc6baad7d9 (patch)
tree1844f9d01924b4464d9d1c7a678d059db3ea33cf /org.eclipse.mylyn.tasks.tests
parent3845075581138bb690843b570f0723ef240f18a3 (diff)
downloadorg.eclipse.mylyn.tasks-81be28de6992a80d43b12832d3f7d0fc6baad7d9.tar.gz
org.eclipse.mylyn.tasks-81be28de6992a80d43b12832d3f7d0fc6baad7d9.tar.xz
org.eclipse.mylyn.tasks-81be28de6992a80d43b12832d3f7d0fc6baad7d9.zip
NEW - bug 339467: [discovery] inform users when new versions or connectors are available
https://bugs.eclipse.org/bugs/show_bug.cgi?id=339467
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/EnvironmentTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/EnvironmentTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/EnvironmentTest.java
index bc90e9034..04d311efc 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/EnvironmentTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/EnvironmentTest.java
@@ -63,6 +63,7 @@ public class EnvironmentTest extends TestCase {
@Override
protected void setUp() throws Exception {
installedFeatures = new HashSet<String>();
+ System.setProperty("EnvironmentTest", "2");
environment = new Environment() {
@Override
public Set<String> getInstalledFeatures(IProgressMonitor monitor) {
@@ -139,4 +140,13 @@ public class EnvironmentTest extends TestCase {
assertFalse(environment.matches(new StubEntry(values), null));
}
+ public void testMatchesFilter() {
+ Map<String, String> values = new HashMap<String, String>();
+ values.put("filter", "(EnvironmentTest<=1)");
+ assertFalse(environment.matches(new StubEntry(values), null));
+
+ values.put("filter", "(EnvironmentTest=2)");
+ assertTrue(environment.matches(new StubEntry(values), null));
+ }
+
}

Back to the top