Package br.com.six2six.fixturefactory.model

Examples of br.com.six2six.fixturefactory.model.User


    FixtureFactoryLoader.loadTemplates("br.com.six2six.template");
  }

  @Test
  public void fixtureAnyUser() {
    User user = Fixture.from(User.class).gimme("anyValidUser");
    assertNotNull("User should not be null", user);
  }
View Full Code Here


    assertNotNull("User should not be null", user);
  }

  @Test
  public void fixtureFemaleUser() {
    User user = Fixture.from(User.class).gimme("validFemaleUser");
    assertNotNull("User should not be null", user);
  }
View Full Code Here

        assertEquals("someone@domain.com", result);
    }
   
    @Test
    public void shouldTransformPropertyPlaceholder() {
        User user = new User();
        user.setName("someone");
       
        String result = new PropertyPlaceholderTransformer(user).transform("${name}@domain.com", String.class);
        assertEquals("someone@domain.com", result);
    }
View Full Code Here

        assertEquals("someone@domain.com", result);
    }
   
    @Test
    public void shouldNotTransformWithoutPlaceholder() {
        User user = new User();
        user.setName("someone");
       
        String result = new PropertyPlaceholderTransformer(user).transform("name@domain.com", String.class);
        assertEquals("name@domain.com", result);
    }
View Full Code Here

TOP

Related Classes of br.com.six2six.fixturefactory.model.User

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.