1 package org.astrogrid.applications.manager;
2
3 /***
4 * An implementation of
5 * {org.astrogrid.applications.manager.AppAuthorityIDResolver}
6 * for testing. This class sets a fixed ID at construction.
7 *
8 * @author Guy Rixon
9 */
10 public class TestAppAuthorityIDResolver implements AppAuthorityIDResolver{
11
12 /***
13 * The authority ID, set at construction.
14 */
15 private String authorityID;
16
17 /***
18 * Creates a new instance of TestAppAuthorityIDResolver
19 */
20 public TestAppAuthorityIDResolver(String id) {
21 this.authorityID = id;
22 }
23
24 /***
25 * Obtains the authority ID set at construction.
26 *
27 * @return The ID
28 */
29 public String getAuthorityID() {
30 return this.authorityID;
31 }
32 }