AT&T 2.0.19 Code drop, stage 3
[aaf/authz.git] / auth / auth-core / src / test / java / org / onap / aaf / auth / common / test / JU_Define.java
1 /*******************************************************************************
2  * ============LICENSE_START====================================================
3  * * org.onap.aaf
4  * * ===========================================================================
5  * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  * * ===========================================================================
7  * * Licensed under the Apache License, Version 2.0 (the "License");
8  * * you may not use this file except in compliance with the License.
9  * * You may obtain a copy of the License at
10  * * 
11  *  *      http://www.apache.org/licenses/LICENSE-2.0
12  * * 
13  *  * Unless required by applicable law or agreed to in writing, software
14  * * distributed under the License is distributed on an "AS IS" BASIS,
15  * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * * See the License for the specific language governing permissions and
17  * * limitations under the License.
18  * * ============LICENSE_END====================================================
19  * *
20  * *
21  ******************************************************************************/
22 package org.onap.aaf.auth.common.test;
23
24 import org.junit.Before;
25 import org.junit.Test;
26 import org.junit.runner.RunWith;
27 import org.mockito.Mock;
28 import org.onap.aaf.cadi.CadiException;
29 import org.onap.aaf.cadi.config.Config;
30 import org.onap.aaf.misc.env.Env;
31 import static org.junit.Assert.*;
32
33 //import com.att.authz.common.Define;
34 import org.powermock.api.mockito.PowerMockito;
35 import org.powermock.modules.junit4.PowerMockRunner;
36
37 @RunWith(PowerMockRunner.class)
38 //TODO: Gabe [JUnit] class path/ class Define is missing, com.att.authz.common also missing
39 public class JU_Define {
40         //Define define;
41         public static String ROOT_NS="NS.Not.Set";
42         public static String ROOT_COMPANY=ROOT_NS;
43         
44         @Mock 
45         Env envMock;
46         
47         
48 //      @Before
49 //      public void setUp(){
50 //              define = new Define();
51 //      }
52 //
53 //      @Test
54 //      public void testSet() throws CadiException {
55 //              PowerMockito.when(envMock.getProperty(Config.AAF_ROOT_NS)).thenReturn("aaf_root_ns");
56 //              PowerMockito.when(envMock.getProperty(Config.AAF_ROOT_COMPANY)).thenReturn("aaf_root_company");
57 //              //PowerMockito.when(envMock.init().log()).thenReturn(null);
58 //              //PowerMockito.doNothing().doThrow(new CadiException()).when(envMock).init().log(Matchers.anyString());
59 //              //define.set(envMock);
60 //      }
61
62         @Test
63         public void netYetTested() {
64                 fail("Tests not yet implemented");
65         }
66 }