Example usage for junit.framework TestCase subclass-usage

List of usage examples for junit.framework TestCase subclass-usage

Introduction

In this page you can find the example usage for junit.framework TestCase subclass-usage.

Usage

From source file org.acoustid.util.FingerprintDecompressorTest.java

public class FingerprintDecompressorTest extends TestCase {

    public void testOneItemOneBit() throws IOException, IncompatibleFingerprintVersion {
        int[] expected = { 1 };
        byte[] data = { 0, 0, 0, 1, 1 };
        assertEquals(ArrayUtils.toString(expected), ArrayUtils.toString(FingerprintDecompressor.decompress(data)));

From source file com.tacitknowledge.util.migration.PatchRollbackPredicateTest.java

/**
 * this test cases test the PatchRollbackPredicate
 * 
 * @author Artie Pesh-Imam (apeshimam@tacitknowledge.com)
 */
public class PatchRollbackPredicateTest extends TestCase {

From source file org.iwethey.forums.domain.test.BoardTest.java

/** 
 * Tests the Board class.
 * <p>
 * $Id: BoardTest.java 55 2004-12-07 21:53:42Z anderson $
 * <p>
 * @author Scott Anderson (<a href="mailto:scott@iwethey.org">scott@iwethey.org</a>)

From source file com.google.publicalerts.cap.validator.CapValidatorServletTest.java

/**
 * Tests for {@link CapValidatorServlet}.
 *
 * @author shakusa@google.com (Steve Hakusa)
 */
public class CapValidatorServletTest extends TestCase {

From source file gov.nih.nci.cabig.caaers.web.fields.AbstractInputFieldTest.java

/**
 * @author Ion C. Olaru
 * @author Biju Joseph
 * 
 */
public class AbstractInputFieldTest extends TestCase {

From source file org.drools.util.BinaryHeapPriorityQueueTest.java

public class BinaryHeapPriorityQueueTest extends TestCase {
    public void testOptimised() {
        final Random random = new Random();
        final List items = new LinkedList();

        final Queue queue = new BinaryHeapFifoQueue(NaturalComparator.INSTANCE, 100000);

From source file org.sculptor.maven.plugin.ScanningOutputStreamTest.java

public class ScanningOutputStreamTest extends TestCase {

    public void testErrorCount() {
        @SuppressWarnings("resource")
        ScanningOutputStream outputStream = new ScanningOutputStream(new PrintStream(new NullOutputStream()),
                false);

From source file ar.com.zauber.commons.web.proxy.URLRequestMapperEditorTest.java

/**
 * Test for {@link URLRequestMapper}.
 * 
 * 
 * @author Juan F. Codagnone
 * @since Aug 29, 2008

From source file com.google.reducisaurus.JsCompressorTest.java

public class JsCompressorTest extends TestCase {

    private String readFileToString(String filename) throws Exception {
        File file = new File(filename);
        return FileUtils.readFileToString(file, "UTF-8");
    }

From source file com.almende.eve.test.TestWake.java

/**
 * The Class TestWake.
 */
public class TestWake extends TestCase {
    final Ret called = new Ret();