File tree 1 file changed +4
-4
lines changed
approvaltests-tests/src/test/java/org/approvaltests
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
import org .approvaltests .internal .logs .ApprovedFileLog ;
5
5
import org .approvaltests .internal .logs .LoggingUtils ;
6
6
import org .approvaltests .namer .ApprovalNamer ;
7
- import org .junit .Assert ;
8
7
import org .junit .jupiter .api .Test ;
9
8
10
9
import java .io .File ;
11
10
12
11
import 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 ;
13
14
14
15
public class ApprovedFileLogTest
15
16
{
@@ -20,11 +21,10 @@ void testLogging()
20
21
ApprovalNamer approvalNamer = Approvals .createApprovalNamer ();
21
22
File approvedFile = approvalNamer .getApprovedFile (".txt" );
22
23
String prelog = FileUtils .readFile (file );
23
- // TODO
24
- Assert .assertFalse (prelog .contains (approvedFile .getAbsolutePath ()));
24
+ assertFalse (prelog .contains (approvedFile .getAbsolutePath ()));
25
25
Approvals .verify ("anything" );
26
26
String postlog = FileUtils .readFile (file );
27
- Assert . assertTrue (postlog .contains (approvedFile .getAbsolutePath ()));
27
+ assertTrue (postlog .contains (approvedFile .getAbsolutePath ()));
28
28
}
29
29
@ Test
30
30
void testTempDirectoryGetsGitIgnore ()
You can’t perform that action at this time.
0 commit comments