Author: ljelinko
Date: 2011-11-21 12:00:33 -0500 (Mon, 21 Nov 2011)
New Revision: 36504
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/matcher/workspace/WorkspaceMatchersFactory.java
Log:
added new matcher
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/matcher/workspace/WorkspaceMatchersFactory.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/matcher/workspace/WorkspaceMatchersFactory.java 2011-11-21
17:00:16 UTC (rev 36503)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/matcher/workspace/WorkspaceMatchersFactory.java 2011-11-21
17:00:33 UTC (rev 36504)
@@ -1,6 +1,9 @@
package org.jboss.tools.portlet.ui.bot.test.matcher.workspace;
import org.jboss.tools.portlet.ui.bot.test.matcher.SWTMatcher;
+import org.jboss.tools.portlet.ui.bot.test.matcher.workspace.file.ExistingFileMatcher;
+import
org.jboss.tools.portlet.ui.bot.test.matcher.workspace.file.xml.XMLFileNodeContentMatcher;
+import org.jboss.tools.portlet.ui.bot.test.matcher.workspace.file.xml.XMLNode;
import org.jboss.tools.portlet.ui.bot.test.task.facet.FacetDefinition;
/**
@@ -26,4 +29,8 @@
public static SWTMatcher<String> hasFacets(FacetDefinition... facets){
return new ProjectFacetsMatcher(facets);
}
+
+ public static SWTMatcher<XMLNode[]> areInFile(String project, String file){
+ return new XMLFileNodeContentMatcher(project, file);
+ }
}
Show replies by date