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

项目:guava-mock    文件:FuturesGetCheckedTest.java   
public void testGetCheckedUntimed_badExceptionConstructor_failsEvenForSuccessfulInput()
    throws Exception {
  try {
    getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava-mock    文件:FuturesGetCheckedTest.java   
public void testGetCheckedUntimed_badExceptionConstructor_wrapsOriginalChecked()
    throws Exception {
  try {
    getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithBadConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava-mock    文件:FuturesGetCheckedTest.java   
public void testGetCheckedTimed_badExceptionConstructor_failsEvenForSuccessfulInput()
    throws Exception {
  try {
    getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class, 1, TimeUnit.SECONDS);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava-mock    文件:FuturesGetCheckedTest.java   
public void testGetCheckedTimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception {
  try {
    getChecked(
        FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithBadConstructor.class, 1, TimeUnit.SECONDS);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:googles-monorepo-demo    文件:FuturesGetCheckedTest.java   
public void testGetCheckedUntimed_badExceptionConstructor_failsEvenForSuccessfulInput()
    throws Exception {
  try {
    getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:googles-monorepo-demo    文件:FuturesGetCheckedTest.java   
public void testGetCheckedUntimed_badExceptionConstructor_wrapsOriginalChecked()
    throws Exception {
  try {
    getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithBadConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:googles-monorepo-demo    文件:FuturesGetCheckedTest.java   
public void testGetCheckedTimed_badExceptionConstructor_failsEvenForSuccessfulInput()
    throws Exception {
  try {
    getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class, 1, TimeUnit.SECONDS);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:googles-monorepo-demo    文件:FuturesGetCheckedTest.java   
public void testGetCheckedTimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception {
  try {
    getChecked(
        FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithBadConstructor.class, 1, TimeUnit.SECONDS);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
public void testGetCheckedUntimed_badExceptionConstructor_failsEvenForSuccessfulInput()
    throws Exception {
  try {
    getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
public void testGetCheckedUntimed_badExceptionConstructor_wrapsOriginalChecked()
    throws Exception {
  try {
    getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithBadConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
public void testGetCheckedTimed_badExceptionConstructor_failsEvenForSuccessfulInput()
    throws Exception {
  try {
    getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class, 1, TimeUnit.SECONDS);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
public void testGetCheckedTimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception {
  try {
    getChecked(
        FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithBadConstructor.class, 1, TimeUnit.SECONDS);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
public void testGetCheckedUntimed_badExceptionConstructor_failsEvenForSuccessfulInput()
    throws Exception {
  try {
    getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
public void testGetCheckedUntimed_badExceptionConstructor_wrapsOriginalChecked()
    throws Exception {
  try {
    getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithBadConstructor.class);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
public void testGetCheckedTimed_badExceptionConstructor_failsEvenForSuccessfulInput()
    throws Exception {
  try {
    getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class, 1, TimeUnit.SECONDS);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}
项目:guava    文件:FuturesGetCheckedTest.java   
public void testGetCheckedTimed_badExceptionConstructor_wrapsOriginalChecked() throws Exception {
  try {
    getChecked(
        FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithBadConstructor.class, 1, TimeUnit.SECONDS);
    fail();
  } catch (IllegalArgumentException expected) {
  }
}