JujaLabs / docs

JuJa Platform Docs
4 stars 14 forks source link

Add info about markers in tests in workflow doc #74

Open danilkuznetsov opened 6 years ago

danilkuznetsov commented 6 years ago

Add info about markers in section TDD //given //when //then

about when and how right use this markers.

right example

//given Iterator i = mock(Iterator.class);
given(i.next()).thenReturn("Hello").thenReturn("World");
//when
String result = i.next()+" "+i.next();
//then
assertEquals("Hello World", result);