alexruiz / fest-util Goto Github PK
View Code? Open in Web Editor NEWFEST Common Utilities
Home Page: http://fest.easytesting.org
License: Apache License 2.0
FEST Common Utilities
Home Page: http://fest.easytesting.org
License: Apache License 2.0
Java 5 is EOL.
Also, clean up code: missing @OverRide annotations (Java 6 allows this annotation for implementing methods,) formatting and copyright year.
Returning Iterable is, IMHO, a bad idea. You cannot ask an Iterable about its size, and you cannot access elements by index.
The methods that I plan to revert are in the Properties class.
FEST-Util is supposed to contain utilities that are used by more than one FEST module. So far, only FEST-Assert needs it.
Hi, I noticed what looks like some build files in the fest-util JAR. Not sure if this is intentional or not, but I thought I'd let you know!
$ jar tf fest-util-1.1.6.jar
...
groverconfig185938829795527555/
groverconfig5391273288001679207/
groverconfig543396759037330044/
groverconfig8484026481059111655/
groverconfig185938829795527555/instrumentation.ser
groverconfig5391273288001679207/instrumentation.ser
groverconfig543396759037330044/instrumentation.ser
groverconfig8484026481059111655/instrumentation.ser
Also remove the overloaded methods that take one and two arguments. For the first case, java.util.Collections has the method SingletonList. For the second one, I don't see the value. We need to keep the API as small as possible.
It appears to me that the AWT dependencies have still not been removed from fest-util tagged 1.2.3 and 1.2.4, even though they were removed from the master. I believe that this is probably a mistake due to this discussion:
alexruiz/fest-assert-2.x#103
I checked the tags for both 1.2.3 (which fest-assert-core 2.0M8 depends on) and 1.2.4 (which fest-assert-core 2.0M9 depends on) and both still have a ToString class that references AWT:
https://github.com/alexruiz/fest-util/blob/fest-util-1.2.3/src/main/java/org/fest/util/ToString.java
https://github.com/alexruiz/fest-util/blob/fest-util-1.2.4/src/main/java/org/fest/util/ToString.java
This prevents people using Android from using Fest.
The name 'isEmpty' is deceiving.
Also remove overloaded versions that take one and two parameters.
Iterator<?> iterator = iterable.iterator();
while (iterator.hasNext()) {
size++;
}
The .next() is missing.
By the way: Why did you bake your own Iterables etc. utility classes? I would suggest to use the guava lib for these tasks.
Some of my code breaks now because of this violation of backwards compatibility. Collections.set() is used e.g. ObjectGroupAssert.containsOnly().
I can add it if you want :)
It is wasteful to create Iterators for Collections to check if a Collection is empty or to get its size.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.