-
Notifications
You must be signed in to change notification settings - Fork 0
added Xunit #5
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
base: master
Are you sure you want to change the base?
added Xunit #5
Conversation
yurii-litvinov
left a comment
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.
Существует тысяча способов написать неправильный тест, и библиотека должна помогать программисту найти проблему, если он это сделает. У Вас же только ловится throwable и печатается стектрейс, и нет ни одного теста на плохие случаи (например, отсутствие конструктора без аргументов или наличие аргументов в тестовом методе).
| import java.util.Spliterator; | ||
| import java.util.stream.Collectors; | ||
| import java.util.stream.Stream; | ||
| import java.util.stream.StreamSupport; |
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.
Тут куча ненужных import-ов, говорит IDEA
| @@ -0,0 +1,62 @@ | |||
| package task.Tester; | |||
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.
Имя пакета какое-то неканоничное
| Class<?> clazz = classLoader.loadClass(name); | ||
| classes.add(clazz); | ||
| } catch (ClassNotFoundException e) { | ||
| // e.printStackTrace(); |
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.
Мм?
| import org.jetbrains.annotations.NotNull; | ||
| import task.annotations.*; | ||
|
|
||
| import javax.sound.midi.SysexMessage; |
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.
:)
| for (Method method : methods) { | ||
| for (Annotation annotation : method.getAnnotations()) { | ||
| Class<? extends Annotation> key = annotation.annotationType(); | ||
| if (annotatedMethods.get(annotation.annotationType()) != null) { |
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.
Это же как раз key?
No description provided.