dist/test/utils/TestClass.js
/**
     * Creates a randomized instance of the class
     */
Creates a randomized instance of the class
Creates a randomized instance of the class
static createRandomObject() {
        let o = new TestClass();
        o.value4 = new Date();
        o.value1 = o.value4.toDateString() + "_" + TestClass.counter.toString();
        o.value2 = o.value4.getMilliseconds() + TestClass.counter;
        let rnd;
        o.value3 = new Array(5);
        for (let i = 0; i < 5; i++) {
            rnd = Math.random();
            if (rnd > 0.5) {
                o.value3[i] = true;
            }
            else {
                o.value3[i] = false;
            }
        }
        TestClass.counter++;
        return o;
    }
static createRandomObject ( ) { let o = new TestClass ( ) ; o . value4 = new Date ( ) ; o . value1 = o . value4 . toDateString ( ) + "_" + TestClass . counter . toString ( ) ; o . value2 = o . value4 . getMilliseconds ( ) + TestClass . counter ; let rnd ; o . value3 = new Array ( 5 ) ; for ( let i = 0 ; i < 5 ; i ++ ) { rnd = Math . random ( ) ; if ( rnd > 0.5 ) { o . value3 [ i ] = true ; } else { o . value3 [ i ] = false ; } } TestClass . counter ++ ; return o ; }
Creates a randomized instance of the class
Creates a randomized instance of the class