Skip to content

DZ1#7

Open
NataliaYakubenko wants to merge 1 commit into48x:masterfrom
NataliaYakubenko:feature
Open

DZ1#7
NataliaYakubenko wants to merge 1 commit into48x:masterfrom
NataliaYakubenko:feature

Conversation

@NataliaYakubenko
Copy link

No description provided.

<module name="techno-atom-sample-1" target="1.5" />
</bytecodeTargetLevel>
</component>
</project> No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

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

Про файлы, которые генерирует IDE, я уже говорил на занятии. Их в репозиторий добавлять не надо.

final List<Integer> Result = ClassToBeTested.generateIntSequence(0, 10);
Assert.assertThat(
"The length of sequence isn't equal to 10",
Result, hasSize(equalTo(10)));
Copy link
Owner

Choose a reason for hiding this comment

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

Вот такой проверки недостаточно. Мало проверить, что количество элементов в результирующем списке верное. Надо еще и само содержание списка проверить. Вдруг там неправильно сгенерированная последовательность

}
}
@Test
public void testCorrectString() throws Exception {
Copy link
Owner

Choose a reason for hiding this comment

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

Названия большинства тестов не отображают суть теста

public void testSumIsGreaterMaxIntegerFail() {

try {
ClassToBeTested.generateIntSequence(2147483647, 100);Assert.fail();
Copy link
Owner

Choose a reason for hiding this comment

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

Переход на новую строку забыла

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