<commit_before>===============
 Using GDeproxy
===============

To use gdeproxy in your unit tests:

  1. In the test class's setup method, create a Deproxy object and endpoint(s), and configure your proxy to forward requests to the endpoint's port.
  2. In the actual test method, use the makeRequest method to send a request to the proxy, and get a message chain back.
  3. Still in the test method, make assertions against the returned message chain.
  4. In the cleanup method, shutdown the Deproxy object by calling shutdown().

Here's a code example of a unit test that tests the fictional theProxy library::

    import org.theProxy.*
    import org.rackspace.gdeproxy.*
    import org.junit.*
    import static org.junit.Assert.*

    class TestTheProxy {

        Deproxy deproxy
        DeproxyEndpoint endpoint<commit_msg>Fix heading lines.<commit_after>================
 Using GDeproxy
================

To use gdeproxy in your unit tests:

  1. In the test class's setup method, create a Deproxy object and endpoint(s), and configure your proxy to forward requests to the endpoint's port.
  2. In the actual test method, use the makeRequest method to send a request to the proxy, and get a message chain back.
  3. Still in the test method, make assertions against the returned message chain.
  4. In the cleanup method, shutdown the Deproxy object by calling shutdown().

Here's a code example of a unit test that tests the fictional theProxy library::

    import org.theProxy.*
    import org.rackspace.gdeproxy.*
    import org.junit.*
    import static org.junit.Assert.*

    class TestTheProxy {

        Deproxy deproxy
        DeproxyEndpoint endpoint
{'fraction_non_alphanumeric': 0.08786610878661087, 'fraction_numerical': 0.004781829049611476, 'mean_word_length': 3.5737704918032787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3652880', 'n_tokens_mistral': 447, 'n_tokens_neox': 424, 'n_words': 223}