From 53b15a4c104b7f8853ddef54a73d28aa9c695089 Mon Sep 17 00:00:00 2001 From: Ulf Adams Date: Wed, 25 Feb 2015 15:39:06 +0000 Subject: Remove ChattyAssertsTestCase. Use static imports, move the code down the tree, rewrite most uses of assertPresence. This is a small step towards migrating the tests to JUnit 4. Depending on inheritance for the assert* methods is not recommended, and the (old) Asserts class is deprecated in JUnit 4. Sorry, there was no good way to do this piecemeal. -- MOS_MIGRATED_REVID=87154212 --- .../google/devtools/build/lib/testutil/FoundationTestCase.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java') diff --git a/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java b/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java index 3302d33f7f..d519e421d6 100644 --- a/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/testutil/FoundationTestCase.java @@ -24,6 +24,8 @@ import com.google.devtools.build.lib.vfs.FileSystem; import com.google.devtools.build.lib.vfs.Path; import com.google.devtools.build.lib.vfs.inmemoryfs.InMemoryFileSystem; +import junit.framework.TestCase; + import java.io.File; import java.io.IOException; import java.nio.charset.Charset; @@ -31,10 +33,10 @@ import java.util.List; import java.util.Set; /** - * This is a specialization of {@link ChattyAssertsTestCase} that's useful for - * implementing tests of the "foundation" library. + * This is a specialization of {@link TestCase} that's useful for implementing tests of the + * "foundation" library. */ -public abstract class FoundationTestCase extends ChattyAssertsTestCase { +public abstract class FoundationTestCase extends TestCase { protected Path rootDirectory; -- cgit v1.2.3