<commit_before>JUnit
------

As you code, you should write a unit test for each class to test the functionality and robustness of the class. This is made much easier by using JUnit.

JUnit is very good at:
* capturing a Jira bug report in a reproducible manner
* allowing you to specify exactly the behaviour your want - before you start coding
* unit testing

The general idea:
* If you are testing src/org/geotools/module/HelloWorld.java
* create a file test/org/geotools/module/HelloWorldTest.java
* any public void methods starting with test will be run by JUnit
* maven will run all tests for your module using: mvn test 
* tests can be ignored using you pom.xml file
* maven will not "release" your module into the repository while it still fails unit testing

Example TestCase
^^^^^^^^^^^^^^^^

Example JUnit 3 Test Case::
   
   package org.geotools.module;
   
   import org.geotools.map.BoundingBox;
   
   /**
    * Unit test for BoundingBox.
    */
   public class HelloWorldTest extends TestCase {
   
       /** Test suite for this test case */<commit_msg>Fix list formatting in junit.rst<commit_after>JUnit
------

As you code, you should write a unit test for each class to test the functionality and robustness of the class. This is made much easier by using JUnit.

JUnit is very good at:

* capturing a Jira bug report in a reproducible manner
* allowing you to specify exactly the behaviour your want - before you start coding
* unit testing

The general idea:

* If you are testing src/org/geotools/module/HelloWorld.java
* create a file test/org/geotools/module/HelloWorldTest.java
* any public void methods starting with test will be run by JUnit
* maven will run all tests for your module using: mvn test 
* tests can be ignored using you pom.xml file
* maven will not "release" your module into the repository while it still fails unit testing

Example TestCase
^^^^^^^^^^^^^^^^

Example JUnit 3 Test Case::
   
   package org.geotools.module;
   
   import org.geotools.map.BoundingBox;
   
   /**
    * Unit test for BoundingBox.
    */
   public class HelloWorldTest extends TestCase {
   
       /** Test suite for this test case */
{'fraction_non_alphanumeric': 0.07080055529847293, 'fraction_numerical': 0.0009254974548819991, 'mean_word_length': 3.448559670781893, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4999478', 'n_tokens_mistral': 604, 'n_tokens_neox': 585, 'n_words': 290}