在我的Adapter中,我检查消息是否以"pic“开头,如果是真的,我会尝试加载Glide。如果没有幻灯片,它会显示带有静态图像的ImageView。但当我启用Glide时,它会给出以下错误: 错误:java.lang.NullPointerException: Argument must not be null 它确实调用了正确的值,但是当我在Glide
exception was thrown during the course of a.process() execution, something like
exception.expect(NullPointerException.class考虑到上述约束,是否有任何方法可以以确定上述底层方法中抛出的异常的方式编写测试?