Code example for MathContext

Methods: equals, getRoundingMode, hashCode, toString

0
@TestTargetClass(MathContext.class)
public class MathContextTest extends junit.framework.TestCase {
 
    /** 
     * @tests java.math.MathContext#MathContext(...) 
     */ 
    @TestTargets({ 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "MathContext", 
            args = {int.class} 
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "MathContext", 
            args = {int.class, java.math.RoundingMode.class}
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "MathContext", 
            args = {java.lang.String.class}
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "getPrecision", 
            args = {} 
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "getRoundingMode", 
            args = {} 
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "equals", 
            args = {java.lang.Object.class}
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "hashCode",