Skip to content

Commit

Permalink
Merge from master branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgruber committed Jun 13, 2011
2 parents 46f8c84 + 59b6817 commit 6c56ef2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/org/junit/contrib/truth/AllTests.java
Expand Up @@ -40,8 +40,9 @@
IntegerTest.class,
StringTest.class,
SubjectTest.class,
ExtensionTest.class,
DelegationTest.class
// Extensions-tests.
DelegationTest.class,
ExtensionTest.class
}) public class AllTests {

}
3 changes: 3 additions & 0 deletions src/test/java/org/junit/contrib/truth/IntegerTest.java
Expand Up @@ -24,13 +24,16 @@
import org.junit.Test;
import org.junit.contrib.truth.Expect;
import org.junit.internal.AssumptionViolatedException;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/**
* Tests for Integer Subjects.
*
* @author David Saff
* @author Christian Gruber (cgruber@israfil.net)
*/
@RunWith(JUnit4.class)
public class IntegerTest {
@Rule public Expect EXPECT = Expect.create();

Expand Down
Expand Up @@ -18,13 +18,16 @@

import static org.junit.contrib.truth.extensiontest.ExtendedVerb.ASSERT;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/**
* A test that's more or less intended to show how one uses an extended verb.
*
* @author David Saff
* @author Christian Gruber (cgruber@israfil.net)
*/
@RunWith(JUnit4.class)
public class ExtensionTest {
@Test public void customTypeCompares() {
ASSERT.that(new MyType(5)).matches(new MyType(2 + 3));
Expand Down

0 comments on commit 6c56ef2

Please sign in to comment.