org.geotools.demo.main
Class FeatureCollectionExampleTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.geotools.demo.main.FeatureCollectionExampleTest
All Implemented Interfaces:
junit.framework.Test

public class FeatureCollectionExampleTest
extends junit.framework.TestCase

This class collects several examples on the use of DefaultFeatureCollection.

For the wiki page associated with these examples please visit:

If you update this file please correct the above pages.

Implementation notes: Where possible we are restricting ourself to the formal api, we try not to use keyword "new" (and instead make use of a Factory).

Author:
Jody Garnett

Constructor Summary
FeatureCollectionExampleTest()
           
 
Method Summary
protected  void setUp()
           
 void testAddingContentToYourFeatureCollection()
           
 void testClassifier()
          See FeatureCollection Classigication Functions in the wiki
 void testFeatureCollectionsNewCollection()
           
 void testFeatureIterator()
          This example also works with Java 1.4
 void testFeatureVisitor()
          The easiest way to work with data
 void testIterator()
          IMPORTANT - You must close your iterator
 void testIteratorSafe()
          Important when working with real data
 void testNewDefaultFeatureCollection()
          You can create using a normal constructor ...
 void testSum()
           
 
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
 

Constructor Detail

FeatureCollectionExampleTest

public FeatureCollectionExampleTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testNewDefaultFeatureCollection

public void testNewDefaultFeatureCollection()
You can create using a normal constructor ... but it is not recommended. We can produce a better implementation than DefaultFeatureCollection, and we will .. ... by using FeatureCollections your application will be sure to pick up the best implementation we can make available.


testFeatureCollectionsNewCollection

public void testFeatureCollectionsNewCollection()

testAddingContentToYourFeatureCollection

public void testAddingContentToYourFeatureCollection()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testSum

public void testSum()

testClassifier

public void testClassifier()
See FeatureCollection Classigication Functions in the wiki


testFeatureVisitor

public void testFeatureVisitor()
The easiest way to work with data


testIterator

public void testIterator()
IMPORTANT - You must close your iterator


testIteratorSafe

public void testIteratorSafe()
Important when working with real data


testFeatureIterator

public void testFeatureIterator()
This example also works with Java 1.4



Copyright © 1996-2010 Geotools. All Rights Reserved.