" <exclude name='some.name'/>",
" </source>",
"</module>"});
assertThat(m_module.getChildren()).hasSize(1);
// prepare single "<source>" element
SourceElement sourceElement;
{
List<SourceElement> sourceElements = m_module.getSourceElements();
assertThat(sourceElements).hasSize(1);
sourceElement = sourceElements.get(0);
}
// current "path" value
assertEquals("some.path", sourceElement.getPath());
// ExcludeElement
{
List<ExcludeElement> excludeElements = sourceElement.getExcludeElements();
assertThat(excludeElements).hasSize(1);
ExcludeElement excludeElement = excludeElements.get(0);
assertEquals("some.name", excludeElement.getName());
}
}