PageRenderTime 19ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://sigma-h.googlecode.com/
Java | 33 lines | 20 code | 9 blank | 4 comment | 0 complexity | dd3580e309e3bddfbc87d261dbf1cbfe 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.ConfirmInvitePageModel;
10import org.sigmah.server.bootstrap.model.InvalidInvitePageModel;
11import org.sigmah.shared.domain.User;
12
13public class ConfirmInviteViewTest extends ViewTestCase {
14
15    @Test
16    public void templateProcesses() {
17        User user = new User();
18        user.setName("Alex");
19        user.setEmail("alex@bertram");
20        user.setChangePasswordKey("ABC12345");
21        user.setLocale("en");
22
23        assertProcessable(new ConfirmInvitePageModel(user));
24    }
25
26    @Test
27    public void invalidInvitePage() {
28
29        assertProcessable(new InvalidInvitePageModel());
30
31    }
32
33}