package org.onap.aai.esr;
import static org.junit.Assert.assertEquals;
-
import org.junit.Test;
import org.onap.aai.esr.common.Config;
-import org.onap.aai.esr.common.HibernateSession;
public class ExtsysAppTest {
- static {
- ExtsysAppConfiguration configuration = new ExtsysAppConfiguration();
- Config.setConfigration(configuration);
- }
-
- @Test
- public void getName() throws Exception {
- ExtsysApp app = new ExtsysApp();
- assertEquals(app.getName(),"ONAP-ESR");
- }
+ static {
+ ExtsysAppConfiguration configuration = new ExtsysAppConfiguration();
+ Config.setConfigration(configuration);
+ }
- public static void main(String[] args) throws Exception {
- String filePath = HibernateSession.class.getResource("/").toURI().getPath()+"extsys.yml";
- new ExtsysApp().run(new String[]{"server", filePath});
- }
+ @Test
+ public void getName() throws Exception {
+ ExtsysApp app = new ExtsysApp();
+ assertEquals(app.getName(), "ONAP-ESR");
+ }
}