Examples of Precision


Examples of com.pholser.junit.quickcheck.generator.Precision

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        InRange range = mock(InRange.class);
        when(range.min()).thenReturn(min.toString());
        when(range.max()).thenReturn((String) defaultValueOf(InRange.class, "max"));
        Precision precision = mock(Precision.class);
        when(precision.scale()).thenReturn(6);
        return ImmutableMap.<Class<? extends Annotation>, Annotation> builder()
            .put(InRange.class, range)
            .put(Precision.class, precision)
            .build();
    }
View Full Code Here

Examples of com.pholser.junit.quickcheck.generator.Precision

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        InRange range = mock(InRange.class);
        when(range.min()).thenReturn(min.toString());
        when(range.max()).thenReturn((String) defaultValueOf(InRange.class, "max"));
        Precision precision = mock(Precision.class);
        when(precision.scale()).thenReturn(8);
        return ImmutableMap.<Class<? extends Annotation>, Annotation> builder()
            .put(InRange.class, range)
            .put(Precision.class, precision)
            .build();
    }
View Full Code Here

Examples of com.pholser.junit.quickcheck.generator.Precision

    @Override protected List<?> randomValues() {
        return asList(new BigDecimal("-9.99999"), new BigDecimal("-99.99864"), new BigDecimal("-999.99232"));
    }

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        Precision precision = mock(Precision.class);
        when(precision.scale()).thenReturn(5);
        return Collections.<Class<? extends Annotation>, Annotation> singletonMap(Precision.class, precision);
    }
View Full Code Here

Examples of com.pholser.junit.quickcheck.generator.Precision

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        InRange range = mock(InRange.class);
        when(range.min()).thenReturn(min.toString());
        when(range.max()).thenReturn(max.toString());
        Precision precision = mock(Precision.class);
        when(precision.scale()).thenReturn(2);
        return ImmutableMap.<Class<? extends Annotation>, Annotation> builder()
            .put(InRange.class, range)
            .put(Precision.class, precision)
            .build();
    }
View Full Code Here

Examples of com.pholser.junit.quickcheck.generator.Precision

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        InRange range = mock(InRange.class);
        when(range.min()).thenReturn(min.toString());
        when(range.max()).thenReturn(max.toString());
        Precision precision = mock(Precision.class);
        when(precision.scale()).thenReturn(6);
        return ImmutableMap.<Class<? extends Annotation>, Annotation> builder()
            .put(InRange.class, range)
            .put(Precision.class, precision)
            .build();
    }
View Full Code Here

Examples of com.pholser.junit.quickcheck.generator.Precision

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        InRange range = mock(InRange.class);
        when(range.min()).thenReturn((String) defaultValueOf(InRange.class, "min"));
        when(range.max()).thenReturn(max.toString());
        Precision precision = mock(Precision.class);
        when(precision.scale()).thenReturn(8);
        return ImmutableMap.<Class<? extends Annotation>, Annotation> builder()
            .put(InRange.class, range)
            .put(Precision.class, precision)
            .build();
    }
View Full Code Here

Examples of com.pholser.junit.quickcheck.generator.Precision

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        InRange range = mock(InRange.class);
        when(range.min()).thenReturn((String) defaultValueOf(InRange.class, "min"));
        when(range.max()).thenReturn(max.toString());
        Precision precision = mock(Precision.class);
        when(precision.scale()).thenReturn(3);
        return ImmutableMap.<Class<? extends Annotation>, Annotation> builder()
            .put(InRange.class, range)
            .put(Precision.class, precision)
            .build();
    }
View Full Code Here

Examples of org.opengis.geometry.Precision

    container.registerComponentImplementation(PrimitiveFactoryImpl.class);
    container.registerComponentImplementation(Geo2DFactory.class);
   
    // Teach Container about other dependacies needed
    container.registerComponentInstance( crs );
    Precision pr = new PrecisionModel();
    container.registerComponentInstance( pr );
   
    return container;   
  }
View Full Code Here

Examples of org.opengis.geometry.Precision

    container.registerComponentImplementation(PrimitiveFactoryImpl.class);
    container.registerComponentImplementation(Geo2DFactory.class);
   
    // Teach Container about other dependacies needed
    container.registerComponentInstance( crs );
    Precision pr = new PrecisionModel();
    container.registerComponentInstance( pr );
   
    return container;   
  }
View Full Code Here

Examples of org.opengis.geometry.Precision

    container.registerComponentImplementation(PrimitiveFactoryImpl.class);
    container.registerComponentImplementation(Geo2DFactory.class);
   
    // Teach Container about other dependacies needed
    container.registerComponentInstance( crs );
    Precision pr = new PrecisionModel();
    container.registerComponentInstance( pr );
   
    return container;   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.