File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
approvaltests-tests/src/test/java/org/approvaltests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44import org .approvaltests .internal .logs .ApprovedFileLog ;
55import org .approvaltests .internal .logs .LoggingUtils ;
66import org .approvaltests .namer .ApprovalNamer ;
7- import org .junit .Assert ;
87import org .junit .jupiter .api .Test ;
98
109import java .io .File ;
1110
1211import static org .junit .jupiter .api .Assertions .assertEquals ;
12+ import static org .junit .jupiter .api .Assertions .assertFalse ;
13+ import static org .junit .jupiter .api .Assertions .assertTrue ;
1314
1415public class ApprovedFileLogTest
1516{
@@ -20,11 +21,10 @@ void testLogging()
2021 ApprovalNamer approvalNamer = Approvals .createApprovalNamer ();
2122 File approvedFile = approvalNamer .getApprovedFile (".txt" );
2223 String prelog = FileUtils .readFile (file );
23- // TODO
24- Assert .assertFalse (prelog .contains (approvedFile .getAbsolutePath ()));
24+ assertFalse (prelog .contains (approvedFile .getAbsolutePath ()));
2525 Approvals .verify ("anything" );
2626 String postlog = FileUtils .readFile (file );
27- Assert . assertTrue (postlog .contains (approvedFile .getAbsolutePath ()));
27+ assertTrue (postlog .contains (approvedFile .getAbsolutePath ()));
2828 }
2929 @ Test
3030 void testTempDirectoryGetsGitIgnore ()
You can’t perform that action at this time.
0 commit comments