p.set( Constants.SERVER_BASE_PATH, "/foo" );
assertContains( track.getStreamUrl(p,user), "/foo/stream/" );
}
public void testGettingTracksForAPathReturnsThoseInThatFolderAndSubFolders() throws Exception {
TestDatabase db = new TestDatabase();
db.fixture( "tracksForPath" );
List<Track> tracks = Track.getTracksFromPath( db, "/music" );
assertEquals( 2, tracks.size() );
}