test.filecontroller
Class FileControllerTest

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

public class FileControllerTest
extends junit.framework.TestCase

Tests for FileController -class. Because FileController is a maintain class, most of the tests are temperamentally integration tests. Methods we use are defined in fileInterface -class.

Version:
1
Author:
Potkuri-group

Field Summary
private  filecontroller.FileController fileController
          FileController instance.
private  general.Parameters parameters
          Parameters instance.
 
Constructor Summary
FileControllerTest()
           
 
Method Summary
 void setUp()
          Prepare.
 void tearDown()
          Free resources and memory.
 void testPGMUpdate()
          Test update -method when imagetype is "PGM".
 void testRadarFileController()
          This method test constructor.
 void testRadarGetErrorMessage()
          Test getErrorMessage() method.
 void testRadarGetWeatherMap()
          Test getWeathermap -method when imageType is "radar".
 void testRadarUpdate()
          Test update -method when imagetype is "radar".
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fileController

private filecontroller.FileController fileController
FileController instance.


parameters

private general.Parameters parameters
Parameters instance.

Constructor Detail

FileControllerTest

public FileControllerTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Prepare.

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

tearDown

public void tearDown()
Free resources and memory.

Overrides:
tearDown in class junit.framework.TestCase

testPGMUpdate

public void testPGMUpdate()
Test update -method when imagetype is "PGM".


testRadarFileController

public void testRadarFileController()
This method test constructor.


testRadarGetErrorMessage

public void testRadarGetErrorMessage()
Test getErrorMessage() method.


testRadarGetWeatherMap

public void testRadarGetWeatherMap()
Test getWeathermap -method when imageType is "radar".


testRadarUpdate

public void testRadarUpdate()
Test update -method when imagetype is "radar".