Back to project page RoboBinding-album-sample.
The source code is released under:
Apache License
If you think the Android project RoboBinding-album-sample listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.robobinding.albumsampletest; /*from www . jav a 2s . c o m*/ import org.robobinding.albumsample.model.Album; /** * * @since 1.0 * @version $Revision: 1.0 $ * @author Robert Taylor * @author Cheng Wei */ public class ViewAlbumActivityTest extends AbstractAlbumsTest { public void testWhenViewAnNonClassicalAlbum_thenTheAlbumIsCorrectlyDisplayed() { Album album = setupNonClassicalAlbum(); navigateToAlbumListScreen(); viewAlbum(album); assertAlbumContentMatches(album); } private Album setupNonClassicalAlbum() { Album album = AlbumTestData.createNonClassicalAlbum(); return setupAlbum(album); } private void viewAlbum(Album album) { solo.clickOnText(album.getTitle()); } public void testWhenViewAnClassicalAlbum_thenTheAlbumIsCorrectlyDisplayed() { Album album = setupClassicalAlbum(); navigateToAlbumListScreen(); viewAlbum(album); assertAlbumContentMatches(album); } private Album setupClassicalAlbum() { Album album = AlbumTestData.createClassicalAlbum(); return setupAlbum(album); } }