Code example for FieldPosition

Methods: hashCode, setBeginIndex, setEndIndex

0
        // Test for method int java.text.FieldPosition.getEndIndex() 
        FieldPosition fpos = new FieldPosition(1);
        fpos.setBeginIndex(2);
        fpos.setEndIndex(3);
        assertEquals("getEndIndex should have returned 3", 3, fpos
                .getEndIndex());
    } 
 
    /** 
     * @tests java.text.FieldPosition#getField() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getField", 
        args = {} 
    ) 
    public void test_getField() { 
        // Test for method int java.text.FieldPosition.getField() 
        FieldPosition fpos = new FieldPosition(65);
        assertEquals(