FileDocCategorySizeDatePackage
CameraUtilsUncheckedThrowTest.javaAPI DocAndroid 5.1 API1378Thu Mar 12 22:22:30 GMT 2015com.android.mediaframeworktest.unit

CameraUtilsUncheckedThrowTest

public class CameraUtilsUncheckedThrowTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
private voidfakeNeverThrowsCameraAccess()

    
public voidtestUncheckedThrow()

        try {
            UncheckedThrow.throwAnyException(new CameraAccessException(
                    CameraAccessException.CAMERA_DISCONNECTED));
            Assert.fail("unreachable");
            fakeNeverThrowsCameraAccess();
        } catch (CameraAccessException e) {
        }