Android Open Source - RoboBinding-album-sample Test Data

From Project

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.

Java Source Code

package org.robobinding.albumsample.activity;
// w w  w  .jav  a 2 s  .  c  o  m
import org.robobinding.albumsample.model.Album;

 * @author Cheng Wei
 * @version $Revision: 1.0 $
 * @since 1.0
public class TestData {
    public void setUp(AlbumStore albumStore) {
        albumStore.clear();"HQ", "Roy Harper"));"The Rough Dancer and Cyclical Night", "Astor Piazzola"));"The Black Light", "Calexico"));"Stormcock", "Roy Harper"));"Symphony No.5", "CBSO", "Sibelius"));"Greatest Hits", "Queen"));"Symphony No.5", "Beethoven", "Beethoven"));"Dire Straits", "Dire Straits"));"Like a Virgin", "Madonna"));

    private static Album createClassical(String title, String artist, String composer) {
        Album.Builder builder = initializeBuilder(title, artist);
        return builder.create();

    private static Album createNonClassical(String title, String artist) {
        Album.Builder builder = initializeBuilder(title, artist);
        return builder.create();

    private static Album.Builder initializeBuilder(String title, String artist) {
        Album.Builder builder = new Album.Builder();
        return builder;


Java Source Code List