mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
22 lines
748 B
Java
22 lines
748 B
Java
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);
|
|
String generatedDocumentationFile = FileUtils
|
|
.readFileToString(new File("target/quarkus-generated-doc/config/commafeed-server.adoc"), StandardCharsets.UTF_8);
|
|
|
|
Assertions.assertLinesMatch(versionedDocumentationFile.lines(), generatedDocumentationFile.lines());
|
|
}
|
|
|
|
} |