123456789101112131415161718192021 |
- package com.vaadin.tests.server;
-
- import static org.junit.Assert.assertTrue;
-
- import org.junit.Test;
-
- public class AssertionsEnabledTest {
-
- @Test
- public void testAssertionsEnabled() {
- boolean assertFailed = false;
- try {
- assert false;
- } catch (AssertionError e) {
- assertFailed = true;
- } finally {
- assertTrue("Unit tests should be run with assertions enabled",
- assertFailed);
- }
- }
- }
|