public static synchronized void mockStatic ( Class < ? > type , Class < ? > ... types ) { DefaultMockCreator . mock ( type , true , false , null , null , ( Method [ ] ) null ) ; if ( types != null && types . length > 0 ) { for ( Class < ? > aClass : types ) { DefaultMockCreator . mock ( aClass , true , false , null , null , ( Method [ ] ) null ) ; } } }
Enable static mocking for all methods of a class .