Package br.com.six2six.fixturefactory.function.impl

Examples of br.com.six2six.fixturefactory.function.impl.SequenceFunction


    }
  }
 
  @Test
  public void floatSequence() {
    SequenceFunction function = new SequenceFunction(new NumberSequence(1.2f, 1));
   
    for (int i=1; i<=3; i++) {
      assertEquals("floats should be equal", function.generateValue(), (float) i+(.2F));
    }
  }
View Full Code Here


    }
  }
 
  @Test
  public void doubleSequence() {
    SequenceFunction function = new SequenceFunction(new NumberSequence(1.23d, 2));
   
    for (int i=1; i<=5; i=i+2) {
      assertEquals("doubles should be equal", function.generateValue(), (double) i+(.23d));
    }
  }
View Full Code Here

TOP

Related Classes of br.com.six2six.fixturefactory.function.impl.SequenceFunction

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.