public void restoreOriginal ( ) { if ( original == null ) { throw new IllegalStateException ( "Original EbeanServer instance is null" ) ; } if ( original . getName ( ) == null ) { throw new IllegalStateException ( "Original EbeanServer name is null" ) ; } // restore the original EbeanServer back Ebean . mock ( original . getName ( ) , original , true ) ; }
Restore the original EbeanServer implementation as the default EbeanServer .