Skip to content

Commit 9c53a79

Browse files
authored
Merge pull request hamcrest#227 from tumbarumba/master
Move wiki pages to docs
2 parents 3fe2fc8 + d744eb2 commit 9c53a79

File tree

7 files changed

+378
-3
lines changed

7 files changed

+378
-3
lines changed

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
markdown: kramdown

docs/_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
<meta name="date" content="2018-11-01"/>
88
<title>{{ page.title }}</title>
99
<link href="css/hamcrest.css" rel="stylesheet" type="text/css">
10+
<link href="css/pygments-default.css" rel="stylesheet" type="text/css">
1011
</head>

docs/css/pygments-default.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
.highlight .hll { background-color: #ffffcc }
2+
.highlight .c { color: #408080; font-style: italic } /* Comment */
3+
.highlight .err { border: 1px solid #FF0000 } /* Error */
4+
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
5+
.highlight .o { color: #666666 } /* Operator */
6+
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
7+
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
8+
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
9+
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
10+
.highlight .gd { color: #A00000 } /* Generic.Deleted */
11+
.highlight .ge { font-style: italic } /* Generic.Emph */
12+
.highlight .gr { color: #FF0000 } /* Generic.Error */
13+
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
14+
.highlight .gi { color: #00A000 } /* Generic.Inserted */
15+
.highlight .go { color: #808080 } /* Generic.Output */
16+
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
17+
.highlight .gs { font-weight: bold } /* Generic.Strong */
18+
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
19+
.highlight .gt { color: #0040D0 } /* Generic.Traceback */
20+
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
21+
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
22+
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
23+
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
24+
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
25+
.highlight .kt { color: #B00040 } /* Keyword.Type */
26+
.highlight .m { color: #666666 } /* Literal.Number */
27+
.highlight .s { color: #BA2121 } /* Literal.String */
28+
.highlight .na { color: #7D9029 } /* Name.Attribute */
29+
.highlight .nb { color: #008000 } /* Name.Builtin */
30+
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
31+
.highlight .no { color: #880000 } /* Name.Constant */
32+
.highlight .nd { color: #AA22FF } /* Name.Decorator */
33+
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
34+
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
35+
.highlight .nf { color: #0000FF } /* Name.Function */
36+
.highlight .nl { color: #A0A000 } /* Name.Label */
37+
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
38+
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
39+
.highlight .nv { color: #19177C } /* Name.Variable */
40+
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
41+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
42+
.highlight .mf { color: #666666 } /* Literal.Number.Float */
43+
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
44+
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
45+
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
46+
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
47+
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
48+
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
49+
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
50+
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
51+
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
52+
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
53+
.highlight .sx { color: #008000 } /* Literal.String.Other */
54+
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
55+
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
56+
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
57+
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
58+
.highlight .vc { color: #19177C } /* Name.Variable.Class */
59+
.highlight .vg { color: #19177C } /* Name.Variable.Global */
60+
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
61+
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */

docs/distributables.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
title: Hamcrest Distributables
3+
layout: default
4+
---
5+
[Java Hamcrest Home](index)
6+
7+
# Hamcrest Distributables
8+
{:.no_toc}
9+
10+
## Introduction
11+
{:.no_toc}
12+
13+
Hamcrest consists of different jars matching the different needs of
14+
applications. This document describes these distributables and the
15+
functionality contained in each of them.
16+
17+
## Table of Contents
18+
{:.no_toc}
19+
20+
* TOC
21+
{:toc}
22+
23+
## The Java Hamcrest Jars
24+
25+
### `hamcrest-core.jar`
26+
27+
This is the core API to be used by third-party framework providers.
28+
This includes a foundation set of matcher implementations for common
29+
operations. This API is stable and will rarely change. You will
30+
need this library as a minimum.
31+
32+
### `hamcrest-library.jar`
33+
34+
The library of Matcher implementations which are based on the core
35+
functionality in hamcrest-core.jar.
36+
37+
### `hamcrest-integration.jar`
38+
39+
Provides integration between Hamcrest and other testing tools, such as jMock
40+
and EasyMock. Uses hamcrest-core.jar and hamcrest-library.jar.
41+
42+
### `hamcrest-generator.jar`
43+
44+
A tool to allow many Matcher implementations to be combined into
45+
a single class with static methods returning the different matchers
46+
so users don't have to remember many classes/packages to import.
47+
Generates code. This library is only used internally at compile time.
48+
It is not necessary for the use of any of the other hamcrest libraries
49+
at runtime.
50+
51+
### `hamcrest-all.jar`
52+
53+
One jar containing all classes of all the other jars.
54+
55+
56+
## Adding Hamcrest to your Project
57+
58+
The dependencies of the jars (`hamcrest-integration` uses `hamcrest-library`
59+
which uses `hamcrest-core`) is represented by the Maven dependency mechanism.
60+
There is no `hamcrest-all` library in the Maven repo prior to version 1.3. Just
61+
use hamcrest-integration which references all the other hamcrest libraries.
62+
63+
64+
### Gradle
65+
66+
Add `"org.hamcrest:hamcrest-library:1.3"` to the dependencies section of your
67+
`build.gradle`, for example:
68+
69+
```gradle
70+
apply plugin: 'java'
71+
72+
dependencies {
73+
testImplementation 'org.hamcrest:hamcrest-library:1.3'
74+
}
75+
```
76+
77+
Note: older versions of Gradle use the `testCompile` configuration
78+
instead of the `testImplementation` configuration.
79+
80+
### Maven
81+
82+
Add the following dependency declaration to your `pom.xml`:
83+
84+
```xml
85+
<dependency>
86+
<groupId>org.hamcrest</groupId>
87+
<artifactId>hamcrest-library</artifactId>
88+
<version>1.3</version>
89+
<scope>test</scope>
90+
</dependency>
91+
```
92+
93+
### Download
94+
95+
You can download the jars directly from Maven Central. At a minimum, you will
96+
need `hamcrest-core.jar`, though most people will also use
97+
`hamcrest-library.jar` too. If you want to integrate Hamcrest Matchers with
98+
other test tools, such as jMock or EasyMock, download `hamcrest-integration.jar`, too.
99+
100+
You can find the jars by searching Maven Central for groupId `org.hamcrest`
101+
using the following link:
102+
103+
> [https://search.maven.org/search?q=g:org.hamcrest](https://search.maven.org/search?q=g:org.hamcrest)
104+
105+
Maven central has some extra artifacts called `java-hamcrest` and `hamcrest-java`,
106+
with a version of `2.0.0.0`. Please do not use these, as they are an aborted effort
107+
at repackaging the different jars.

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ layout: default
88

99
### Documentation
1010

11-
* [Getting Started](https://github.com/hamcrest/JavaHamcrest/wiki/The-Hamcrest-Tutorial)
11+
* [Getting Started](tutorial)
1212
* [API Documentation (JavaDoc)](javadoc/)
1313

1414
### Downloads
1515

16-
* [Distributables and Dependency Configuration](https://github.com/hamcrest/JavaHamcrest/wiki/Hamcrest-Distributables)
16+
* [Distributables and Dependency Configuration](distributables)
1717
* [Source Repository](http://github.com/hamcrest/JavaHamcrest)
1818
* [Project License](http://opensource.org/licenses/BSD-3-Clause)
19-
* [Extensions](https://github.com/hamcrest/JavaHamcrest/wiki/Related-Projects)
19+
* [Extensions and Related Projects](related)
2020

2121
### User Support
2222

docs/related.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: Hamcrest Related Projects
3+
layout: default
4+
---
5+
[Java Hamcrest Home](index)
6+
7+
# Related Projects
8+
9+
Here are some projects that provide additional features and matchers
10+
11+
* [Hamcrest Text Patterns](http://code.google.com/p/hamcrest-text-patterns/)
12+
* [Hamcrest Java Extras](https://github.com/sf105/hamcrest-java-extras) (currently only a couple of Json matchers)
13+
* [Hamcrest JSON](https://github.com/hertzsprung/hamcrest-json) (for comparing entire JSON documents)
14+
* [Hamcrest Date](https://github.com/modularit/hamcrest-date) (for comparing dates)
15+
* [Hamcrest Path](https://github.com/seinesoftware/hamcrest-path) (for testing path existence and permissions)
16+
* [Hamcrest HAR](https://github.com/roydekleijn/har-assert) (for HTTP archive files)
17+
* [Hamcrest avro](https://github.com/Byhiras/avro-utils)
18+
* [Hamcrest 1.3 Utility Matchers](https://github.com/NitorCreations/matchers) (Java matchers like CollectionMatchers, MapMatchers, FieldMatcher, SerializableMatcher etc)
19+
* [Hamcrest Querydsl](https://github.com/beloglazov/hamcrest-querydsl) (for checking query results: hasResultSize, hasColumnRange, hasColumnMax, hasColumnMin, hasColumnContainingAll, hasColumnContainingAny)
20+
* [JsonUnit](https://github.com/lukas-krecan/JsonUnit) (for comparing JSON structures jsonEquals, jsonPartEquals)
21+
* [json-path-matchers](https://github.com/jayway/JsonPath/tree/master/json-path-assert) (for evaluating JSON path expressions)
22+
* [EZ Testing](https://github.com/EZGames/ez-testing) (contains base classes for defining chainable matchers that have a similar style to AssertJ)
23+
* [valid4j](https://github.com/valid4j/valid4j) (assertion and validation library, i.e supporting design-by-contract style and/or recoverable input validation)
24+
* [http-matchers](https://github.com/valid4j/http-matchers) (Matchers to test your web service via the standard Java API for RESTful Services (JAX-RS))
25+
* [Awaitility](https://github.com/jayway/awaitility) (a DSL that allows you to express expectations of an asynchronous system in a concise and easy to read manner)
26+
* [Proboscis](https://github.com/sf105/proboscis) (a tiny java library for polling for a result, originally intended for tested asynchronous systems)
27+
* [hamcrest-pojo-matcher-generator](https://github.com/yandex-qatools/hamcrest-pojo-matcher-generator) (Annotation processor to generate feature-matchers based on your POJOs)
28+
* [Spotify's hamcrest matchers](https://github.com/spotify/java-hamcrest) (Matchers for POJOs, JSON, and some of the types introduced in Java 8)
29+
* [Shazamcrest](https://github.com/shazam/shazamcrest) (Matchers for beans with custom field matching and nice failure messages)

0 commit comments

Comments
 (0)