We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b88d136 commit 8f312b4Copy full SHA for 8f312b4
core/src/main/java/org/testcontainers/containers/GenericContainer.java
@@ -1284,6 +1284,9 @@ public SELF withWorkingDirectory(String workDir) {
1284
*/
1285
@Override
1286
public SELF withCopyFileToContainer(MountableFile mountableFile, String containerPath) {
1287
+ if (copyToFileContainerPathMap.containsKey(mountableFile)) {
1288
+ throw new IllegalStateException("Path already configured for copy: " + mountableFile);
1289
+ }
1290
copyToFileContainerPathMap.put(mountableFile, containerPath);
1291
return self();
1292
}
0 commit comments