use of com.jcabi.immutable.ArrayMap in project jcabi-github by jcabi.
the class RtPullsTest method iteratePulls.
/**
* RtPulls can iterate pulls.
* @throws Exception if there is any error
*/
@Test
public void iteratePulls() throws Exception {
final MkContainer container = new MkGrizzlyContainer().next(new MkAnswer.Simple(HttpURLConnection.HTTP_OK, Json.createArrayBuilder().add(pull("new-topic")).add(pull("Amazing new feature")).build().toString())).start();
final RtPulls pulls = new RtPulls(new ApacheRequest(container.home()), repo());
MatcherAssert.assertThat(pulls.iterate(new ArrayMap<String, String>()), Matchers.<Pull>iterableWithSize(2));
container.stop();
}
Aggregations