Skip to content

Conversation

@mskmrv
Copy link
Owner

@mskmrv mskmrv commented Mar 25, 2019

No description provided.

Copy link

@OKrylov OKrylov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Все отлично, отсутствует только приоритет тестовых методов

}
}
if (beforeCount > 1 || afterCount > 1) {
throw new RuntimeException();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

при бросании своих исключений всегда описывайте причину ошибки, чтобы потом легче было понимать её

}
}

private static void startMethodWithBeforeSuiteAnnotation(Class clazz, Method[] methods) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 одинаковых метода, отличаются лишь типом аннотации. Лучше использовать один обобщенный метод, где обобщение - тип аннотации

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants