Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Apr 10, 2023
1 parent 02a3ee9 commit c622fd3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
<mysql.driver.version>8.0.32</mysql.driver.version>
<commonmark.version>0.21.0</commonmark.version>
<esapi.version>2.5.1.0</esapi.version>
<spotless.version>2.17.5</spotless.version>
<spotless.version>2.30.0</spotless.version>
<argLine>-Xmx786m</argLine>
<log4j2.version>2.17.2</log4j2.version>
<okhttp3.version>4.8.1</okhttp3.version>
<logback.version>1.2.9</logback.version>
<logback.version>1.2.12</logback.version>
</properties>

<profiles>
Expand Down Expand Up @@ -557,7 +557,7 @@
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>0.50</minimum>
<minimum>0.20</minimum>
</limit>
</limits>
</rule>
Expand Down
15 changes: 15 additions & 0 deletions src/test/java/com/justjournal/utility/SpellingTests.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.justjournal.utility;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

class SpellingTests {

@Test
void testSpelling() {
Spelling spelling = new Spelling();
var result = spelling.checkSpelling("foobar");
assertEquals("", result); // dict file not available for tests
}
}

0 comments on commit c622fd3

Please sign in to comment.