|
| 1 | +[![][logo]][website] |
| 2 | +Java Hamcrest |
| 3 | +============= |
| 4 | +Licensed under [BSD License][]. |
| 5 | + |
| 6 | +What is Hamcrest? |
| 7 | +----------------- |
| 8 | +Hamcrest is a library of matchers, which can be combined in to create flexible expressions of intent in tests. |
| 9 | + |
| 10 | +Downloads |
| 11 | +--------- |
| 12 | +You can obtain Hamcrest binaries from [maven central][], or from [google code downloads][]. |
| 13 | + |
| 14 | +Binaries |
| 15 | +-------- |
| 16 | +Depending on how you intend to use Hamcrest, you should use different Jars. |
| 17 | + |
| 18 | + * __hamcrest-core.jar__ -- This is the core API to be used by third-party framework providers. This includes the a foundation set of matcher implementations for common operations. This API is stable and will rarely change. You will need this library as a minimum. |
| 19 | + * __hamcrest-library.jar__ -- The ever-growing library of Matcher implementations. This will grow between releases. |
| 20 | + * __hamcrest-generator.jar__ -- A tool to allow many Matcher implementations to be combined into a single class so users don't have to remember many classes/packages to import. Generates code. |
| 21 | + * __hamcrest-integration.jar__ -- Provides integration between Hamcrest and other testing tools, including JUnit (3 and 4), TestNG, jMock and EasyMock. |
| 22 | + |
| 23 | +Alternatively, if you don't care: |
| 24 | + |
| 25 | + * __hamcrest-all.jar__ -- Includes all of the above. |
| 26 | + |
| 27 | +Sources and JavaDoc jars are available for all of the above. |
| 28 | + |
| 29 | +Extensions |
| 30 | +---------- |
| 31 | + |
| 32 | +For Hamcrest extension projects see [hamcrest extensions][this list]. |
| 33 | + |
| 34 | +Dependencies |
| 35 | +------------ |
| 36 | +All libraries in the `lib` directory are used at build time, or are optional extras used for tighter integration with third party libraries. |
| 37 | + |
| 38 | +ALL OF THE DEPENDENCIES ARE OPTIONAL. |
| 39 | + |
| 40 | +Documentation |
| 41 | +------------- |
| 42 | +Documentation can be found on the [google code wiki][]. |
| 43 | + |
| 44 | +Source |
| 45 | +------ |
| 46 | +The complete source for Hamcrest is bundled. This includes: |
| 47 | + * Matcher core classes [src/core] |
| 48 | + * Matcher library [src/library] |
| 49 | + * Matcher integrations [src/integration] |
| 50 | + * Syntactic sugar generator [src/generator] |
| 51 | + * Unit tests [src/unit-test] |
| 52 | + * Ant build file [build.xml] |
| 53 | + * Dependencies [lib] |
| 54 | + |
| 55 | +To build, please read BUILDING.txt |
| 56 | + |
| 57 | +Acknowledgements |
| 58 | +---------------- |
| 59 | +Developers: |
| 60 | + * Joe Walnes |
| 61 | + * Nat Pryce |
| 62 | + * Steve Freeman |
| 63 | + |
| 64 | +Contributors: |
| 65 | + * Robert Chatley |
| 66 | + * Tom White |
| 67 | + * Neil Dunn |
| 68 | + * Dan North |
| 69 | + * Magne Rasmussen |
| 70 | + * David Saff |
| 71 | + * Tom Denley |
| 72 | + |
| 73 | +Also, thanks to everyone who has worked on DynaMock, nMock, jMock, EasyMock and MiniMock! These libraries inspired Hamcrest. |
| 74 | + |
| 75 | + |
| 76 | +[logo]: https://raw.github.com/hamcrest/JavaHamcrest/master/doc/images/logo.jpg |
| 77 | +[website]: http://code.google.com/p/hamcrest |
| 78 | +[BSD License]: http://opensource.org/licenses/BSD-3-Clause |
| 79 | +[Maven central]: http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.hamcrest |
| 80 | +[google code downloads]: http://code.google.com/p/hamcrest/downloads/list?can=2&q=label%3AJava |
| 81 | +[google code wiki]: http://code.google.com/p/hamcrest/wiki/Tutorial |
| 82 | +[hamcrest extensions]: https://github.com/hamcrest/JavaHamcrest/wiki/Related-Projects |
0 commit comments