1 package org.apache.maven.wagon.authentication;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import junit.framework.TestCase;
23
24
25
26
27
28
29 public class AuthenticationInfoTest
30 extends TestCase
31 {
32 public AuthenticationInfoTest( final String name )
33 {
34 super( name );
35 }
36
37 public void setUp()
38 throws Exception
39 {
40 super.setUp();
41 }
42
43 public void tearDown()
44 throws Exception
45 {
46 super.tearDown();
47 }
48
49 public void testAuthenticationInfoProperties()
50 {
51 final AuthenticationInfo authenticationInfo = new AuthenticationInfo();
52
53 authenticationInfo.setUserName( "username" );
54
55 assertEquals( "username", authenticationInfo.getUserName() );
56
57 authenticationInfo.setPassword( "password" );
58
59 assertEquals( "password", authenticationInfo.getPassword() );
60
61 authenticationInfo.setPassphrase( "passphrase" );
62
63 assertEquals( "passphrase", authenticationInfo.getPassphrase() );
64
65 authenticationInfo.setPrivateKey( "privatekey" );
66
67 assertEquals( "privatekey", authenticationInfo.getPrivateKey() );
68 }
69 }