2 * Copyright (c) 2018 Red Hat, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.neutron.e2etest;
10 import java.io.IOException;
11 import javax.inject.Inject;
12 import org.junit.ClassRule;
13 import org.junit.Rule;
14 import org.junit.Test;
15 import org.opendaylight.aaa.web.WebServer;
16 import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
17 import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule;
18 import org.opendaylight.infrautils.testutils.ClasspathHellDuplicatesCheckRule;
21 * Neutron "end to end" (component) test.
23 * <p>This is similar to the ITNeutronE2E, but does the same without OSGi and Karaf.
25 * @author Michael Vorburger.ch
27 public class NeutronE2ETest {
29 public static @ClassRule ClasspathHellDuplicatesCheckRule jHades = new ClasspathHellDuplicatesCheckRule();
31 public @Rule GuiceRule guice = new GuiceRule(NeutronTestWiring.class, AnnotationsModule.class);
33 public @Inject WebServer webServer;
36 public void test() throws IOException, InterruptedException {
37 NeutronAllTests.testNeutron(webServer.getBaseURL() + "/controller/nb/v2/neutron");