edu.uci.ics.inf111.dvdvendor.app
Class DVDTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.uci.ics.inf111.dvdvendor.app.DVDTest
All Implemented Interfaces:
junit.framework.Test

public class DVDTest
extends junit.framework.TestCase

This class contains JUnit test cases for DVD.java.


Field Summary
(package private)  BarCode differentBarCode
           
(package private)  java.lang.String differentCode
           
(package private)  DVD differentDVD
           
(package private)  Utils.genre[] differentGenre
           
(package private)  java.lang.String differentPlot
           
(package private)  double differentPrice
           
(package private)  java.lang.String differentRunningTime
           
(package private)  java.lang.String differentStarring
           
(package private)  java.lang.String differentTitle
           
(package private)  BarCode firstBarCode
           
(package private)  java.lang.String firstCode
           
(package private)  DVD firstDVD
           
(package private)  Utils.genre[] firstGenre
           
(package private)  java.lang.String firstPlot
           
(package private)  double firstPrice
           
(package private)  java.lang.String firstRunningTime
           
(package private)  java.lang.String firstStarring
           
(package private)  java.lang.String firstTitle
           
 
Constructor Summary
DVDTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
          Initialize variables per each test method
protected  void tearDown()
          Free variables per each test method
 void testGetBarCode()
          This method will test the getBarCode method.
 void testGetGenre()
          This method will test the getGenre method.
 void testGetPlot()
          This method will test the getPlot method.
 void testGetPrice()
          This method will test the getPrice method.
 void testGetRunningTime()
          This method will test the getRunningTime method.
 void testGetStarring()
          This method will test the getStarring method.
 void testGetTitle()
          This method will test the getTitle method.
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

firstDVD

DVD firstDVD

differentDVD

DVD differentDVD

firstBarCode

BarCode firstBarCode

differentBarCode

BarCode differentBarCode

firstCode

java.lang.String firstCode

firstTitle

java.lang.String firstTitle

firstPlot

java.lang.String firstPlot

firstRunningTime

java.lang.String firstRunningTime

firstStarring

java.lang.String firstStarring

differentCode

java.lang.String differentCode

differentTitle

java.lang.String differentTitle

differentPlot

java.lang.String differentPlot

differentRunningTime

java.lang.String differentRunningTime

differentStarring

java.lang.String differentStarring

firstPrice

double firstPrice

differentPrice

double differentPrice

firstGenre

Utils.genre[] firstGenre

differentGenre

Utils.genre[] differentGenre
Constructor Detail

DVDTest

public DVDTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Initialize variables per each test method

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Free variables per each test method

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testGetBarCode

public void testGetBarCode()
This method will test the getBarCode method. It will test it with a correct BarCode and a wrong BarCode.


testGetPrice

public void testGetPrice()
This method will test the getPrice method. It will test it with a correct price and a wrong price.


testGetTitle

public void testGetTitle()
This method will test the getTitle method. It will test it with a correct title and a wrong title.


testGetPlot

public void testGetPlot()
This method will test the getPlot method. It will test it with a correct plot and a wrong plot.


testGetGenre

public void testGetGenre()
This method will test the getGenre method. It will test it with a correct genre and a wrong genre.


testGetRunningTime

public void testGetRunningTime()
This method will test the getRunningTime method. It will test it with a correct runningTime and a wrong runningTime.


testGetStarring

public void testGetStarring()
This method will test the getStarring method. It will test it with a correct starring and a wrong starring.