Comments (7)
@llorllale/z please, pay attention to this issue
from cactoos-matchers.
@dgroup what do you mean "extend"? You want to create a new class that extends hamcrest's AllOf
?
from cactoos-matchers.
@llorllale, yes
/**
* ...
*/
public final class AllOf<T> extends org.hamcrest.core.AllOf<T> {
/**
* ...
*/
public AllOf(final Matcher<? super T> ... matchers) {
super(new IterableOf<>(matchers));
}
}
Also we can write the own implementation of Matcher
, but i think it will be overengineering for this case.
from cactoos-matchers.
@dgroup I think it would be better to provide a PR for hamcrest.
from cactoos-matchers.
@llorllale , initially the issue raised because i through
- They already give this feature as
Matchers.allOf(...)
and available withhamcrest-all
. - They promoting the usage of matchers through static methods annotated as
@org.hamcrest.Factory
, thus it already implemented, no need to add it to thehamcrest-core
- There were no any releases since 2015 in maven central, so it will take months in order to receive such simple feature, however, i've checked today, and found that recently the've released the
https://mvnrepository.com/artifact/org.hamcrest/hamcrest/2.1
<dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest</artifactId> <version>2.1</version> </dependency>
Will try.
from cactoos-matchers.
Job gh:llorllale/cactoos-matchers#73
is not assigned, can't get performer
from cactoos-matchers.
This job is not in scope
from cactoos-matchers.
Related Issues (20)
- Removing all constructors except the last one in Matcher class creates a lot of copied code HOT 3
- TextIs should test asString(), toString(), equals() and hashCode() HOT 7
- pom.xml:162-169: This plugin execution was disabled... HOT 27
- Simplify TextMatcher to take a Matcher<String> HOT 5
- IsNumber matcher HOT 9
- Make Mismatches platform independent HOT 6
- Release 0.22 HOT 3
- Consistant naming of matcher objects HOT 10
- Upgrade to Hamcrest 2.2 HOT 7
- New matcher is required to detect that file exists HOT 5
- pom.xml:162-169: This plugin execution was disabled... HOT 12
- HasContent.java:58-60: We need an InputMatcher similar to... HOT 2
- IsNumber.java:51-52: Introduce a ComparatorMatcher that... HOT 6
- ThrowsTest.java:43-45: Replace all the tests in this file... HOT 3
- New matchers to compare easily a number with another one HOT 7
- New matchers to test emptyness of a list or iterable HOT 3
- `HasValue` calls `Scalar::value` twice on mismatch HOT 5
- Exploit generic variance to improve use experience HOT 4
- Matcher `IsBytes` for `org.cactoos.Bytes` objects
- Assertion.affirm should take the object under test HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cactoos-matchers.