Skip to content

Conversation

@maxkvant
Copy link
Owner

No description provided.

Copy link
Collaborator

@yurii-litvinov yurii-litvinov left a 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;
Copy link
Collaborator

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;
Copy link
Collaborator

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();
Copy link
Collaborator

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;
Copy link
Collaborator

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) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Это же как раз key?

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.

3 participants