/*
 * Copyright (c) 2016 Open Baton (http://www.openbaton.org)
 *
 * 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.
 *
 */

package org.openbaton.nfvo.core.test;

import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openbaton.nfvo.main.Application;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;

/** Created by lto on 20/04/15. */
@RunWith(SpringJUnit4ClassRunner.class)
@TestExecutionListeners({DependencyInjectionTestExecutionListener.class})
@ContextConfiguration(classes = {Application.class})
@TestPropertySource(properties = {"timezone = GMT", "port: 4242"})
public class IntegrationClassSuiteTest {

  @Autowired ConfigurableApplicationContext context;
  private Logger log = LoggerFactory.getLogger(this.getClass());

  @Test
  public void method1() {
    log.info("Here the context");
    for (String s : context.getBeanDefinitionNames()) {
      log.info(s);
    }
  }

  @After
  public void shutdown() {
    context.close();
  }
}

@@ -937,45 +937,39 @@
 ork.
-context.ConfigurableApplicationContex
+boot.test.context.SpringBootTes
 t;%0Ai
@@ -994,29 +994,24 @@
 amework.
-test.
 context.
 ContextC
@@ -1002,23 +1002,16 @@
 context.
-Context
 Configur
@@ -1011,20 +1011,37 @@
 onfigura
-tion
+bleApplicationContext
 ;%0Aimport
@@ -1207,35 +1207,24 @@
 unit4.Spring
-JUnit4Class
 Runner;%0Aimpo
@@ -1364,31 +1364,67 @@
 ring
-JUnit4ClassRunner
+Runner.class)%0A@SpringBootTest(classes = %7BApplication
 .class
+%7D
 )%0A@T
@@ -1499,61 +1499,8 @@
 s%7D)%0A
-@ContextConfiguration(classes = %7BApplication.class%7D)%0A
 @Tes

fix test with correct dependencies