Package br.com.six2six.fixturefactory.model

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


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

  @Test
  public void fixtureAnyStudent() {
    Student student = Fixture.from(Student.class).gimme("valid");
    assertNotNull("Student should not be null", student);
    assertNotNull("Students id should not be null", student.getId());
    assertTrue("Tests taken should be greather than 0", student.getTestsTaken() > 0);
    assertTrue("Best score should be greather than 0", student.getTestsTaken() > 0);
  }
View Full Code Here


    assertTrue("Best score should be greather than 0", student.getTestsTaken() > 0);
  }
 
  @Test
  public void fixtureFemaleStudent() {
    Student student = Fixture.from(Student.class).gimme("validFemaleStudent");
    assertNotNull("Female Student should not be null", student);
    assertNotNull("Students id should not be null", student.getId());
  }
View Full Code Here

    assertNotNull("Students id should not be null", student.getId());
  }
 
  @Test
  public void fixtureSharedSequence() {
    Student oneStudent = Fixture.from(Student.class).gimme("sharedSequence");
    Student otherStudent = Fixture.from(Student.class).gimme("otherSharedSequence");
    assertTrue(oneStudent.getId() < otherStudent.getId());
  }
View Full Code Here

    assertTrue(oneStudent.getId() < otherStudent.getId());
  }
 
   @Test
  public void fixtureDefaultNumberSequence() {
     Student firstStudent = Fixture.from(Student.class).gimme("defaultNumberSequence");
     Student secoundStudent = Fixture.from(Student.class).gimme("defaultNumberSequence");
     assertTrue(firstStudent.getId() < secoundStudent.getId());
  }
View Full Code Here

     assertTrue(firstStudent.getId() < secoundStudent.getId());
  }
  
   @Test
   public void fixtureMaleStudent() {
     Student student = Fixture.from(Student.class).gimme("validMaleStudent");
     assertNotNull("Male Student should not be null", student);
     assertNotNull("Students id should not be null", student.getId());
   }
View Full Code Here

TOP

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

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.