-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests of cacctoos is not oop #588
Comments
@neonailol where will we get all those matchers? |
@neonailol sounds like a good idea, but we can't just replace all static calls with classes. Very soon somebody will add them back again. We have to create some validator, that will crash the build if |
@yegor256 there is plugin for maven forbidden-apis Sample configuration: add this profile to pom.xml <profile>
<id>forbiddenapis</id>
<build>
<plugins>
<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<version>2.4.1</version>
<configuration>
<failOnUnsupportedJava>false</failOnUnsupportedJava>
<signaturesFiles>
<signaturesFile>./src/test/resources/org/cactoos/forbidden.txt</signaturesFile>
</signaturesFiles>
</configuration>
<executions>
<execution>
<goals>
<goal>testCheck</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile> create file
run maven goal
plugin also includes some bundled signatures for jdk unsafe methods, but for this examaple i excluded them also it can match specific methods, link to example |
@neonailol btw, since |
@neonailol so let's start by forbidding those APIs and refactoring as necessary |
@0crat in |
@llorllale Job #588 is now in scope, role is |
Bug was reported, see §29: +15 point(s) just awarded to @neonailol/z |
The score of @neonailol/z -271 is too low and will be reset: +271 point(s) just awarded to @neonailol/z |
@llorllale I like the idea. @neonailol thanks! |
@llorllale shouldn't the maven configuration go into |
@victornoel we'll use this project as our guinea pig. If the idea holds, maybe it'll spread to other projects as well |
There is an unrecoverable failure on my side. Please, submit it here:
1.0-SNAPSHOT: Issue: #588, Comment: 390409117 |
@victornoel The impediment for #588 was registered successfully by @victornoel/z |
@victornoel Job #588 is already on hold |
@0crat status |
@victornoel This is what I know about this job, as in §32:
|
@neonailol 2 puzzles #902, #903 are still not solved. |
@neonailol #882 has been merged, this issue can now be closed |
@elenavolokhova/z please review this job completed by @victornoel/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed |
The job #588 is now out of scope |
@0crat quality good |
Quality review completed: +8 point(s) just awarded to @elenavolokhova/z |
@llorllale 0crat didn't award me my +35 points :) |
@0crat pay 35min @victornoel |
@llorllale The project is under-funded, you can't do it now, see §49 |
@llorllale I think we can try again? |
@0crat pay 35min @victornoel |
Direct payment from @llorllale/z: +35 point(s) just awarded to @victornoel/z |
Direct payment to @victornoel/z in #588, which is discouraged, see §49: -20 point(s) just awarded to @llorllale/z |
@llorllale thanks |
@neonailol 2 puzzles #902, #951 are still not solved; solved: #903. |
@neonailol the puzzle #951 is still not solved; solved: #902, #903. |
@neonailol the puzzle #1082 is still not solved; solved: #902, #903, #951. |
Right now tests use alot of static function from matchers,
Maybe they should be more oop style, like let's take this example
in oop style this would be
or this is overkill?
The text was updated successfully, but these errors were encountered: