PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/sigmah/src/test/java/org/sigmah/server/bootstrap/HostViewTest.java

http://sigma-h.googlecode.com/
Java | 30 lines | 18 code | 8 blank | 4 comment | 0 complexity | dbad19a03ef3f17e0df1f974f348b0bc MD5 | raw file
 1/*
 2 * All Sigmah code is released under the GNU General Public License v3
 3 * See COPYRIGHT.txt and LICENSE.txt.
 4 */
 5
 6package org.sigmah.server.bootstrap;
 7
 8import org.junit.Test;
 9import org.sigmah.server.bootstrap.model.HostPageModel;
10import org.sigmah.server.domain.Authentication;
11import org.sigmah.shared.domain.User;
12
13public class HostViewTest extends ViewTestCase {
14
15
16    @Test
17    public void templateProcesses() {
18
19        User user = new User();
20        user.setName("Alex");
21        user.setEmail("akbertram@gmail.com");
22        user.setLocale("fr");
23
24        Authentication auth = new Authentication(user);
25        auth.setId("XYZ12345");
26        auth.setUser(user);
27
28        assertProcessable(new HostPageModel(auth,  "http://www.activityinfo.org"));
29    }
30}