libAndroidAssertions/src/main/java/com/heershingenmosiken/assertions/android/AndroidAssertions.java
/**
     * Ensures that method called on UI thread, else raises exception provided by ThrowableFactory.
     */
Ensures that method called on UI thread, else raises exception provided by ThrowableFactory.
Ensures that method called on UI thread else raises exception provided by ThrowableFactory .
public static void assertNotUIThread(ThrowableFactory throwableFactory) {
        if (Looper.getMainLooper() == Looper.myLooper()) {
            internalRaiseAssertion(throwableFactory, "AssertNotUIThread", false);
        }
    }
public static void assertNotUIThread ( ThrowableFactory throwableFactory ) { if ( Looper . getMainLooper ( ) == Looper . myLooper ( ) ) { internalRaiseAssertion ( throwableFactory , "AssertNotUIThread" , false ) ; } }
Ensures that method called on UI thread, else raises exception provided by ThrowableFactory.
Ensures that method called on UI thread else raises exception provided by ThrowableFactory .