Skip to content

Commit

Permalink
Removed ALLURE_DESCRIPTIONS_FOLDER from the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
rPraml committed Oct 19, 2023
1 parent 859a1bd commit 7110200
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
@SupportedAnnotationTypes("io.qameta.allure.Description")
public class JavaDocDescriptionsProcessor extends AbstractProcessor {

private static final String ALLURE_DESCRIPTIONS_FOLDER = "META-INF/allureDescriptions/";

private Filer filer;
private Elements elementUtils;
private Messager messager;
Expand Down Expand Up @@ -87,7 +89,7 @@ public boolean process(final Set<? extends TypeElement> annotations, final Round
final String hash = generateMethodSignatureHash(el.getEnclosingElement().toString(), name, typeParams);
try {
final FileObject file = filer.createResource(StandardLocation.CLASS_OUTPUT, "",
ResultsUtils.ALLURE_DESCRIPTIONS_FOLDER + hash);
ALLURE_DESCRIPTIONS_FOLDER + hash);
try (Writer writer = file.openWriter()) {
writer.write(docs);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
* @author Egor Borisov [email protected]
*/
class ProcessDescriptionsTest {

private static final String ALLURE_DESCRIPTIONS_FOLDER = "META-INF/allureDescriptions/";

@Test
void captureDescriptionTest() {
final String expectedMethodSignatureHash = "4e7f896021ef2fce7c1deb7f5b9e38fb";
Expand All @@ -57,7 +60,7 @@ void captureDescriptionTest() {
assertThat(compilation).generatedFile(
StandardLocation.CLASS_OUTPUT,
"",
ResultsUtils.ALLURE_DESCRIPTIONS_FOLDER + expectedMethodSignatureHash
ALLURE_DESCRIPTIONS_FOLDER + expectedMethodSignatureHash
);
}

Expand Down Expand Up @@ -120,7 +123,7 @@ void captureDescriptionParametrizedTestWithGenericParameterTest() {
assertThat(compilation).generatedFile(
StandardLocation.CLASS_OUTPUT,
"",
ResultsUtils.ALLURE_DESCRIPTIONS_FOLDER + expectedMethodSignatureHash
ALLURE_DESCRIPTIONS_FOLDER + expectedMethodSignatureHash
);
}

Expand Down Expand Up @@ -153,7 +156,7 @@ void captureDescriptionParametrizedTestWithPrimitivesParameterTest() {
assertThat(compilation).generatedFile(
StandardLocation.CLASS_OUTPUT,
"",
ResultsUtils.ALLURE_DESCRIPTIONS_FOLDER + expectedMethodSignatureHash
ALLURE_DESCRIPTIONS_FOLDER + expectedMethodSignatureHash
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public final class ResultsUtils {
public static final String PACKAGE_LABEL_NAME = "package";
public static final String FRAMEWORK_LABEL_NAME = "framework";
public static final String LANGUAGE_LABEL_NAME = "language";
public static final String ALLURE_DESCRIPTIONS_FOLDER = "META-INF/allureDescriptions/";

private static final Logger LOGGER = LoggerFactory.getLogger(ResultsUtils.class);
private static final String ALLURE_DESCRIPTIONS_FOLDER = "META-INF/allureDescriptions/";
private static final String MD_5 = "MD5";

private static String cachedHost;
Expand Down

0 comments on commit 7110200

Please sign in to comment.