<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>JMockit: a Java toolkit for developer testing.</h1>
<p>
   The figure below gives an overview of the testing APIs available in the toolkit.
   Clicking on individual items will navigate to the corresponding API documentation.
</p>
<div align="center">
   <map name="figure1">
      <area shape="rect" coords="10,10,160,32" href="../tutorial/BehaviorBasedTesting.html">
      <area shape="rect" coords="37,87,158,114" href="mockit/Expectations.html"
         title="Base class whose subclasses are defined in test code, and whose instances define a
set of expected method/constructor invocations on the mocked types (classes or interfaces) declared
through one or more mock fields and/or mock parameters.">
      <area shape="rect" coords="169,87,261,114" href="mockit/Mocked.html"
         title="Indicates an instance field or parameter whose value will be a mock object.">
      <area shape="rect" coords="271,87,371,114" href="mockit/NonStrict.html"
         title="For tests using Expectations, indicates a non-strict mocked type for an instance
field or test method parameter.">
      <area shape="rect" coords="154,122,262,149" href="mockit/Cascading.html"
         title="Indicates a mocked type where the return types of non-void methods, excluding
primitives, String, and collection types, will be mocked automatically if and when an invocation
to the method occurs.">
      <area shape="rect" coords="10,163,184,190" href="mockit/NonStrictExpectations.html"
         title="An Expectations subclass where all expectations are automatically non-strict.">
      <area shape="rect" coords="382,87,502,114" href="mockit/Verifications.html"
         title="Base class whose subclasses are defined in test code, and whose instances define a
set of invocations on mocks to be verified against the actual invocations executed during the replay
phase of the test.">
      <area shape="rect" coords="205,163,367,190" href="mockit/VerificationsInOrder.html"
         title="Same as Verifications, but checking that invocations in the replay phase occurred in
the same order as specified in this ordered verification block.">
      <area shape="rect" coords="374,163,512,190" href="mockit/FullVerifications.html"
         title="Same as Verifications, but checking that all invocations in the replay phase are
explicitly verified in this verification block.">
      <area shape="rect" coords="519,163,700,190" href="mockit/FullVerificationsInOrder.html"
         title="A combination of FullVerifications and VerificationsInOrder.">
      <area shape="rect" coords="595,12,700,38" href="mockit/Invocation.html"
         title="A context object representing the current invocation to a mocked method or constructor.">
      <area shape="rect" coords="603,45,700,72" href="mockit/Delegate.html"
         title="An empty interface to be used with the Expectations#returns(Object) method, in
order to allow test code to define invocation results (return values or thrown errors/exceptions)
based on test-specific logic.">

      <area shape="rect" coords="720,10,850,32" href="../tutorial/StateBasedTesting.html">
      <area shape="rect" coords="720,43,833,70" href="mockit/MockUp.html"
         title="A mock-up for a class or interface, to be used in state-based tests.">
      <area shape="rect" coords="720,75,805,102" href="mockit/Mockit.html"
         title="Provides static methods for the mocking and stubbing of arbitrary classes from
production code, according to specified mock classes defined in test code.">
      <area shape="rect" coords="870,11,948,38" href="mockit/Mock.html"
         title="Used inside a mock class to indicate a mock method or mock constructor, with
optional expectations on the number of invocations while the mock is in effect.">
      <area shape="rect" coords="838,43,948,70" href="mockit/MockClass.html"
         title="Indicates a mock class containing one or more mock methods/constructors, each one
of them properly indicated as such.">
      <area shape="rect" coords="831,75,948,102" href="mockit/Instantiation.html"
         title="Defines the lifetime of the instances automatically created for a mock class.">

      <area shape="rect" coords="720,225,800,256" href="../tutorial/ReflectionUtilities.html">
      <area shape="rect" coords="807,226,949,253" href="mockit/Deencapsulation.html"
         title='Provides utility methods that enable access to (ie "de-encapsulate") otherwise
non-accessible fields, methods and constructors belonging to code under test.'>

      <area shape="rect" coords="720,120,810,152" href="../tutorial/CapturingImplementations.html">
      <area shape="rect" coords="847,122,949,149" href="mockit/Capturing.html"
         title="Indicates a test class, an instance field declared in a test class, or a test method
