Improve Batches
[aaf/authz.git] / auth / auth-certman / src / test / java / org / onap / aaf / auth / cm / JU_AAF_CM.java
index e770fec..1bee730 100644 (file)
@@ -26,7 +26,6 @@ import static org.mockito.MockitoAnnotations.initMocks;
 
 import java.lang.reflect.Field;
 import java.lang.reflect.Modifier;
-import java.security.NoSuchAlgorithmException;
 import java.util.Properties;
 
 import javax.servlet.Filter;
@@ -86,7 +85,7 @@ public class JU_AAF_CM {
                        Properties props=new Properties();
                        Mockito.doReturn(props).when(access).getProperties();
                        props.setProperty("cm_ca.props", "test");
-                       Mockito.doReturn("test:2.1").when(access).getProperty(Config.AAF_COMPONENT, null);
+                       Mockito.doReturn("test:2.1").when(access).getProperty(Config.AAF_LOCATOR_ENTRIES, null);
                        Mockito.doReturn("test").when(access).getProperty("https.protocols","TLSv1.1,TLSv1.2");
                        Mockito.doReturn("test").when(env).getProperty("cm_ca.props.perm_type",null);
                        Mockito.doReturn("test").when(env).getProperty("cm_ca.props.baseSubject",null);
@@ -165,7 +164,7 @@ public class JU_AAF_CM {
                } catch (CadiException | LocatorException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
-                       assertTrue(e.getMessage().contains("NoSuchAlgorithmException"));
+                       assertTrue(e.getMessage().contains("Error initializing Context: TLS"));
                }
 //             assertTrue(obj instanceof CA);
        }
@@ -202,7 +201,7 @@ public class JU_AAF_CM {
                }
 
                @Override
-               protected TimeTaken newTimeTaken(String name, int flag) {
+               protected TimeTaken newTimeTaken(String name, int flag, Object ... values) {
                        // TODO Auto-generated method stub
                        TimeTaken tt= new TimeTaken("nameTest", Env.XML) {