Restore duplicate check
[neutron.git] / integration / test-standalone / src / test / java / org / opendaylight / neutron / e2etest / NeutronE2ETest.java
1 /*
2  * Copyright (c) 2018 Red Hat, Inc. and others. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.neutron.e2etest;
9
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;
19
20 /**
21  * Neutron "end to end" (component) test.
22  *
23  * <p>This is similar to the ITNeutronE2E, but does the same without OSGi and Karaf.
24  *
25  * @author Michael Vorburger.ch
26  */
27 public class NeutronE2ETest {
28
29     public static @ClassRule ClasspathHellDuplicatesCheckRule jHades = new ClasspathHellDuplicatesCheckRule();
30
31     public @Rule GuiceRule guice = new GuiceRule(NeutronTestWiring.class, AnnotationsModule.class);
32
33     public @Inject WebServer webServer;
34
35     @Test
36     public void test() throws IOException, InterruptedException {
37         NeutronAllTests.testNeutron(webServer.getBaseURL() + "/controller/nb/v2/neutron");
38     }
39
40 }