cz.muni.fi.pb162.school
Class StudentCatalogTest

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

public class StudentCatalogTest
extends junit.framework.TestCase

Testovací třída pro katalog studentů

Author:
Petr Adamek <xadamek2@fi.muni.cz>

Field Summary
static String ENCODING
           
 
Constructor Summary
StudentCatalogTest(String testName)
           
 
Method Summary
static void main(String[] args)
           
static junit.framework.Test suite()
           
 void testBadDataEmptyLine()
           
 void testBadDataInvalidNumber()
           
 void testBadDataNoName()
           
 void testClear()
           
 void testLoad()
           
 void testLoadIOError()
           
 void testNewStudent()
           
 void testReadOnlyStudentsCollection()
           
 void testSave()
           
 void testSaveIOError()
           
 void testStudentEquals()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 

Field Detail

ENCODING

public static final String ENCODING
See Also:
Constant Field Values
Constructor Detail

StudentCatalogTest

public StudentCatalogTest(String testName)
Method Detail

suite

public static junit.framework.Test suite()

testStudentEquals

public void testStudentEquals()

testNewStudent

public void testNewStudent()

testLoad

public void testLoad()
              throws IOException,
                     StudentCatalogException
Throws:
IOException
StudentCatalogException

testSave

public void testSave()
              throws IOException,
                     StudentCatalogException
Throws:
IOException
StudentCatalogException

testBadDataEmptyLine

public void testBadDataEmptyLine()
                          throws IOException,
                                 StudentCatalogException
Throws:
IOException
StudentCatalogException

testBadDataNoName

public void testBadDataNoName()
                       throws IOException,
                              StudentCatalogException
Throws:
IOException
StudentCatalogException

testBadDataInvalidNumber

public void testBadDataInvalidNumber()
                              throws IOException,
                                     StudentCatalogException
Throws:
IOException
StudentCatalogException

testReadOnlyStudentsCollection

public void testReadOnlyStudentsCollection()
                                    throws IOException,
                                           StudentCatalogException
Throws:
IOException
StudentCatalogException

testClear

public void testClear()

testLoadIOError

public void testLoadIOError()

testSaveIOError

public void testSaveIOError()

main

public static void main(String[] args)