javamail-mock2 | JavaMail Mock2 - Open source mock classes | Mock library

 by   salyh Java Version: 0.4-beta3 License: Apache-2.0

kandi X-RAY | javamail-mock2 Summary

kandi X-RAY | javamail-mock2 Summary

javamail-mock2 is a Java library typically used in Testing, Mock applications. javamail-mock2 has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. However javamail-mock2 has 2 bugs. You can download it from GitHub, Maven.

open source mock classes for mockup javamail (useful especially for unittest). supports imap idle. e-mail hendrikdev22@gmail.com twitter @hendrikdev22. features * support imap, imaps, pop3, pop3s, smtp, smtps * support for smtp: mock transport.send() * supported for pop3: * cast to pop3folder * folder.getuid(message msg) * supported for imap: * cast to imapfolder * cast to uidfolder * idle * id * subfolders * folder.getmessagesbyuid(…​) * delete/rename folders * append messages * unsupported for the moment: * all imap extensions except idle and id * casts to pop3message/imapmessage * store listeners. the library come in two flavors/modes * normal (or halfmock): allows also to connect to real imap/pop servers. use this if you have mixed testing setups (mockend an real server). require a little bit of setup. * fullmock: use this if you have mocked test only. normally no setup required. see unittests for how to use the library. maven site
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              javamail-mock2 has a low active ecosystem.
              It has 35 star(s) with 7 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 0 have been closed. On average issues are closed in 899 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of javamail-mock2 is 0.4-beta3

            kandi-Quality Quality

              javamail-mock2 has 2 bugs (0 blocker, 0 critical, 1 major, 1 minor) and 145 code smells.

            kandi-Security Security

              javamail-mock2 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              javamail-mock2 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              javamail-mock2 is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              javamail-mock2 releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 3217 lines of code, 299 functions and 24 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed javamail-mock2 and discovered the below as its top functions. This is intended to give you an instant insight into javamail-mock2 implemented functionality, and help decide if they suit your requirements.
            • Get message inbox
            • Returns all messages in inbox
            • Returns a range of messages
            • Deletes a folder
            • Deletes this folder
            • Renames a folder
            • Renames this folder
            • Create new mailbox
            • Creates a new folder
            • Copies the mime message to the given mailbox
            • Add a mime message
            • Closes this folder
            • Tries to idle folder lock
            • Get list of folders matching the pattern
            • Connect to the mock mailbox
            • Returns the number of deleted messages
            • Gets a folder by name
            • Sends message to given addresses
            • Copy messages to a given folder
            • Gets a list of folders matching the specified pattern
            • Returns the list of folders subscribed to this mailbox
            • Handle a mailbox change
            • Retrieves the contents of this message
            • Retrieve a range of messages
            • Appends multiple Mime messages to the mailbox
            • Add multiple messages to the mailbox
            Get all kandi verified functions for this library.

            javamail-mock2 Key Features

            No Key Features are available at this moment for javamail-mock2.

            javamail-mock2 Examples and Code Snippets

            No Code Snippets are available at this moment for javamail-mock2.

            Community Discussions

            Trending Discussions on javamail-mock2

            QUESTION

            Pax exam karaf 4.0.7 using mock javamail
            Asked 2017-Jul-20 at 07:26

            I would like use javamail-mock2 in pax exam environment but the problem is that pax exam cannot see META-INF folder from test. How to add javamail.providers file to suite that javamail-mock2 will see configuration file and load mock providers?

            MP

            ...

            ANSWER

            Answered 2017-Jul-20 at 07:26

            The javamail-mock2 is maybe not compatible with OSGi. We have a mock-mail bundle we build and use for testing Camel in OSGi at: https://github.com/apache/camel/tree/master/tests/test-bundles/mock-javamail_1.7

            Source https://stackoverflow.com/questions/45167853

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install javamail-mock2

            You can download it from GitHub, Maven.
            You can use javamail-mock2 like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the javamail-mock2 component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/salyh/javamail-mock2.git

          • CLI

            gh repo clone salyh/javamail-mock2

          • sshUrl

            git@github.com:salyh/javamail-mock2.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link