155156157158159160161162163164165
Userer u = new Userer(); u.setRequest( req ); u.setResponse( res ); u.setLocale( locale ); u.setProperties( new StringProperties() ); res.addCookie( (HttpResponseCookie) anyObject() ); res.addCookie( (HttpResponseCookie) anyObject() ); res.redirect( "/" ); replay( res );
62636465666768697071
public void testGetPopularTracksQuery() throws Exception { final Database db = new TestDatabase(); final Popularer b = new Popularer(); b.setProperties( new StringProperties() ); b.setDatabase( db ); b.getPopularTracks(); }
194195196197198199200201202203204
final Userer u = new Userer(); u.setUser( null ); u.setResponse( res ); u.setProperties( new StringProperties() ); u.requireLogin(); verify( res );