Running the unit tests

The unit tests rely on some configuration variables. Namely the address of an imap server. The port of the server, whether SSL should be used and the required credentials. As these options are specific to each developer they are not provided in the pom, but you should provide them using a maven profile.

Open your settings.xml file (usually located in ~/.m2/settings.xml) an add a profile:

<settings>
  ...
  <profiles>
    ...
    <profile>
      <id>jIMAPTestConfig</id>
      <activation>
        <activeByDefault>true</activeByDefaul>
      </activation>
      <properties>
        <jimap.test.imap.server>localhost</jimap.test.imap.server>
        <jimap.test.imap.port>143</jimap.test.imap.port>
        <jimap.test.imap.ssl>false</jimap.test.imap.ssl>
        <jimap.test.imap.user>testuser</jimap.test.imap.user>
        <jimap.test.imap.password>xxxxxxx</jimap.test.imap.password>
      </properties>
    </profile>
  </profiles>
</settings>