xbn.util
Class XBNTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--xbn.util.XBNTestCase
All Implemented Interfaces:
Test

public class XBNTestCase
extends TestCase

A JUnit TestCase with some XBN-specificizationizisims.

Source code:  XBNTestCase.java

JACTAF

Just A Call To Another Function, meaning that there should only be minimal tests for this function (the one that calls the other one).


Constructor Summary
XBNTestCase(String s_name)
          Create an XBNTestCase.
 
Method Summary
static int getBadCount()
           
static int getGoodCount()
           
static void printSummary()
           
protected  void setUp()
           
protected static void sop(String s_message)
          Print a line of output to standard out.
protected static void sopl(String s_message)
          Print a line of output to standard out.
protected  void tearDown()
           
static void xassertEquals(boolean b_expected, boolean b_actual)
           
static void xassertEquals(byte y_expected, byte y_actual)
           
static void xassertEquals(char c_expected, char c_actual)
           
static void xassertEquals(double d_expected, double d_actual, double d_delta)
           
static void xassertEquals(float f_expected, float f_actual, float f_delta)
           
static void xassertEquals(int i_expected, int i_actual)
           
static void xassertEquals(long l_expected, long l_actual)
           
static void xassertEquals(Object o_expected, Object o_actual)
           
static void xassertEquals(short r_expected, short r_actual)
           
static void xassertEquals(String s_message, boolean b_expected, boolean b_actual)
           
static void xassertEquals(String s_message, byte y_expected, byte y_actual)
           
static void xassertEquals(String s_message, char c_expected, char c_actual)
           
static void xassertEquals(String s_message, double d_expected, double d_actual, double d_delta)
           
static void xassertEquals(String s_message, float f_expected, float f_actual, float f_delta)
           
static void xassertEquals(String s_message, int i_expected, int i_actual)
           
static void xassertEquals(String s_message, long l_expected, long l_actual)
           
static void xassertEquals(String s_message, Object o_expected, Object o_actual)
           
static void xassertEquals(String s_message, short r_expected, short r_actual)
           
static void xassertEquals(String s_expected, String s_actual)
           
static void xassertEquals(String s_message, String s_expected, String s_actual)
           
static void xassertFalse(boolean b_condition)
           
static void xassertFalse(String s_message, boolean b_condition)
           
static void xassertNotNull(Object o_bject)
           
static void xassertNotNull(String s_message, Object o_bject)
           
static void xassertNotSame(Object o_expected, Object o_actual)
           
static void xassertNotSame(String s_message, Object o_expected, Object o_actual)
           
static void xassertNull(Object o_bject)
           
static void xassertNull(String s_message, Object o_bject)
           
static void xassertSame(Object o_expected, Object o_actual)
           
static void xassertSame(String s_message, Object o_expected, Object o_actual)
           
static void xassertTrue()
           
static void xassertTrue(boolean b_condition)
           
static void xassertTrue(String s_message, boolean b_condition)
           
static void xfail()
           
static void xfail(String s_message)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XBNTestCase

public XBNTestCase(String s_name)

Create an XBNTestCase.

Method Detail

sopl

protected static final void sopl(String s_message)

Print a line of output to standard out. For the purposes of debugging.

Equal to System.out.println(s_message)

Parameters:
s_message - The message to output.

sop

protected static final void sop(String s_message)

Print a line of output to standard out. For the purposes of debugging.

Equal to System.out.print(s_message)

Parameters:
s_message - The message to output.

xassertTrue

public static void xassertTrue(boolean b_condition)

xassertFalse

public static void xassertFalse(boolean b_condition)

xassertNotNull

public static void xassertNotNull(Object o_bject)

xassertNotSame

public static void xassertNotSame(Object o_expected,
                                  Object o_actual)

xassertNull

public static void xassertNull(Object o_bject)

xassertSame

public static void xassertSame(Object o_expected,
                               Object o_actual)

xassertEquals

public static void xassertEquals(boolean b_expected,
                                 boolean b_actual)

xassertEquals

public static void xassertEquals(byte y_expected,
                                 byte y_actual)

xassertEquals

public static void xassertEquals(char c_expected,
                                 char c_actual)

xassertEquals

public static void xassertEquals(double d_expected,
                                 double d_actual,
                                 double d_delta)

xassertEquals

public static void xassertEquals(float f_expected,
                                 float f_actual,
                                 float f_delta)

xassertEquals

public static void xassertEquals(int i_expected,
                                 int i_actual)

xassertEquals

public static void xassertEquals(long l_expected,
                                 long l_actual)

xassertEquals

public static void xassertEquals(Object o_expected,
                                 Object o_actual)

xassertEquals

public static void xassertEquals(short r_expected,
                                 short r_actual)

xfail

public static void xfail()

xassertTrue

public static void xassertTrue()

xassertEquals

public static void xassertEquals(String s_expected,
                                 String s_actual)

xassertEquals

public static void xassertEquals(String s_message,
                                 boolean b_expected,
                                 boolean b_actual)

xassertEquals

public static void xassertEquals(String s_message,
                                 byte y_expected,
                                 byte y_actual)

xassertEquals

public static void xassertEquals(String s_message,
                                 char c_expected,
                                 char c_actual)

xassertEquals

public static void xassertEquals(String s_message,
                                 double d_expected,
                                 double d_actual,
                                 double d_delta)

xassertEquals

public static void xassertEquals(String s_message,
                                 float f_expected,
                                 float f_actual,
                                 float f_delta)

xassertEquals

public static void xassertEquals(String s_message,
                                 int i_expected,
                                 int i_actual)

xassertEquals

public static void xassertEquals(String s_message,
                                 long l_expected,
                                 long l_actual)

xassertEquals

public static void xassertEquals(String s_message,
                                 Object o_expected,
                                 Object o_actual)

xassertEquals

public static void xassertEquals(String s_message,
                                 short r_expected,
                                 short r_actual)

xassertEquals

public static void xassertEquals(String s_message,
                                 String s_expected,
                                 String s_actual)

xassertFalse

public static void xassertFalse(String s_message,
                                boolean b_condition)

xassertNotNull

public static void xassertNotNull(String s_message,
                                  Object o_bject)

xassertNotSame

public static void xassertNotSame(String s_message,
                                  Object o_expected,
                                  Object o_actual)

xassertNull

public static void xassertNull(String s_message,
                               Object o_bject)

xassertSame

public static void xassertSame(String s_message,
                               Object o_expected,
                               Object o_actual)

xassertTrue

public static void xassertTrue(String s_message,
                               boolean b_condition)

xfail

public static void xfail(String s_message)

getGoodCount

public static final int getGoodCount()

getBadCount

public static final int getBadCount()

printSummary

public static final void printSummary()

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestCase

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class TestCase



Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.

 

http://sourceforge.net/projects/xbnjava

 

SourceForge.net Logo