org.eclipse.ohf.stem.internal.data.utility
Class NeighborUtilityTest

java.lang.Object
  extended by TestCase
      extended by org.eclipse.ohf.stem.internal.data.utility.NeighborUtilityTest

public class NeighborUtilityTest
extends TestCase

This class is a utility that uses JUnit test to provide the execution environment. This is easier then writing a view that that the user has to open. It will access the specified geography files and calculat Neighbors either within a country or between countries. See NeighborUtility for instructions of how to run this utility as a JUnit plugin.

See Also:
NeighborUtility, PlatformLatLongDataProvider

Constructor Summary
NeighborUtilityTest()
           
 
Method Summary
 void testRun()
          Run whatever tests are not commented out
 void tstDoAllBorders()
          Run a test of the neightborCheck method using the ZZZ0_ZZZ0 map to select all the worlds neighbors (or some subset) From ZZZ AFG CHN (Afganistan and China) create AFG2_CHN2
 void tstDoAllInternal()
          Run a test of the neightborCheck method using the ZZZ0_ZZZ0 map to select all the worlds neighbors (or some subset) From ZZZ AFG CHN (Afganistan and China) create AFG2_AFG2 create CHN2_CHN2
 void tstDoWorld(boolean doAll)
          Run a test of building the ZZZ0_ZZZ0 map to select all the worlds neighbors (or some subset) From ZZZ AFG CHN (Afganistan and China) create AFG2_CHN2
 void tstInternalNeighbors(java.lang.String admin0)
          Run a test of the neightborCheck method with a single Map so that it generates a properties file for the internal neighbors.
 void tstNeighbors2(java.lang.String admin0A, java.lang.String admin0B)
          Run a test of the neightborCheck method with maps of 2 bordering countires so that it generates a properties file for the bordering neighbors.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeighborUtilityTest

public NeighborUtilityTest()
Method Detail

testRun

public void testRun()
Run whatever tests are not commented out


tstInternalNeighbors

public void tstInternalNeighbors(java.lang.String admin0)
Run a test of the neightborCheck method with a single Map so that it generates a properties file for the internal neighbors.

Parameters:
admin0 - 3 char country to be processed

tstNeighbors2

public void tstNeighbors2(java.lang.String admin0A,
                          java.lang.String admin0B)
Run a test of the neightborCheck method with maps of 2 bordering countires so that it generates a properties file for the bordering neighbors.

Parameters:
admin0A - 3 char country to be processed
admin0B - 3 char country to be processed

tstDoWorld

public void tstDoWorld(boolean doAll)
Run a test of building the ZZZ0_ZZZ0 map to select all the worlds neighbors (or some subset) From ZZZ AFG CHN (Afganistan and China) create AFG2_CHN2

Parameters:
doAll - if true then also generate border property files for everyone and her neighbor

tstDoAllInternal

public void tstDoAllInternal()
Run a test of the neightborCheck method using the ZZZ0_ZZZ0 map to select all the worlds neighbors (or some subset) From ZZZ AFG CHN (Afganistan and China) create AFG2_AFG2 create CHN2_CHN2


tstDoAllBorders

public void tstDoAllBorders()
Run a test of the neightborCheck method using the ZZZ0_ZZZ0 map to select all the worlds neighbors (or some subset) From ZZZ AFG CHN (Afganistan and China) create AFG2_CHN2