Skip to content

Add homework#1#1

Open
SychDan wants to merge 1 commit into48x:masterfrom
SychDan:Atom
Open

Add homework#1#1
SychDan wants to merge 1 commit into48x:masterfrom
SychDan:Atom

Conversation

@SychDan
Copy link

@SychDan SychDan commented Apr 15, 2018

Example assert and matchers

}


@Test(timeout = 10000)
Copy link
Owner

Choose a reason for hiding this comment

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

Зачем timeout?


@Test(timeout = 10000)
public void testHasValue(){
Assert.assertThat("String does not match",list.get(1),Matchers.<String>hasToString(equalTo("Hello")));
Copy link
Owner

Choose a reason for hiding this comment

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

Брать toString от String'а совсем не обязательно

/**
* Created by danny on 15.04.18 at 10:23.
**/

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