You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+27-22Lines changed: 27 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,23 @@
2
2
3
3
## Version 3.0 (Unreleased)
4
4
5
+
### Breaking Changes
6
+
7
+
* From version 3.0, the jar distributed to Maven Central is now compiled to Java 1.8 bytecode,
8
+
and is not compatible with previous versions of Java. See
9
+
[Issue #331](https://github.com/hamcrest/JavaHamcrest/issues/331) and
10
+
[PR #411](https://github.com/hamcrest/JavaHamcrest/issues/411) for details. Developers who use Java 1.7 earlier can still
11
+
depend upon `hamcrest-2.2.jar`.
12
+
5
13
### Improvements
6
14
7
-
* Java 1.8 or newer ([Issue #331](https://github.com/hamcrest/JavaHamcrest/issues/331), [PR #411](https://github.com/hamcrest/JavaHamcrest/issues/411)).
* Build now checks for consistent use of spaces ([PR #217](https://github.com/hamcrest/JavaHamcrest/pull/217))
31
36
32
37
### Bugfixes
33
-
* Fix compatibility issue for development with Android D8 ([Issue #246](https://github.com/hamcrest/JavaHamcrest/issues/246))
38
+
* Fix compatibility issue for development with Android D8 ([Issue #246](https://github.com/hamcrest/JavaHamcrest/issues/246))
34
39
* Fix typo in license name ([Issue #247](https://github.com/hamcrest/JavaHamcrest/pull/247))
documentation for more information, and in particular,
54
-
[Upgrading from Hamcrest 1.x](http://hamcrest.org/JavaHamcrest/distributables.html#upgrading-from-hamcrest-1.x)
56
+
correctly upgrading transitive dependencies. Refer to the
documentation for more information, and in particular,
59
+
[Upgrading from Hamcrest 1.x](http://hamcrest.org/JavaHamcrest/distributables.html#upgrading-from-hamcrest-1.x)
55
60
*`org.hamcrest.Factory` has been removed. This was only used in old implementations
56
-
of the hamcrest build toolchain, and can safely be deleted from client code without
57
-
any effect.
61
+
of the hamcrest build toolchain, and can safely be deleted from client code without
62
+
any effect.
58
63
59
64
### Changes for 2.1
60
65
@@ -69,7 +74,7 @@ any effect.
69
74
* Fix for TypeSafeDiagnosingMatcher can't detect generic types for subclass
70
75
* Make Hamcrest an OSGI bundle
71
76
* Add StringRegularExpression matcher
72
-
* Fix StringContainsInOrder to detect if a repeated pattern is missing
77
+
* Fix StringContainsInOrder to detect if a repeated pattern is missing
73
78
* Add ArrayAsIterableMatcher
74
79
* Fix description for IsEqualIgnoringCase
75
80
* Removed deprecated methods from previous release
@@ -112,17 +117,17 @@ any effect.
112
117
* Added WithSamePropertyValuesAs matcher
113
118
* Moved any() from IsAnything to IsInstanceOf. It now checks the type of the matched object
114
119
* Moved MatcherAssert from integration to core
115
-
* Tightened up generics.
116
-
* Added IsMapContainingKey and IsMapContainingValue matchers to resolve a
120
+
* Tightened up generics.
121
+
* Added IsMapContainingKey and IsMapContainingValue matchers to resolve a
117
122
generics bug in hasKey and hasValue static factories previously declared
118
123
in IsMapContaining (ngd)
119
-
* Added IsCollectionOnlyContaining and IsArrayOnlyContaining which matches
120
-
collections (and arrays) where all match a given matcher. E.g onlyContains(3,4,5)
124
+
* Added IsCollectionOnlyContaining and IsArrayOnlyContaining which matches
125
+
collections (and arrays) where all match a given matcher. E.g onlyContains(3,4,5)
121
126
or onlyContains(lessThan(9))
122
127
* text module moved to separate project, hamcrest-text-patterns
123
128
* added more colection matchers: xContainingInAnyOrder, xContainingInOrder, xWithSize
124
129
* new text Matcher: IsEmptyString
125
-
* hamcrest generator uses method return type
130
+
* hamcrest generator uses method return type
126
131
127
132
## Version 1.1 (30th June 2007)
128
133
@@ -146,7 +151,7 @@ any effect.
146
151
* Generator recognizes @Factory methods that return subclass of Matcher.
Hamcrest is a library of matchers, which can be combined in to create flexible expressions of intent in tests.
12
13
They've also been used for other purposes.
13
14
14
-
Downloads
15
-
---------
16
-
You can obtain Hamcrest binaries from [maven central](https://search.maven.org/artifact/org.hamcrest/hamcrest). Learn more at [Hamcrest Distributables](http://hamcrest.org/JavaHamcrest/distributables).
15
+
The [tutorial]([Hamcrest Distributables](http://hamcrest.org/JavaHamcrest/tutorial)) is
16
+
good place to see how Hamcrest can be used.
17
+
18
+
## Downloads
17
19
18
-
Extensions
19
-
----------
20
+
You can obtain Hamcrest binaries from [maven central](https://search.maven.org/artifact/org.hamcrest/hamcrest). If you
21
+
are using build tooling such as Maven, Gradle, etc, you can simply add a dependency declaration to your build
22
+
definition. Learn more at [Hamcrest Distributables](http://hamcrest.org/JavaHamcrest/distributables).
20
23
21
-
For Hamcrest extension projects see the [hamcrest extensions page][].
24
+
## Documentation
22
25
23
-
Documentation
24
-
-------------
25
26
Documentation can be found on the [Hamcrest site](http://hamcrest.org).
26
27
27
-
Reporting Bugs/Issues
28
-
---------------------
29
-
If you find an issue with Java Hamcrest, please report it via the
0 commit comments