public void addIncludedGroup(String g) { if (m_xmlGroups == null) { m_xmlGroups = new XmlGroups(); m_xmlGroups.setRun(new XmlRun()); } m_xmlGroups.getRun().getIncludes().add(g); }
public void setExcludedGroups(List<String> g) { if (m_xmlGroups == null) { m_xmlGroups = new XmlGroups(); } if (m_xmlGroups.getRun() == null) { m_xmlGroups.setRun(new XmlRun()); } List<String> excludes = m_xmlGroups.getRun().getExcludes(); excludes.clear(); excludes.addAll(g); }
int result = 1; result = prime * result + ((m_xmlGroups == null || m_xmlGroups.getRun() == null) ? 0 : m_xmlGroups.getRun().getExcludes().hashCode()); result = prime .hashCode()); result = prime * result + ((m_xmlGroups == null || m_xmlGroups.getRun() == null) ? 0 : m_xmlGroups.getRun().getIncludes().hashCode()); result = prime * result + ((m_isJUnit == null) ? 0 : m_isJUnit.hashCode()); result = prime * result
@Test public void testIncludedAndExcludedGroupsWithRun() { XmlRun xmlRun = new XmlRun(); xmlRun.onInclude("foo"); xmlRun.onExclude("bar"); XmlGroups groups = new XmlGroups(); groups.setRun(xmlRun); XmlSuite suite = new XmlSuite(); suite.setGroups(groups); assertThat(suite.getIncludedGroups()).containsExactly("foo"); assertThat(suite.getExcludedGroups()).containsExactly("bar"); }
public List<String> getExcludedGroups() { List<String> result = new ArrayList<>(); if (m_xmlGroups != null && m_xmlGroups.getRun() != null) { result.addAll(m_xmlGroups.getRun().getExcludes()); } result.addAll(m_suite.getExcludedGroups()); return Collections.unmodifiableList(result); }
/** * @return the includedGroups. */ public List<String> getIncludedGroups() { List<String> result = Lists.newArrayList(); if (m_xmlGroups != null && m_xmlGroups.getRun() != null) { result.addAll(m_xmlGroups.getRun().getIncludes()); } result.addAll(m_suite.getIncludedGroups()); return Collections.unmodifiableList(result); }
xsb.getStringBuffer().append(m_run.toXml(indent2));
+ ((m_xmlGroups == null || m_xmlGroups.getRun() == null) ? 0 : m_xmlGroups.getRun().getExcludes().hashCode()); result = prime * result + ((m_xmlGroups == null || m_xmlGroups.getRun() == null) ? 0 : m_xmlGroups.getRun().getIncludes().hashCode()); result = prime * result + ((m_isJUnit == null) ? 0 : m_isJUnit.hashCode()); result = prime * result + ((m_xmlGroups == null) ? 0 : m_xmlGroups.getDefines().hashCode());
public List<String> getExcludedGroups() { List<String> result = new ArrayList<>(); if (m_xmlGroups != null && m_xmlGroups.getRun() != null) { result.addAll(m_xmlGroups.getRun().getExcludes()); } result.addAll(getSuite().getExcludedGroups()); return Collections.unmodifiableList(result); }
/** * @return Returns the includedGroups. * Note: do not modify the returned value, use {@link #addIncludedGroup(String)}. */ public List<String> getIncludedGroups() { if (m_parentSuite != null) { return m_parentSuite.getIncludedGroups(); } else if (m_xmlGroups != null && (m_xmlGroups.getRun() != null)) { return m_xmlGroups.getRun().getIncludes(); } else { // deprecated return m_includedGroups; } }
xsb.getStringBuffer().append(m_run.toXml(indent2));
public void setIncludedGroups(List<String> g) { if (m_xmlGroups == null) { m_xmlGroups = new XmlGroups(); } if (m_xmlGroups.getRun() == null) { m_xmlGroups.setRun(new XmlRun()); } List<String> includes = m_xmlGroups.getRun().getIncludes(); includes.clear(); includes.addAll(g); }
public void addExcludedGroup(String g) { if (m_xmlGroups == null) { m_xmlGroups = new XmlGroups(); } if (m_xmlGroups.getRun() == null) { m_xmlGroups.setRun(new XmlRun()); } m_xmlGroups.getRun().getExcludes().add(g); }
return false; if (!m_xmlGroups.getRun().getExcludes().equals(other.m_xmlGroups.getRun().getExcludes())) { return XmlSuite.f(); if (!m_xmlGroups.getRun().getIncludes().equals(other.m_xmlGroups.getRun().getIncludes())) { return XmlSuite.f();
/** * @return Returns the excludedGroups. * Note: do not modify the returned value, use {@link #addExcludedGroup(String)}. */ public List<String> getExcludedGroups() { if (m_parentSuite != null) { return m_parentSuite.getExcludedGroups(); } else if (m_xmlGroups != null && (m_xmlGroups.getRun() != null)) { return m_xmlGroups.getRun().getExcludes(); } else { return m_excludedGroups; } }
/** @return the includedGroups. */ public List<String> getIncludedGroups() { List<String> result = Lists.newArrayList(); if (m_xmlGroups != null && m_xmlGroups.getRun() != null) { result.addAll(m_xmlGroups.getRun().getIncludes()); } result.addAll(getSuite().getIncludedGroups()); return Collections.unmodifiableList(result); }
public void addIncludedGroup(String g) { if (m_xmlGroups == null) { m_xmlGroups = new XmlGroups(); m_xmlGroups.setRun(new XmlRun()); } m_xmlGroups.getRun().getIncludes().add(g); }
public void setExcludedGroups(List<String> g) { if (m_xmlGroups == null) { m_xmlGroups = new XmlGroups(); } if (m_xmlGroups.getRun() == null) { m_xmlGroups.setRun(new XmlRun()); } List<String> excludes = m_xmlGroups.getRun().getExcludes(); excludes.clear(); excludes.addAll(g); }
(!xmlTest.getXmlGroups().getDefines().isEmpty() || (xmlTest.getXmlGroups().getRun() != null && (!xmlTest.getXmlGroups().getRun().getIncludes().isEmpty() || !xmlTest.getXmlGroups().getRun().getExcludes().isEmpty() if ((xmlTest.getXmlGroups() != null && xmlTest.getXmlGroups().getRun() != null) && (!xmlTest.getXmlGroups().getRun().getIncludes().isEmpty() || !xmlTest.getXmlGroups().getRun().getExcludes().isEmpty())) { xsb.push("run"); for (String includeGroupName : xmlTest.getXmlGroups().getRun().getIncludes()) { Properties includeProps = new Properties(); includeProps.setProperty("name", includeGroupName); for (String excludeGroupName : xmlTest.getXmlGroups().getRun().getExcludes()) { Properties excludeProps = new Properties(); excludeProps.setProperty("name", excludeGroupName);