File tree Expand file tree Collapse file tree
approvaltests-tests/src/test/java/org/approvaltests/reporters
approvaltests/src/main/java/org/approvaltests/reporters Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ public void testEnvironmentVariable()
1818 """ ;
1919 try
2020 {
21- EnvironmentVariableReporter .ENVIRONMENT_VARIABLES = (s ) -> "DiffReporter,QuietReporter" ;
21+ EnvironmentVariableReporter .GET_ENVIRONMENT_VARIABLE = (s ) -> "DiffReporter,QuietReporter" ;
2222 var reporter = new EnvironmentVariableReporter ().getReporter ();
2323 Approvals .verify (reporter , new Options ().inline (expected ));
2424 }
2525 finally
2626 {
27- EnvironmentVariableReporter .ENVIRONMENT_VARIABLES = System ::getenv ;
27+ EnvironmentVariableReporter .GET_ENVIRONMENT_VARIABLE = System ::getenv ;
2828 }
2929 }
3030
Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ public class EnvironmentVariableReporter implements ApprovalFailureReporter
5252 .and ("WindowsDiffReporter" , ReportWithDiffToolOnWindows .class );
5353 // @formatter:on
5454 public static final String ENVIRONMENT_VARIABLE_NAME = "APPROVAL_TESTS_USE_REPORTER" ;
55- public static Function1 <String , String > ENVIRONMENT_VARIABLES = System ::getenv ;
55+ public static Function1 <String , String > GET_ENVIRONMENT_VARIABLE = System ::getenv ;
5656 public static final EnvironmentVariableReporter INSTANCE = new EnvironmentVariableReporter ();
5757 private ApprovalFailureReporter reporter = null ;
5858 public EnvironmentVariableReporter ()
5959 {
60- String environmentValue = ENVIRONMENT_VARIABLES .call (ENVIRONMENT_VARIABLE_NAME );
60+ String environmentValue = GET_ENVIRONMENT_VARIABLE .call (ENVIRONMENT_VARIABLE_NAME );
6161 if (environmentValue == null )
6262 { return ; }
6363 Queryable <String > split = Queryable .of (environmentValue .split ("," ));
You can’t perform that action at this time.
0 commit comments