Package org.timepedia.chronoscope.client.util.junit

Examples of org.timepedia.chronoscope.client.util.junit.TestObjectFactory


public class FocusTest extends TestCase {
  private TestObjectFactory focusFactory;

  public FocusTest() {

    this.focusFactory = new TestObjectFactory() {
      final int instanceCount = 101;

      public Object getInstance(int index) {
        boolean returnZeroArgConstructor = (index == instanceCount - 1);
        if (returnZeroArgConstructor) {
View Full Code Here


public class ZoomIntervalTest extends TestCase {
  private TestObjectFactory zoomIntervalFactory;
 
  public ZoomIntervalTest() {

    this.zoomIntervalFactory = new TestObjectFactory() {
      final String[] names = new String[] {"1d","5d","1m","6m","1y","max"};
      final double[] intervals = new double[] {1, 5, 30, 30*6, 365, Double.MAX_VALUE};
      final int instanceCount = names.length;

      public Object getInstance(int index) {
View Full Code Here

public class IntervalTest extends TestCase {
  private TestObjectFactory intervalFactory;
 
  public IntervalTest() {
    // Create a TestObjectFactory instance that generates Integer objects.
    this.intervalFactory = new TestObjectFactory() {
      public Object getInstance(int index) {
        return new Interval(index + 0.5, index + 10.5);
      }
      public int instanceCount() {
        return 999;
View Full Code Here

TOP

Related Classes of org.timepedia.chronoscope.client.util.junit.TestObjectFactory

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.