Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit da866f0

Browse files
Marek PotociarGerrit Code Review
authored andcommitted
Merge "J-614 Hotfix - skipping problematic integration test"
2 parents 3784563 + 60acb6b commit da866f0

File tree

3 files changed

+39
-28
lines changed

3 files changed

+39
-28
lines changed

tests/integration/jersey-2136/pom.xml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
55
6-
Copyright (c) 2013-2015 Oracle and/or its affiliates. All rights reserved.
6+
Copyright (c) 2013-2016 Oracle and/or its affiliates. All rights reserved.
77
88
The contents of this file are subject to the terms of either the GNU
99
General Public License Version 2 only ("GPL") or the Common Development
@@ -79,35 +79,40 @@
7979
<groupId>org.apache.maven.plugins</groupId>
8080
<artifactId>maven-compiler-plugin</artifactId>
8181
</plugin>
82+
83+
<!-- TODO: The test was skipped, including the hooked app-engine start && stop. The app-engine process was sometimes
84+
left hanging after the end of the build and kept blocking the port. -->
85+
8286
<plugin>
8387
<groupId>org.apache.maven.plugins</groupId>
8488
<artifactId>maven-failsafe-plugin</artifactId>
8589
</plugin>
86-
<plugin>
87-
<groupId>com.google.appengine</groupId>
88-
<artifactId>appengine-maven-plugin</artifactId>
89-
<version>${gae.version}</version>
90-
<configuration>
91-
<port>${jersey.config.test.container.port}</port>
92-
<offline>true</offline>
93-
</configuration>
94-
<executions>
95-
<execution>
96-
<id>start-gae</id>
97-
<phase>pre-integration-test</phase>
98-
<goals>
99-
<goal>devserver_start</goal>
100-
</goals>
101-
</execution>
102-
<execution>
103-
<id>stop-gae</id>
104-
<phase>post-integration-test</phase>
105-
<goals>
106-
<goal>devserver_stop</goal>
107-
</goals>
108-
</execution>
109-
</executions>
110-
</plugin>
90+
<!--<plugin>-->
91+
<!--<groupId>com.google.appengine</groupId>-->
92+
<!--<artifactId>appengine-maven-plugin</artifactId>-->
93+
<!--<version>${gae.version}</version>-->
94+
<!--<configuration>-->
95+
96+
<!--<port>${jersey.config.test.container.port}</port>-->
97+
<!--<offline>true</offline>-->
98+
<!--</configuration>-->
99+
<!--<executions>-->
100+
<!--<execution>-->
101+
<!--<id>start-gae</id>-->
102+
<!--<phase>pre-integration-test</phase>-->
103+
<!--<goals>-->
104+
<!--<goal>devserver_start</goal>-->
105+
<!--</goals>-->
106+
<!--</execution>-->
107+
<!--<execution>-->
108+
<!--<id>stop-gae</id>-->
109+
<!--<phase>post-integration-test</phase>-->
110+
<!--<goals>-->
111+
<!--<goal>devserver_stop</goal>-->
112+
<!--</goals>-->
113+
<!--</execution>-->
114+
<!--</executions>-->
115+
<!--</plugin>-->
111116
</plugins>
112117
</build>
113118

tests/integration/jersey-2136/src/main/java/org/glassfish/jersey/tests/integration/jersey2136/Jersey2136.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2013-2015 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2013-2016 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development

tests/integration/jersey-2136/src/test/java/org/glassfish/jersey/tests/integration/jersey2136/Jersey2136ITCase.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33
*
4-
* Copyright (c) 2013-2015 Oracle and/or its affiliates. All rights reserved.
4+
* Copyright (c) 2013-2016 Oracle and/or its affiliates. All rights reserved.
55
*
66
* The contents of this file are subject to the terms of either the GNU
77
* General Public License Version 2 only ("GPL") or the Common Development
@@ -48,6 +48,7 @@
4848
import org.glassfish.jersey.test.spi.TestContainerException;
4949
import org.glassfish.jersey.test.spi.TestContainerFactory;
5050

51+
import org.junit.Ignore;
5152
import org.junit.Test;
5253
import static org.hamcrest.CoreMatchers.equalTo;
5354
import static org.hamcrest.MatcherAssert.assertThat;
@@ -69,6 +70,11 @@ protected TestContainerFactory getTestContainerFactory() throws TestContainerExc
6970
return new ExternalTestContainerFactory();
7071
}
7172

73+
// This test requires app engine to be launched by a maven plugin,
74+
// which was causing intermittent problems with hanging app engine process.
75+
// After un-ignoring this test, make sure to uncomment the app engine plugin
76+
// execution in the project's pom.xml
77+
@Ignore
7278
@Test
7379
public void testGet() throws Exception {
7480
final Response response = target().request().get();

0 commit comments

Comments
 (0)