X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fauth-certman%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Fcm%2Fdata%2FJU_CertReq.java;fp=auth%2Fauth-certman%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Fcm%2Fdata%2FJU_CertReq.java;h=0000000000000000000000000000000000000000;hb=67bac2c1c44beab7752b39584553449e1c8a4e94;hp=f54e36e1e31aabb5d0979d2b218120f2804d8054;hpb=1eb6678db673759f0f95b1aedfcb4fe55c7152a2;p=aaf%2Fauthz.git diff --git a/auth/auth-certman/src/test/java/org/onap/aaf/auth/cm/data/JU_CertReq.java b/auth/auth-certman/src/test/java/org/onap/aaf/auth/cm/data/JU_CertReq.java deleted file mode 100644 index f54e36e1..00000000 --- a/auth/auth-certman/src/test/java/org/onap/aaf/auth/cm/data/JU_CertReq.java +++ /dev/null @@ -1,90 +0,0 @@ -/******************************************************************************* - * ============LICENSE_START==================================================== - * * org.onap.aaf - * * =========================================================================== - * * Copyright © 2017 AT&T Intellectual Property. All rights reserved. - * * =========================================================================== - * * Licensed under the Apache License, Version 2.0 (the "License"); - * * you may not use this file except in compliance with the License. - * * You may obtain a copy of the License at - * * - * * http://www.apache.org/licenses/LICENSE-2.0 - * * - * * Unless required by applicable law or agreed to in writing, software - * * distributed under the License is distributed on an "AS IS" BASIS, - * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * * See the License for the specific language governing permissions and - * * limitations under the License. - * * ============LICENSE_END==================================================== - * * - * * - ******************************************************************************/ -package org.onap.aaf.auth.cm.data; - -import static org.junit.Assert.*; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; - -import java.io.IOException; -import java.security.cert.X509Certificate; -import java.util.ArrayList; -import java.util.List; - -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.runners.MockitoJUnitRunner; -import org.onap.aaf.auth.cm.ca.CA; -import org.onap.aaf.auth.cm.ca.X509andChain; -import org.onap.aaf.auth.cm.cert.BCFactory; -import org.onap.aaf.auth.cm.cert.CSRMeta; -import org.onap.aaf.auth.cm.data.CertReq; -import org.onap.aaf.cadi.cm.CertException; -import org.onap.aaf.misc.env.Trans; - -@RunWith(MockitoJUnitRunner.class) -public class JU_CertReq { - - private static BCFactory bcFact; - - private static CSRMeta value; - - private static CertReq req; - - @BeforeClass - public static void setUp() { - bcFact = mock(BCFactory.class); - value = mock(CSRMeta.class); - req = mock(CertReq.class); - - } - -// @Test -// public void getCSRMeta() throws CertException, IOException { -// //req = new CertReq(); -// req.mechid = "1213"; -// List fqdnsas = new ArrayList(); -// fqdnsas.add("String1"); -// List emails = new ArrayList(); -// emails.add("pupleti@hotmail.com"); -// req.emails = emails; -// req.fqdns = fqdnsas; -// req.certAuthority = new CA(null, "testName", "ALL") { -// //TODO: Gabe [JUnit] REREVIEW -// @Override -// public X509andChain sign(Trans trans, CSRMeta csrmeta) throws IOException, CertException { -// -// return null; -// } -// }; -// req.sponsor = "asa@df.co"; -// assertNull(req.getCSRMeta()); -// } - - @Test //TODO: Temporary fix AAF-111 - public void netYetTested() { - fail("Tests not yet implemented"); - } -}