2024-08-18 21:15:48 +02:00
|
|
|
package com.commafeed;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
|
|
import org.junit.jupiter.api.Assertions;
|
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
|
|
|
|
class CommaFeedConfigurationTest {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void verifyAsciiDocIsUpToDate() throws IOException {
|
|
|
|
|
String versionedDocumentationFile = FileUtils.readFileToString(new File("doc/commafeed.adoc"), StandardCharsets.UTF_8);
|
2024-08-28 18:40:47 +02:00
|
|
|
String generatedDocumentationFile = FileUtils
|
|
|
|
|
.readFileToString(new File("target/quarkus-generated-doc/config/commafeed-server.adoc"), StandardCharsets.UTF_8);
|
2024-08-18 21:15:48 +02:00
|
|
|
|
|
|
|
|
Assertions.assertLinesMatch(versionedDocumentationFile.lines(), generatedDocumentationFile.lines());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|