cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/test/java/org/cloudbus/cloudsim/resources/HarddriveStorageTest.java
private void testSetAvgSeekTime(ContinuousDistribution gen) {
        final HarddriveStorage instance = createHardDrive();
        final double seekTime = 1;
        assertTrue(setAvgSeekTime(instance, seekTime, gen));
        assertEquals(seekTime, instance.getAvgSeekTime(), 0);

        assertFalse(setAvgSeekTime(instance, 0, gen));
        assertEquals(seekTime, instance.getAvgSeekTime(), 0);

        assertFalse(setAvgSeekTime(instance, -1, gen));
        assertEquals(seekTime, instance.getAvgSeekTime(), 0);
    }
/**
     * Private method called by the overloaded versions of the
     * setAvgSeekTime method.
     * @param gen A random number generator. The parameter can be
     * null in order to use the simpler version of the setAvgSeekTime.
     */
Private method called by the overloaded versions of the
setAvgSeekTime method.
@param gen A random number generator. The parameter can be
null in order to use the simpler version of the setAvgSeekTime.
Private method called by the overloaded versions of the setAvgSeekTime method . @param gen A random number generator . The parameter can be null in order to use the simpler version of the setAvgSeekTime .
private void testSetAvgSeekTime(ContinuousDistribution gen) {
        final HarddriveStorage instance = createHardDrive();
        final double seekTime = 1;
        assertTrue(setAvgSeekTime(instance, seekTime, gen));
        assertEquals(seekTime, instance.getAvgSeekTime(), 0);
        assertFalse(setAvgSeekTime(instance, 0, gen));
        assertEquals(seekTime, instance.getAvgSeekTime(), 0);
        assertFalse(setAvgSeekTime(instance, -1, gen));
        assertEquals(seekTime, instance.getAvgSeekTime(), 0);
    }
private void testSetAvgSeekTime ( ContinuousDistribution gen ) { final HarddriveStorage instance = createHardDrive ( ) ; final double seekTime = 1 ; assertTrue ( setAvgSeekTime ( instance , seekTime , gen ) ) ; assertEquals ( seekTime , instance . getAvgSeekTime ( ) , 0 ) ; assertFalse ( setAvgSeekTime ( instance , 0 , gen ) ) ; assertEquals ( seekTime , instance . getAvgSeekTime ( ) , 0 ) ; assertFalse ( setAvgSeekTime ( instance , - 1 , gen ) ) ; assertEquals ( seekTime , instance . getAvgSeekTime ( ) , 0 ) ; }
Private method called by the overloaded versions of the
 setAvgSeekTime method.
Private method called by the overloaded versions of the setAvgSeekTime method .