You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VerifyAssertionsEnabled.java 695B

12345678910111213141516171819202122232425262728
  1. package com.vaadin.tests;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractTestUIWithLog;
  4. public class VerifyAssertionsEnabled extends AbstractTestUIWithLog {
  5. @Override
  6. protected void setup(VaadinRequest request) {
  7. try {
  8. assert false;
  9. log("Assertions are not enabled");
  10. } catch (AssertionError e) {
  11. log("Assertions are enabled");
  12. }
  13. }
  14. @Override
  15. protected String getTestDescription() {
  16. return "Tests whether the testing server is run with assertions enabled.";
  17. }
  18. @Override
  19. protected Integer getTicketNumber() {
  20. return Integer.valueOf(9450);
  21. }
  22. }