Package br.com.caelum.vraptor.util.test

Examples of br.com.caelum.vraptor.util.test.MockHttpResult


        is("<list><music><id>1</id><title>Some Music</title><description>Some description</description><type>ROCK</type></music></list>"));
  }
 
  @Test
  public void shouldShowAllMusicsAsHTTP() {
    MockHttpResult mockHttpResult = new MockHttpResult();
    controller = new MusicController(dao, userInfo, mockHttpResult, validator, musics, userDao);
    when(dao.listAll()).thenReturn(Arrays.asList(music));
    controller.showAllMusicsAsHTTP();
    assertThat(mockHttpResult.getBody(), is("<p class=\"content\">"+ Arrays.asList(music).toString()+"</p>"));
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.util.test.MockHttpResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.