-
Notifications
You must be signed in to change notification settings - Fork 226
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
First draft of migrations #52
Conversation
/** | ||
* Allure labels utils. | ||
*/ | ||
public final class Allure1Annotations { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it package-private
} | ||
|
||
@SuppressWarnings("PMD") | ||
private void doNothing() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this method for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's created to avoid findbug analysis issue.
I can replace it by anotation @SuppressFBWarnings("...") in com.google.code.findbugs:annotations:3.0.0
@@ -0,0 1,21 @@ | |||
package ru.yandex.qatools.allure.annotations; | |||
|
|||
import java.lang.annotation.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove wildcard imports
allure-java-migrations/build.gradle
Outdated
} | ||
|
||
configurations { | ||
provided |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use compileOnly instead
allure-java-migrations/build.gradle
Outdated
compile project(':allure-java-commons') | ||
|
||
compile 'org.aspectj:aspectjrt' | ||
compile 'org.allurefw:allure1-model' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we avoid using this dependency?
private final Object[] args; | ||
|
||
|
||
public Allure1Annotations(final Object target, final MethodSignature signature, final Object... args) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That feels like you need to split this utility class into two different classes - one that extracts data and the other that creates labels etc
/** | ||
* Some utils that help process steps and attachments names and titles. | ||
*/ | ||
public final class Allure1AspectUtils { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package private
|
||
private final Object[] args; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
No description provided.