nrs.util.test
Class PostfixCalculatorTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bynrs.util.test.PostfixCalculatorTest
All Implemented Interfaces:
junit.framework.Test

public class PostfixCalculatorTest
extends junit.framework.TestCase

JUnit tests for PostfixCalculator

Author:
Nick Sydenham <nsydenham@yahoo.co.uk>

Constructor Summary
PostfixCalculatorTest(java.lang.String testName)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testAdd()
           
 void testAnd()
           
 void testDivide()
           
 void testLeftShift()
           
 void testLongCalc()
           
 void testMultiply()
           
 void testOr()
           
 void testRemainder()
           
 void testRightShift()
           
 void testRightShiftWithZeroFill()
           
 void testSubtract()
           
 
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

PostfixCalculatorTest

public PostfixCalculatorTest(java.lang.String testName)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)

testAdd

public void testAdd()

testSubtract

public void testSubtract()

testMultiply

public void testMultiply()

testDivide

public void testDivide()

testRemainder

public void testRemainder()

testAnd

public void testAnd()

testOr

public void testOr()

testLongCalc

public void testLongCalc()

testRightShift

public void testRightShift()

testLeftShift

public void testLeftShift()

testRightShiftWithZeroFill

public void testRightShiftWithZeroFill()


Copyright © 2004-2005 Nick Sydenham <nsydenham@yahoo.co.uk>