Code example for RC5ParameterSpec

Methods: getWordSize

0
        RC5ParameterSpec ps = new RC5ParameterSpec(version, rounds, wordSize);
        assertTrue("The returned version value should be equal to the "
                + "value specified in the constructor.", 
                ps.getVersion() == version);
    } 
 
    /** 
     * getRounds() method testing. Tests that returned value is 
     * equal to the value specified in the constructor. 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getRounds", 
        args = {} 
    ) 
    public void testGetRounds() { 
        int version = 1;
        int rounds = 5;
        int wordSize = 16;