Skip to content

Commit

Permalink
Replace deprecated assertThat with hamcrest assertThat
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Dec 16, 2023
1 parent 5f35ccc commit dc3a749
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.junit.runners.model.Statement;
import org.jvnet.hudson.test.Issue;

import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;

/**
* This is not a regular unit test: it validates the testing framework by making sure we can rely on it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@
import org.jvnet.hudson.test.JenkinsRule.WebClient;
import org.jvnet.hudson.test.MockAuthorizationStrategy;

import static org.htmlunit.html.HtmlFormUtil.submit;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.htmlunit.html.HtmlFormUtil.submit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

/**
* @author Kohsuke Kawaguchi
Expand Down

0 comments on commit dc3a749

Please sign in to comment.