Skip to content

Dz2#4

Open
NataliaYakubenko wants to merge 2 commits into
48x:masterfrom
NataliaYakubenko:master
Open

Dz2#4
NataliaYakubenko wants to merge 2 commits into
48x:masterfrom
NataliaYakubenko:master

Conversation

@NataliaYakubenko
Copy link
Copy Markdown

Жалкие попытки

Comment thread techno-atom-sample-2.iml
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Что-то ты не то закоммитила. Тесты где? :)

GroupGetUserGroupsV2Response groupGetUserGroupsV2Response = okApi.getGroupService().getUserGroupsV2();
LOGGER.info("Проверим, что в ответе есть группы");
Assert.assertEquals("Совпадает userId","561744237296",groupGetUserGroupsV2Response.getGroups().get(1).getUserId());
Assert.assertNotNull("Количество групп не 0",groupGetUserGroupsV2Response.getGroups().size());
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

size коллекции не может быть null.
Можно саму коллекцию проверить на то, что она не null

api.app.public.key=
api.app.secret.key=
api.app.public.key=CBAMKNHMEBABABABA
api.app.secret.key=1389F636CEE9435FAFDEA07F
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Секретные ключи от своего приложения лучше не палить :)

Assert.assertEquals("Совпадает userId","561744237296",groupGetUserGroupsV2Response.getGroups().get(1).getUserId());
Assert.assertNotNull("Количество групп не 0",groupGetUserGroupsV2Response.getGroups().size());
Assert.assertFalse("Пустой список групп",groupGetUserGroupsV2Response.getGroups().isEmpty());
Assert.assertTrue("Содержит инофрмацию Anchor",groupGetUserGroupsV2Response.getGroups().contains(groupGetUserGroupsV2Response.getAnchor()));
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Это очень странная проверка, смысл которой от меня скрыт. Ты проверяешь, что в списке групп есть служебный параметр anchor, которого в списке групп никогда не будет

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