Class AuctionSniperTests

  • All Implemented Interfaces:
    junit.framework.Test

    public class AuctionSniperTests
    extends org.jmock.integration.junit3.MockObjectTestCase
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void testCatchesExceptionsAndReportsThemToErrorListener()  
      void testTriesToBeatTheLatestHighestBid()  
      void testWillAnnounceItHasFinishedIfPriceGoesAboveMaximum()  
      void testWillLimitBidToMaximum()  
      void testWillNotBidPriceGreaterThanMaximum()  
      void testWillNotBidWhenToldAboutBidsOnOtherItems()  
      • Methods inherited from class org.jmock.integration.junit3.MockObjectTestCase

        checking, context, mock, mock, sequence, setDefaultResultForType, setImposteriser, setNamingScheme, states
      • Methods inherited from class org.jmock.integration.junit3.VerifyingTestCase

        addVerifier, runBare, verify
      • Methods inherited from class junit.framework.TestCase

        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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, tearDown, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AuctionSniperTests

        public AuctionSniperTests()
    • Method Detail

      • testTriesToBeatTheLatestHighestBid

        public void testTriesToBeatTheLatestHighestBid()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testWillNotBidPriceGreaterThanMaximum

        public void testWillNotBidPriceGreaterThanMaximum()
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testWillLimitBidToMaximum

        public void testWillLimitBidToMaximum()
                                       throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • testWillNotBidWhenToldAboutBidsOnOtherItems

        public void testWillNotBidWhenToldAboutBidsOnOtherItems()
                                                         throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • testWillAnnounceItHasFinishedIfPriceGoesAboveMaximum

        public void testWillAnnounceItHasFinishedIfPriceGoesAboveMaximum()
      • testCatchesExceptionsAndReportsThemToErrorListener

        public void testCatchesExceptionsAndReportsThemToErrorListener()
                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception