Search in sources :

Example 26 with Parent

use of org.jdom2.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);
}
Also used : Parent(uk.co.jemos.podam.test.dto.pdm6.Parent) PodamFactory(uk.co.jemos.podam.api.PodamFactory) Child(uk.co.jemos.podam.test.dto.pdm6.Child) Test(org.junit.Test) Title(net.thucydides.core.annotations.Title)

Aggregations

Element (org.jdom2.Element)24 File (java.io.File)6 XmlFile (jmri.jmrit.XmlFile)6 Document (org.jdom2.Document)6 Attribute (org.jdom2.Attribute)4 ArrayList (java.util.ArrayList)3 IOException (java.io.IOException)2 Logix (jmri.Logix)2 AppConfigBase (apps.AppConfigBase)1 ConfigBundle (apps.ConfigBundle)1 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)1 BorderLayout (java.awt.BorderLayout)1 CardLayout (java.awt.CardLayout)1 Color (java.awt.Color)1 Dimension (java.awt.Dimension)1 ActionEvent (java.awt.event.ActionEvent)1 FileOutputStream (java.io.FileOutputStream)1 HashSet (java.util.HashSet)1 List (java.util.List)1 ServiceLoader (java.util.ServiceLoader)1