Skip to content

Commit

Permalink
Stop using deprecated Assert method
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Dec 16, 2023
1 parent c068457 commit 029b00f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import hudson.model.*;
import hudson.model.queue.QueueTaskFuture;
import hudson.security.ACL;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
Expand Down Expand Up @@ -71,7 +71,7 @@ public void run() {
}
});

Assert.assertThat(scheduled, not(nullValue()));
assertThat(scheduled, not(nullValue()));
return scheduled.get(0).get(1, TimeUnit.MINUTES);
}
}

0 comments on commit 029b00f

Please sign in to comment.