use of uk.co.jemos.podam.test.dto.pdm6.Parent in project JMRI by JMRI.
the class QualifierAdder method processModifierElements.
public void processModifierElements(Element e, VariableTableModel model) {
ArrayList<Qualifier> lq = new ArrayList<Qualifier>();
// we assign to this to allow us to suppress unchecked error
List<Element> le = e.getChildren("qualifier");
processList(le, lq, model);
// search for enclosing element so we can find all relevant qualifiers
Parent p = e;
while ((p = p.getParent()) != null && p instanceof Element) {
Element el = (Element) p;
if (el.getName().equals("pane")) {
// stop when we get to an enclosing pane element
break;
}
@SuppressWarnings("unchecked") List<Element> // we assign to this to allow us to suppress unchecked error
le2 = el.getChildren("qualifier");
processList(le2, lq, model);
}
// Add the AND logic - listen for change and ensure result correct
if (lq.size() > 1) {
QualifierCombiner qc = new QualifierCombiner(lq);
addListener(qc);
}
}
use of uk.co.jemos.podam.test.dto.pdm6.Parent in project podam by devopsfolks.
the class PodamFactoryBasicTypesTest method podamShouldSupportCircularDependencies.
@Test
@Title("Podam should fill in POJOs which have a circular dependency")
public void podamShouldSupportCircularDependencies() throws Exception {
PodamFactory podamFactory = podamFactorySteps.givenAStandardPodamFactory();
Parent parent = podamInvocationSteps.whenIInvokeTheFactoryForClass(Parent.class, podamFactory);
podamValidationSteps.thePojoMustBeOfTheType(parent, Parent.class);
Child child = parent.getChild();
podamValidationSteps.thePojoMustBeOfTheType(child, Child.class);
}
Aggregations