Package br.com.six2six.fixturefactory.model

Examples of br.com.six2six.fixturefactory.model.Owner$Inner


    FixtureFactoryLoader.loadTemplates("br.com.six2six.template");
  }
 
  @Test
  public void shouldCreateObjectWithInnerClass() {
    Owner owner = Fixture.from(Owner.class).gimme("valid");
   
    assertNotNull("owner should not be null", owner);
    assertNotNull("owner.inner should not be null", owner.getInner());
   
    assertSame("owner.inner.owner should be same of owner", owner.getInner().getOwner(), owner);
    assertEquals("222", owner.getInner().getId());
  }
View Full Code Here


    assertEquals("222", owner.getInner().getId());
  }
 
  @Test
    public void shouldCreateObjectWithInnerClassChainedProperty() {
        Owner owner = Fixture.from(Owner.class).gimme("chained");
       
        assertNotNull("owner should not be null", owner);
        assertNotNull("owner.inner should not be null", owner.getInner());
       
        assertSame("owner.inner.owner should be same of owner", owner.getInner().getOwner(), owner);
        assertEquals("333", owner.getInner().getId());
    }
View Full Code Here

TOP

Related Classes of br.com.six2six.fixturefactory.model.Owner$Inner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.