Skip to content

Commit b75f52c

Browse files
anandProDevrnorth
authored andcommitted
Adding field name to ExtensionConfigurationException message (#1488)
1 parent 24e6f11 commit b75f52c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
* discuss with the authors on an issue ticket prior to doing anything big
99
* follow the style, naming and structure conventions of the rest of the project
1010
* make commits atomic and easy to merge
11-
* verify all tests are passing. Build the project with `./gradlew check` to do this.
12-
**N.B.** Gradle's Build Cache is enabled by default, but you can add `--no-build-cache` flag to disable it.
11+
* verify all tests are passing. Build the project with `./gradlew check` to do this
12+
13+
**PS:** Make sure Docker is running locally and you have the lombok plugin installed in your IDE
14+
15+
**N.B.** Gradle's Build Cache is enabled by default, but you can add `--no-build-cache` flag to disable it.
16+

modules/junit-jupiter/src/main/java/org/testcontainers/junit/jupiter/TestcontainersExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static Predicate<Field> isContainer() {
9595
boolean isStartable = Startable.class.isAssignableFrom(field.getType());
9696

9797
if (!isStartable) {
98-
throw new ExtensionConfigurationException("Annotation is only supported for Startable types");
98+
throw new ExtensionConfigurationException(String.format("FieldName: %s does not implement Startable", field.getName()));
9999
}
100100
return true;
101101
}

0 commit comments

Comments
 (0)