Update rest-client with additional operations
[aai/rest-client.git] / src / test / java / org / openecomp / restclient / enums / RestAuthenticationModeTest.java
1 package org.openecomp.restclient.enums;
2
3 import static org.junit.Assert.assertEquals;
4
5 import org.junit.Before;
6 import org.junit.Test;
7
8 public class RestAuthenticationModeTest {
9
10   /**
11    * Test case initialization
12    * 
13    * @throws Exception the exception
14    */
15   @Before
16   public void init() throws Exception {
17   }
18   
19   @Test
20   public void validateEnumMappings() {
21     
22     assertEquals(RestAuthenticationMode.getRestAuthenticationMode(null), RestAuthenticationMode.UNKNOWN_MODE);
23     assertEquals(RestAuthenticationMode.getRestAuthenticationMode("OAuth"), RestAuthenticationMode.UNKNOWN_MODE);
24     assertEquals(RestAuthenticationMode.getRestAuthenticationMode("SSL_BASIC"), RestAuthenticationMode.SSL_BASIC);
25     assertEquals(RestAuthenticationMode.getRestAuthenticationMode("SSL_CERT"), RestAuthenticationMode.SSL_CERT);
26     assertEquals(RestAuthenticationMode.getRestAuthenticationMode("HTTP_NOAUTH"), RestAuthenticationMode.HTTP_NOAUTH);
27     
28     assertEquals(RestAuthenticationMode.SSL_BASIC.getAuthenticationModeLabel(),"SSL_BASIC");
29     
30     
31   }
32     
33 }