Java 类com.google.common.util.concurrent.FuturesGetCheckedInputs.ExceptionWithWrongTypesConstructor 实例源码

项目:guava-mock    文件:FuturesGetCheckedTest.java   
@SuppressWarnings("FuturesGetCheckedIllegalExceptionType")
public void testGetCheckedUntimed_exceptionClassPublicConstructorWrongType()
    throws ExceptionWithWrongTypesConstructor {
  try {
    getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithWrongTypesConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:googles-monorepo-demo    文件:FuturesGetCheckedTest.java   
@SuppressWarnings("FuturesGetCheckedIllegalExceptionType")
public void testGetCheckedUntimed_exceptionClassPublicConstructorWrongType()
    throws ExceptionWithWrongTypesConstructor {
  try {
    getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithWrongTypesConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
@SuppressWarnings("FuturesGetCheckedIllegalExceptionType")
public void testGetCheckedUntimed_exceptionClassPublicConstructorWrongType()
    throws ExceptionWithWrongTypesConstructor {
  try {
    getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithWrongTypesConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
@SuppressWarnings("FuturesGetCheckedIllegalExceptionType")
public void testGetCheckedUntimed_exceptionClassPublicConstructorWrongType()
    throws ExceptionWithWrongTypesConstructor {
  try {
    getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithWrongTypesConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}