Package org.robolectric.shadows
Class ShadowCloseGuard
- java.lang.Object
-
- org.robolectric.shadows.ShadowCloseGuard
-
@Implements(value=dalvik.system.CloseGuard.class, isInAndroidSdk=false) public class ShadowCloseGuard extends Object
Shadow forCloseGuard
.CloseGuardRule
can be used to easily verify all CloseGuards have been closed.
-
-
Constructor Summary
Constructors Constructor Description ShadowCloseGuard()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close()
static ArrayList<Throwable>
getErrors()
protected void
open(String closer)
static void
reset()
protected void
warnIfOpen()
-
-
-
Method Detail
-
open
@Implementation protected void open(String closer)
-
close
@Implementation protected void close()
-
warnIfOpen
@Implementation protected void warnIfOpen()
-
reset
@Resetter public static void reset()
-
-