cz.muni.fi.pb162.ishop
Class ShopTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by cz.muni.fi.pb162.ishop.ShopTest
All Implemented Interfaces:
junit.framework.Test

public class ShopTest
extends junit.framework.TestCase

Testovaci trida pro balik cz.muni.fi.pb162.ishop.

Author:
Jan Pomikalek <xpomikal@fi.muni.cz>

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

ShopTest

public ShopTest()
Method Detail

failExpectedException

protected void failExpectedException(String method,
                                     String expectedException)

failUnexpectedException

protected void failUnexpectedException(String method,
                                       Throwable unexpectedException)

setUp

protected void setUp()
Sets up the test fixture. Called before every test case method.

Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Tears down the test fixture. Called after every test case method.

Overrides:
tearDown in class junit.framework.TestCase

testBasicCustomerExceptions

public void testBasicCustomerExceptions()

testBasicOrderExceptions

public void testBasicOrderExceptions()

testBasicProductExceptions

public void testBasicProductExceptions()

testBasicShopExceptions

public void testBasicShopExceptions()

testCustomerEquals

public void testCustomerEquals()

testGetTotalPrice

public void testGetTotalPrice()

testPrintOrder

public void testPrintOrder()
                    throws IOException
Throws:
IOException

testProcessOrder

public void testProcessOrder()
                      throws IOException
Throws:
IOException

testProductEquals

public void testProductEquals()

testProductsSupply

public void testProductsSupply()

testRegisterCustomer

public void testRegisterCustomer()

testStock

public void testStock()