5050import org .testcontainers .containers .GenericContainer ;
5151import org .testcontainers .containers .Network ;
5252import org .testcontainers .containers .ToxiproxyContainer ;
53- import org .testcontainers .shaded .org .apache .commons .lang3 .NotImplementedException ;
5453import software .amazon .awssdk .services .rds .model .BlueGreenDeployment ;
5554import software .amazon .awssdk .services .rds .model .DBCluster ;
5655import software .amazon .awssdk .services .rds .model .DBInstance ;
@@ -149,7 +148,7 @@ public static TestEnvironment build(TestEnvironmentRequest request) throws IOExc
149148 break ;
150149
151150 default :
152- throw new NotImplementedException (request .getDatabaseEngineDeployment ().toString ());
151+ throw new UnsupportedOperationException (request .getDatabaseEngineDeployment ().toString ());
153152 }
154153
155154 if (request .getFeatures ().contains (TestEnvironmentFeatures .NETWORK_OUTAGES_ENABLED )) {
@@ -272,7 +271,7 @@ private static TestEnvironment createAuroraOrMultiAzEnvironment(TestEnvironmentR
272271 configureIamAccess (env );
273272 break ;
274273 default :
275- throw new NotImplementedException (request .getDatabaseEngineDeployment ().toString ());
274+ throw new UnsupportedOperationException (request .getDatabaseEngineDeployment ().toString ());
276275 }
277276
278277 return env ;
@@ -404,7 +403,7 @@ private static void createDatabaseContainers(TestEnvironment env) {
404403 }
405404 break ;
406405 default :
407- throw new NotImplementedException (env .info .getRequest ().getDatabaseInstances ().toString ());
406+ throw new UnsupportedOperationException (env .info .getRequest ().getDatabaseInstances ().toString ());
408407 }
409408
410409 switch (env .info .getRequest ().getDatabaseEngine ()) {
@@ -453,7 +452,7 @@ private static void createDatabaseContainers(TestEnvironment env) {
453452 break ;
454453
455454 default :
456- throw new NotImplementedException (env .info .getRequest ().getDatabaseEngine ().toString ());
455+ throw new UnsupportedOperationException (env .info .getRequest ().getDatabaseEngine ().toString ());
457456 }
458457 }
459458
@@ -489,7 +488,7 @@ private static void createDbCluster(TestEnvironment env) {
489488 createDbCluster (env , env .numOfInstances );
490489 break ;
491490 default :
492- throw new NotImplementedException (env .info .getRequest ().getDatabaseEngine ().toString ());
491+ throw new UnsupportedOperationException (env .info .getRequest ().getDatabaseEngine ().toString ());
493492 }
494493 }
495494
@@ -852,7 +851,7 @@ private static String getDbEngine(TestEnvironmentRequest request) {
852851 case RDS_MULTI_AZ_INSTANCE :
853852 return getRdsEngine (request );
854853 default :
855- throw new NotImplementedException (request .getDatabaseEngineDeployment ().toString ());
854+ throw new UnsupportedOperationException (request .getDatabaseEngineDeployment ().toString ());
856855 }
857856 }
858857
@@ -863,7 +862,7 @@ private static String getAuroraDbEngine(TestEnvironmentRequest request) {
863862 case PG :
864863 return "aurora-postgresql" ;
865864 default :
866- throw new NotImplementedException (request .getDatabaseEngine ().toString ());
865+ throw new UnsupportedOperationException (request .getDatabaseEngine ().toString ());
867866 }
868867 }
869868
@@ -874,7 +873,7 @@ private static String getRdsEngine(TestEnvironmentRequest request) {
874873 case PG :
875874 return "postgres" ;
876875 default :
877- throw new NotImplementedException (request .getDatabaseEngine ().toString ());
876+ throw new UnsupportedOperationException (request .getDatabaseEngine ().toString ());
878877 }
879878 }
880879
@@ -889,7 +888,7 @@ private static String getDbEngineVersion(String engineName, TestEnvironment env)
889888 systemPropertyVersion = config .pgVersion ;
890889 break ;
891890 default :
892- throw new NotImplementedException (request .getDatabaseEngine ().toString ());
891+ throw new UnsupportedOperationException (request .getDatabaseEngine ().toString ());
893892 }
894893 return findEngineVersion (env , engineName , systemPropertyVersion );
895894 }
@@ -919,7 +918,7 @@ private static int getPort(TestEnvironmentRequest request) {
919918 case PG :
920919 return 5432 ;
921920 default :
922- throw new NotImplementedException (request .getDatabaseEngine ().toString ());
921+ throw new UnsupportedOperationException (request .getDatabaseEngine ().toString ());
923922 }
924923 }
925924
@@ -1148,7 +1147,7 @@ private static String getContainerBaseImageName(TestEnvironmentRequest request)
11481147 case PYTHON_3_13 :
11491148 return "python:3.13" ;
11501149 default :
1151- throw new NotImplementedException (request .getTargetPythonVersion ().toString ());
1150+ throw new UnsupportedOperationException (request .getTargetPythonVersion ().toString ());
11521151 }
11531152 }
11541153
@@ -1315,7 +1314,7 @@ public void close() throws Exception {
13151314 // do nothing
13161315 break ;
13171316 default :
1318- throw new NotImplementedException (this .info .getRequest ().getDatabaseEngineDeployment ().toString ());
1317+ throw new UnsupportedOperationException (this .info .getRequest ().getDatabaseEngineDeployment ().toString ());
13191318 }
13201319 }
13211320
@@ -1490,7 +1489,7 @@ private static void preCreateEnvironment(int currentEnvIndex) {
14901489 configureIamAccess (env );
14911490 break ;
14921491 default :
1493- throw new NotImplementedException (env .info .getRequest ().getDatabaseEngineDeployment ().toString ());
1492+ throw new UnsupportedOperationException (env .info .getRequest ().getDatabaseEngineDeployment ().toString ());
14941493 }
14951494 return env ;
14961495
0 commit comments