parameter which will capture all implementations of a given base type (usually an interface or
abstract class).">

      <area shape="rect" coords="720,165,920,180" href="../tutorial/UsingMocksAndStubs.html">
      <area shape="rect" coords="778,183,949,210" href="mockit/UsingMocksAndStubs.html"
         title="Indicates one or more classes to be mocked or stubbed out.">

      <area shape="rect" coords="10,225,144,253" href="../tutorial/RunningTests.html"
         title="Provides integration between JMockit and third-party test runners such as JUnit and
TestNG, as well as mock classes that stub out other APIs while tests are running.">

      <area shape="rect" coords="223,226,349,253" href="../tutorial/CodeCoverage.html"
         title="An external tool which generates an XHTML report with line and path coverage metrics
for the production code exercised during a test run.">
      <area shape="rect" coords="358,226,499,253" href="../tutorial/IncrementalTests.html">
   </map>
   <img src="../toolkit.png" style="border: none;" usemap="overview.html#figure1">
   <br>
   <span>Figure 1. Overview of JMockit APIs</span>
</div>
<p>
   For the motivations that led to the creation of the toolkit and a brief introduction (with
   examples) to the main APIs, check out the
   <a href="http://jmockit.googlecode.com/svn/trunk/www/about.html" target="homepage">About JMockit</a>
   page.
</p>
<p>
   The <a href="http://jmockit.googlecode.com/svn/trunk/www/tutorial.html" target="tutorial">tutorial</a>
   contains an extensive and user-friendly description of all the available tools and APIs, with
   plenty of example code.
</p>
<p>
   The full distribution (in a zip file) contains several
   <a href="http://jmockit.googlecode.com/svn/trunk/www/samples.html" target="samples">sample test<commit_msg>Added link to "getting started" page.<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>JMockit: a Java toolkit for developer testing.</h1>
<p>
   The figure below gives an overview of the testing APIs available in the toolkit.
   Clicking on individual items will navigate to the corresponding API documentation.
</p>
<div align="center">
   <map name="figure1">
      <area shape="rect" coords="10,10,160,32" href="../tutorial/BehaviorBasedTesting.html">
      <area shape="rect" coords="37,87,158,114" href="mockit/Expectations.html"
         title="Base class whose subclasses are defined in test code, and whose instances define a
set of expected method/constructor invocations on the mocked types (classes or interfaces) declared
through one or more mock fields and/or mock parameters.">
      <area shape="rect" coords="169,87,261,114" href="mockit/Mocked.html"
         title="Indicates an instance field or parameter whose value will be a mock object.">
      <area shape="rect" coords="271,87,371,114" href="mockit/NonStrict.html"
         title="For tests using Expectations, indicates a non-strict mocked type for an instance
field or test method parameter.">
      <area shape="rect" coords="154,122,262,149" href="mockit/Cascading.html"
         title="Indicates a mocked type where the return types of non-void methods, excluding
primitives, String, and collection types, will be mocked automatically if and when an invocation
to the method occurs.">
      <area shape="rect" coords="10,163,184,190" href="mockit/NonStrictExpectations.html"
         title="An Expectations subclass where all expectations are automatically non-strict.">
      <area shape="rect" coords="382,87,502,114" href="mockit/Verifications.html"
         title="Base class whose subclasses are defined in test code, and whose instances define a
set of invocations on mocks to be verified against the actual invocations executed during the replay
phase of the test.">
      <area shape="rect" coords="205,163,367,190" href="mockit/VerificationsInOrder.html"
         title="Same as Verifications, but checking that invocations in the replay phase occurred in
the same order as specified in this ordered verification block.">
      <area shape="rect" coords="374,163,512,190" href="mockit/FullVerifications.html"
         title="Same as Verifications, but checking that all invocations in the replay phase are
explicitly verified in this verification block.">
      <area shape="rect" coords="519,163,700,190" href="mockit/FullVerificationsInOrder.html"
         title="A combination of FullVerifications and VerificationsInOrder.">
      <area shape="rect" coords="595,12,700,38" href="mockit/Invocation.html"
         title="A context object representing the current invocation to a mocked method or constructor.">
      <area shape="rect" coords="603,45,700,72" href="mockit/Delegate.html"
         title="An empty interface to be used with the Expectations#returns(Object) method, in
