Project

General

Profile

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

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

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

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

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

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

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

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

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

    
62
}
(6-6/17)