Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Assert#expectThrows #1154

Closed
wants to merge 15 commits into from
Prev Previous commit
Next Next commit
Fix import ordering
rschmitt committed Jun 4, 2015

Verified

This commit was signed with the committer’s verified signature.
mmsqe mmsqe
commit 0cb4a2f5eba3f8d78cd0e3b66b0f0e6ba467c3ff
18 changes: 9 additions & 9 deletions src/test/java/org/junit/tests/assertion/AssertionTest.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
package org.junit.tests.assertion;

import org.junit.Assert;
import org.junit.Assert.ThrowingRunnable;
import org.junit.ComparisonFailure;
import org.junit.Test;
import org.junit.internal.ArrayComparisonFailure;

import java.io.IOException;
import java.math.BigDecimal;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
@@ -23,6 +14,15 @@
import static org.junit.Assert.expectThrows;
import static org.junit.Assert.fail;

import org.junit.Assert;
import org.junit.Assert.ThrowingRunnable;
import org.junit.ComparisonFailure;
import org.junit.Test;
import org.junit.internal.ArrayComparisonFailure;

import java.io.IOException;
import java.math.BigDecimal;

/**
* Tests for {@link org.junit.Assert}
*/