1 /**
2 *
3 */
4 package org.melati.test;
5
6 import org.melati.Melati;
7 import org.melati.util.MelatiStringWriter;
8
9 import junit.framework.TestCase;
10
11 /**
12 * @author timp
13 * @since 20 Aug 2007
14 *
15 */
16 public class NotInSessionMelatiTest extends TestCase {
17
18 /**
19 * @param name
20 */
21 public NotInSessionMelatiTest(String name) {
22 super(name);
23 }
24
25 /**
26 * @see TestCase#setUp()
27 */
28 protected void setUp()
29 throws Exception {
30 super.setUp();
31 }
32
33 /**
34 * @see TestCase#tearDown()
35 */
36 protected void tearDown()
37 throws Exception {
38 super.tearDown();
39 }
40
41 /**
42 * We have no access token, so will get a null User.
43 * @see org.melati.Melati#getUser()
44 */
45 public void testGetUser() throws Exception {
46 Melati m = new Melati(null, new MelatiStringWriter());
47 assertNull(m.getUser());
48 }
49
50 }