Skip to content

Commit 11efe0f

Browse files
committed
t Fixing test class names
1 parent 57871ef commit 11efe0f

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

approvaltests-tests/src/test/java/org/approvaltests/DocumentHelpers.java renamed to approvaltests-tests/src/test/java/org/approvaltests/DocumentHelpersTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.lang.reflect.Type;
1919
import java.util.List;
2020

21-
public class DocumentHelpers
21+
public class DocumentHelpersTest
2222
{
2323
@Test
2424
void listAllVerifyFunctions()
@@ -32,15 +32,15 @@ void listAllVerifyFunctions()
3232
@Test
3333
public void testLineNumberOfThisMethod() throws NoSuchMethodException
3434
{
35-
Method method = DocumentHelpers.class.getMethod("testLineNumberOfThisMethod");
35+
Method method = DocumentHelpersTest.class.getMethod("testLineNumberOfThisMethod");
3636
CtMethod m = getMethodX(method);
3737
Assertions.assertEquals(33.0, getLineNumber(m), 1.01);
3838
}
3939
public static int getLineNumber(CtMethod m)
4040
{
4141
int modifier = 0;
4242
String simpleName = m.getDeclaringClass().getSimpleName();
43-
if (simpleName.equals("DocumentHelpers"))
43+
if (simpleName.equals("DocumentHelpersTest"))
4444
{
4545
modifier = -2;
4646
}
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
Test Methods in files that do not contain the word 'Test' (these will not be run in our CI build)
22

33

4-
org.approvaltests.DocumentHelpers.listAllVerifyFunctions
5-
org.approvaltests.DocumentHelpers.testLineNumberOfThisMethod
6-
org.approvaltests.DocumentHelpers.testLineNumbers

approvaltests/docs/reference/Verify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
## API
1010
Approvals provides many convenience functions to verify different scenarios. Here is a list:
1111

12-
* Approvals. [verify ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/Approvals.java#L191-L194) (ApprovalApprover) <!-- include: DocumentHelpers.listAllVerifyFunctions.approved.md -->
12+
* Approvals. [verify ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/Approvals.java#L191-L194) (ApprovalApprover) <!-- include: DocumentHelpersTest.listAllVerifyFunctions.approved.md -->
1313
* Approvals. [verify ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/Approvals.java#L174-L177) (ApprovalWriter)
1414
* Approvals. [verify ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/Approvals.java#L166-L169) (ApprovalWriter,ApprovalNamer)
1515
* Approvals. [verify ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/Approvals.java#L220-L223) (ExecutableCommand)

0 commit comments

Comments
 (0)