test.filecontroller
Class ReadImageFileTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.filecontroller.ReadImageFileTest
All Implemented Interfaces:
junit.framework.Test

public class ReadImageFileTest
extends junit.framework.TestCase

Test cases for ReadImageFile -class.

Version:
1
Author:
Potkuri-group

Field Summary
private  general.Parameters parameters
          Instance of parameters -class.
private  filecontroller.ReadImageFile readImageFile
          Instance of readImageFile -class.
 
Constructor Summary
ReadImageFileTest()
           
 
Method Summary
 void setUp()
          Set up for tests.
 void testGetErrorMessage()
          Test getErrorMessage.
 void testGetMap()
          Test getMap -method.
 void testGetMapMatrix()
          Test getMapMatrix -method.
 void testPGMFilesNotFound()
          Tests for case PGM -images doesn't exists.
 void testReadImageFile()
          Test constructor.
 void testUpdate()
          Test update method.
 void testUpdateUntilNoMoreWeatherData()
          Test "No more weather data" -situation.
 void testWeathersetFileNotFound()
          Tests for case WeatherSet -file not found.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parameters

private general.Parameters parameters
Instance of parameters -class.


readImageFile

private filecontroller.ReadImageFile readImageFile
Instance of readImageFile -class.

Constructor Detail

ReadImageFileTest

public ReadImageFileTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Set up for tests.

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

testGetErrorMessage

public void testGetErrorMessage()
Test getErrorMessage.


testGetMap

public void testGetMap()
Test getMap -method.


testGetMapMatrix

public void testGetMapMatrix()
Test getMapMatrix -method.


testPGMFilesNotFound

public void testPGMFilesNotFound()
Tests for case PGM -images doesn't exists.


testReadImageFile

public void testReadImageFile()
Test constructor.


testUpdate

public void testUpdate()
Test update method.


testUpdateUntilNoMoreWeatherData

public void testUpdateUntilNoMoreWeatherData()
Test "No more weather data" -situation.


testWeathersetFileNotFound

public void testWeathersetFileNotFound()
Tests for case WeatherSet -file not found.