diff --git a/src/test/java/com/cloudbees/plugins/credentials/CredentialsMatchersTest.java b/src/test/java/com/cloudbees/plugins/credentials/CredentialsMatchersTest.java index c9011acf..ad60a184 100644 --- a/src/test/java/com/cloudbees/plugins/credentials/CredentialsMatchersTest.java +++ b/src/test/java/com/cloudbees/plugins/credentials/CredentialsMatchersTest.java @@ -5,8 +5,8 @@ import com.cloudbees.plugins.credentials.matchers.CQLSyntaxException; import org.junit.Test; +import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; -import static org.junit.Assert.assertThat; public class CredentialsMatchersTest { @@ -73,11 +73,6 @@ public void parseInvalidMultiline() throws Exception { CredentialsMatchers.parse("id == \"id-1\"\n|| \"id-2\"\n&& instanceof Boolean"); } - @Test(expected = CQLSyntaxException.class) - public void parseInvalid3() throws Exception { - CredentialsMatchers.parse("id == 4foo"); - } - @Test public void parseEmpty() throws Exception { assertThat(CredentialsMatchers.parse(""), is(CredentialsMatchers.always()));