@ SuppressWarnings ( "unchecked" ) public void assertCurrentActivity ( String message , @ SuppressWarnings ( "rawtypes" ) Class activityClass , boolean isNewInstance ) { if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "assertCurrentActivity(\"" + message + "\", " + activityClass + ", " + isNewInstance + ")" ) ; } asserter . assertCurrentActivity ( message , activityClass , isNewInstance ) ; }
Asserts that the Activity matching the specified class is active with the possibility to verify that the expected Activity is a new instance of the Activity .