java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
cz.muni.fi.pb162.ishop.ShopTest
public class ShopTest
Testovaci trida pro balik cz.muni.fi.pb162.ishop.
Constructor Summary | |
---|---|
ShopTest()
|
Method Summary | |
---|---|
protected void |
failExpectedException(String method,
String expectedException)
|
protected void |
failUnexpectedException(String method,
Throwable unexpectedException)
|
protected void |
setUp()
Sets up the test fixture. |
protected void |
tearDown()
Tears down the test fixture. |
void |
testBasicCustomerExceptions()
|
void |
testBasicOrderExceptions()
|
void |
testBasicProductExceptions()
|
void |
testBasicShopExceptions()
|
void |
testCustomerEquals()
|
void |
testGetTotalPrice()
|
void |
testPrintOrder()
|
void |
testProcessOrder()
|
void |
testProductEquals()
|
void |
testProductsSupply()
|
void |
testRegisterCustomer()
|
void |
testStock()
|
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 |
---|
public ShopTest()
Method Detail |
---|
protected void failExpectedException(String method, String expectedException)
protected void failUnexpectedException(String method, Throwable unexpectedException)
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public void testBasicCustomerExceptions()
public void testBasicOrderExceptions()
public void testBasicProductExceptions()
public void testBasicShopExceptions()
public void testCustomerEquals()
public void testGetTotalPrice()
public void testPrintOrder() throws IOException
IOException
public void testProcessOrder() throws IOException
IOException
public void testProductEquals()
public void testProductsSupply()
public void testRegisterCustomer()
public void testStock()