Project

General

Profile

Download (1.37 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.cdm.model.common;
12

    
13
import static org.junit.Assert.*;
14

    
15
import org.junit.Before;
16
import org.junit.Test;
17

    
18
/**
19
 * @author n.hoffmann
20
 * @created Mar 9, 2011
21
 * @version 1.0
22
 */
23
public class GrantedAuthorityImplTest {
24

    
25
	private GrantedAuthorityImpl grantedAuthority;
26
	private String authority;
27
	
28
	/**
29
	 * @throws java.lang.Exception
30
	 */
31
	@Before
32
	public void setUp() throws Exception {
33
		grantedAuthority = GrantedAuthorityImpl.NewInstance();
34
		authority = "";
35
	}
36

    
37
	/**
38
	 * Test method for {@link eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl#NewInstance()}.
39
	 */
40
	@Test
41
	public final void testNewInstance() {
42
		assertNotNull(grantedAuthority);
43
	}
44

    
45
	/**
46
	 * Test method for {@link eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl#getAuthority()}.
47
	 */
48
	@Test
49
	public final void testGetAuthority() {
50
		grantedAuthority.setAuthority(authority);
51
		
52
		assertEquals(authority, grantedAuthority.getAuthority());
53
	}
54

    
55
	/**
56
	 * Test method for {@link eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl#compareTo(java.lang.Object)}.
57
	 */
58
	@Test
59
	public final void testCompareTo() {
60
		// not implemented yet
61
	}
62

    
63
}
(6-6/17)