From: Artur Signell Date: Thu, 17 Jan 2013 15:34:29 +0000 (+0200) Subject: Removed unnecessary code which is not JUnit 4.5 compatible X-Git-Tag: 7.0.1~100 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac00c704f168c99bd7f8c2897f14f9e80f2e95b3;p=vaadin-framework.git Removed unnecessary code which is not JUnit 4.5 compatible Change-Id: I1544844a21448932302418cc1c02f59db029ec81 --- diff --git a/server/tests/src/com/vaadin/tests/data/validator/TestNullValidator.java b/server/tests/src/com/vaadin/tests/data/validator/TestNullValidator.java index 1c838db3ec..0a0634ec8f 100644 --- a/server/tests/src/com/vaadin/tests/data/validator/TestNullValidator.java +++ b/server/tests/src/com/vaadin/tests/data/validator/TestNullValidator.java @@ -2,9 +2,6 @@ package com.vaadin.tests.data.validator; import junit.framework.TestCase; -import org.junit.Rule; -import org.junit.rules.ExpectedException; - import com.vaadin.data.Validator; import com.vaadin.data.validator.NullValidator; @@ -13,9 +10,6 @@ public class TestNullValidator extends TestCase { NullValidator notNull = new NullValidator("Null not accepted", false); NullValidator onlyNull = new NullValidator("Only null accepted", true); - @Rule - public ExpectedException exception = ExpectedException.none(); - public void testNullValue() { try { notNull.validate(null);