order to allow test code to define invocation results (return values or thrown errors/exceptions)
based on test-specific logic.">

      <area shape="rect" coords="720,10,850,32" href="../tutorial/StateBasedTesting.html">
      <area shape="rect" coords="720,43,833,70" href="mockit/MockUp.html"
         title="A mock-up for a class or interface, to be used in state-based tests.">
      <area shape="rect" coords="720,75,805,102" href="mockit/Mockit.html"
         title="Provides static methods for the mocking and stubbing of arbitrary classes from
production code, according to specified mock classes defined in test code.">
      <area shape="rect" coords="870,11,948,38" href="mockit/Mock.html"
         title="Used inside a mock class to indicate a mock method or mock constructor, with
optional expectations on the number of invocations while the mock is in effect.">
      <area shape="rect" coords="838,43,948,70" href="mockit/MockClass.html"
         title="Indicates a mock class containing one or more mock methods/constructors, each one
of them properly indicated as such.">
      <area shape="rect" coords="831,75,948,102" href="mockit/Instantiation.html"
         title="Defines the lifetime of the instances automatically created for a mock class.">

      <area shape="rect" coords="720,225,800,256" href="../tutorial/ReflectionUtilities.html">
      <area shape="rect" coords="807,226,949,253" href="mockit/Deencapsulation.html"
         title='Provides utility methods that enable access to (ie "de-encapsulate") otherwise
non-accessible fields, methods and constructors belonging to code under test.'>

      <area shape="rect" coords="720,120,810,152" href="../tutorial/CapturingImplementations.html">
      <area shape="rect" coords="847,122,949,149" href="mockit/Capturing.html"
         title="Indicates a test class, an instance field declared in a test class, or a test method
parameter which will capture all implementations of a given base type (usually an interface or
abstract class).">

      <area shape="rect" coords="720,165,920,180" href="../tutorial/UsingMocksAndStubs.html">
      <area shape="rect" coords="778,183,949,210" href="mockit/UsingMocksAndStubs.html"
         title="Indicates one or more classes to be mocked or stubbed out.">

      <area shape="rect" coords="10,225,144,253" href="../tutorial/RunningTests.html"
         title="Provides integration between JMockit and third-party test runners such as JUnit and
TestNG, as well as mock classes that stub out other APIs while tests are running.">

      <area shape="rect" coords="223,226,349,253" href="../tutorial/CodeCoverage.html"
         title="An external tool which generates an XHTML report with line and path coverage metrics
for the production code exercised during a test run.">
      <area shape="rect" coords="358,226,499,253" href="../tutorial/IncrementalTests.html">
   </map>
   <img src="../toolkit.png" style="border: none;" usemap="overview.html#figure1">
   <br>
   <span>Figure 1. Overview of JMockit APIs</span>
</div>
<p>
   For a quick introduction to JMockit go to this page:
   <a href="http://jmockit.googlecode.com/svn/trunk/www/gettingStarted.html"
      target="gettingStarted">Getting started</a>.
   For the motivations that led to the creation of the toolkit and a brief introduction (with
   examples) to the main APIs, check out the
   <a href="http://jmockit.googlecode.com/svn/trunk/www/about.html" target="homepage">About JMockit</a>
   page.
</p>
<p>
   The <a href="http://jmockit.googlecode.com/svn/trunk/www/tutorial.html" target="tutorial">tutorial</a>
   contains an extensive and user-friendly description of all the available tools and APIs, with
   plenty of example code.
</p>
<p>
   The full distribution (in a zip file) contains several
   <a href="http://jmockit.googlecode.com/svn/trunk/www/samples.html" target="samples">sample test
{'fraction_non_alphanumeric': 0.11329196132198008, 'fraction_numerical': 0.0450281425891182, 'mean_word_length': 4.367544539116963, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 9, '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': '2328960', 'n_tokens_mistral': 4435, 'n_tokens_neox': 3952, 'n_words': 1380}