Returns the source file appears in error messages based on #getIncludeStackTraceOption() value.
(Class<?> clazz)
| 67 | * #getIncludeStackTraceOption()} value. |
| 68 | */ |
| 69 | public static String getDeclaringSourcePart(Class<?> clazz) { |
| 70 | if (getIncludeStackTraceOption() == IncludeStackTraceOption.OFF) { |
| 71 | return ".configure(Unknown Source"; |
| 72 | } |
| 73 | return ".configure(" + clazz.getSimpleName() + ".java:"; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Returns true if {@link #getIncludeStackTraceOption()} returns {@link |
no test coverage detected