GNPy stub for PCE
[transportpce.git] / pce / src / test / java / org / opendaylight / transportpce / pce / gnpy / JerseyServer.java
1 /*
2  * Copyright © 2020 Orange Labs, 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
9 package org.opendaylight.transportpce.pce.gnpy;
10
11 import javax.ws.rs.core.Application;
12 import org.glassfish.jersey.server.ResourceConfig;
13 import org.glassfish.jersey.test.JerseyTest;
14
15
16 public class JerseyServer extends JerseyTest {
17
18     static {
19         //we must hardcode port because it's hardcoded in ConnectToGnpyServer
20         System.setProperty("jersey.config.test.container.port", "8008");
21     }
22
23     @Override
24     protected Application configure() {
25         return new ResourceConfig(GnpyStub.class);
26     }
27 }