Code example for Date

Methods: getTime

0
        assertNotEquals( a , b );
    } 
     
    @Test 
    public void testDateCons(){ 
        java.util.Date d = new java.util.Date();
        ObjectId a = new ObjectId( d );
        assertEquals( d.getTime() / 1000 , a.getTime() / 1000 );
    } 
 
    @Test 
    public void testStringOnServer(){ 
        ObjectId oid = new ObjectId();
        DBObject res = getDatabase().command( new BasicDBObject( "driverOIDTest" , oid ) );
        assertEquals( oid.toString() , res.get( "str" ).toString() );
    } 
 
    void _testFlip( int x , int Y ){
        int y = ObjectId._flip( x );
        int z = ObjectId._flip( y );
Experience pair programming with AI  Get Codota for Java