Package org.jmock.example.sniper
Class AuctionSniperTests
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.jmock.integration.junit3.VerifyingTestCase
-
- org.jmock.integration.junit3.MockObjectTestCase
-
- org.jmock.example.sniper.AuctionSniperTests
-
- All Implemented Interfaces:
junit.framework.Test
public class AuctionSniperTests extends org.jmock.integration.junit3.MockObjectTestCase
-
-
Constructor Summary
Constructors Constructor Description AuctionSniperTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestCatchesExceptionsAndReportsThemToErrorListener()voidtestTriesToBeatTheLatestHighestBid()voidtestWillAnnounceItHasFinishedIfPriceGoesAboveMaximum()voidtestWillLimitBidToMaximum()voidtestWillNotBidPriceGreaterThanMaximum()voidtestWillNotBidWhenToldAboutBidsOnOtherItems()-
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
-
-
-
-
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
-
-