File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
main/java/org/approvaltests
test/java/org/approvaltests/namer Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -398,24 +398,6 @@ private static String getFileNameList(List<File> mismatched)
398398 return Query .select (mismatched , a -> a .getName ()).toString ();
399399 }
400400
401- /**
402- * @deprecated Use JsonApprovals
403- */
404- @ Deprecated
405- public static void verifyJson (String json )
406- {
407- JsonApprovals .verifyJson (json );
408- }
409-
410- /**
411- * @deprecated Use JsonApprovals
412- */
413- @ Deprecated
414- public static void verifyJson (String json , Options options )
415- {
416- JsonApprovals .verifyJson (json , options );
417- }
418-
419401 /**
420402 * @deprecated View method source for example.
421403 */
Original file line number Diff line number Diff line change 55import com .spun .util .tests .TestUtils ;
66import com .spun .util .tests .TestUtils .SourceDirectoryRestorer ;
77import org .approvaltests .Approvals ;
8+ import org .approvaltests .JsonApprovals ;
89import org .approvaltests .integrations .junit5 .JupiterApprovals ;
910import org .junit .jupiter .api .Assertions ;
1011import org .junit .jupiter .api .DisplayName ;
@@ -145,7 +146,7 @@ Collection<DynamicTest> testMissingOptions()
145146 switch (number )
146147 {
147148 case 1 :
148- Approvals . verifyAsJson ("This should work: " + number , o );
149+ JsonApprovals . verifyJson ("This should work: " + number , o );
149150 break ;
150151 case 2 :
151152 RuntimeException result = assertThrows (RuntimeException .class ,
You can’t perform that action at this time.
0 commit comments