File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
modules/nginx/src/main/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11package org .testcontainers .containers ;
22
33import org .jetbrains .annotations .NotNull ;
4+ import org .testcontainers .containers .traits .LinkableContainer ;
45import org .testcontainers .utility .DockerImageName ;
56
67import java .net .MalformedURLException ;
1112 * @deprecated use {@link org.testcontainers.nginx.NginxContainer} instead.
1213 */
1314@ Deprecated
14- public class NginxContainer extends GenericContainer <NginxContainer > {
15+ public class NginxContainer <SELF extends NginxContainer <SELF >>
16+ extends GenericContainer <SELF >
17+ implements LinkableContainer {
1518
1619 private static final int NGINX_DEFAULT_PORT = 80 ;
1720
@@ -50,7 +53,7 @@ public void setCustomContent(String htmlContentPath) {
5053 }
5154
5255 @ Deprecated
53- public NginxContainer withCustomContent (String htmlContentPath ) {
56+ public SELF withCustomContent (String htmlContentPath ) {
5457 this .setCustomContent (htmlContentPath );
5558 return self ();
5659 }
You can’t perform that action at this time.
0 commit comments