Package br.com.six2six.fixturefactory.model

Examples of br.com.six2six.fixturefactory.model.Immutable$ImmutableInner


    FixtureFactoryLoader.loadTemplates("br.com.six2six.template");
  }
 
  @Test
  public void shouldCreateImmutableObjectUsingCorrectPartialConstructor() {
    Immutable result = Fixture.from(Immutable.class).gimme("twoParameterConstructor");
   
    assertNotNull(result.getPropertyA());
    assertNotNull(result.getPropertyB());
    assertEquals("default", result.getPropertyC());
    assertNotNull(result.getImmutableInner().getPropertyD());
    assertNull(result.getDate());
    assertNull(result.getAddress());
  }
View Full Code Here


    assertNull(result.getAddress());
  }

  @Test
  public void shouldCreateImmutableObjectUsingAnotherPartialConstructor() {
    Immutable result = Fixture.from(Immutable.class).gimme("threeParameterConstructor");
   
    assertEquals("default", result.getPropertyA());
    assertNotNull(result.getPropertyB());
    assertNotNull(result.getPropertyC());
    assertNotNull(result.getImmutableInner().getPropertyD());
    assertNull(result.getDate());
    assertNotNull(result.getAddress());
  }
View Full Code Here

    assertNotNull(result.getAddress());
  }
 
  @Test
  public void shouldCreateImmutableObjectUsingFullConstructor() {
    Immutable result = Fixture.from(Immutable.class).gimme("fullConstructor");
   
    assertNotNull(result.getPropertyA());
    assertNotNull(result.getPropertyB());
    assertEquals(result.getPropertyA() + " based", result.getPropertyC());
    assertNotNull(result.getDate());
    assertNotNull(result.getAddress());
  }
View Full Code Here

TOP

Related Classes of br.com.six2six.fixturefactory.model.Immutable$ImmutableInner

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.