Commit 2de4941d authored by Trisha Gee's avatar Trisha Gee
Browse files

Making a mock file that uses the Collections Factory method to return a list (much better!)

parent f7f61e12
Loading
Loading
Loading
Loading
+13 −0
Changes for src/main/java/MockSongFile.java: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
import java.util.List;

class MockSongFile {

  public List<SongV3> getSongsV3() {
    return List.of(new SongV3("somersault", "zero 7", "50"),
                   new SongV3("cassidy", "grateful dead", "65"),
                   new SongV3("$10", "hitchhiker", "80"),
                   new SongV3("havana", "cabello", "60"),
                   new SongV3("Cassidy", "grateful dead", "65"),
                   new SongV3("50 ways", "simon", "70"));
  }
}
 No newline at end of file