@@ -119,14 +119,13 @@ function test_env_run(tc)
119119methods (Test , TestTags = {' java_exe' })
120120
121121function test_Java_stdout_stderr(tc , lang_out )
122- import matlab .unittest .constraints .IsFile
123122
124123cwd = fileparts(mfilename(' fullpath' ));
125124exe = cwd + " /stdout_stderr_" + lang_out + " .exe" ;
126125
127126switch lang_out
128- case " fortran" , tc .assumeThat(exe , IsFile )
129- case {" c" , " cpp" }, tc .assertThat(exe , IsFile )
127+ case " fortran" , tc .assumeThat(exe , matlab . unittest . constraints . IsFile )
128+ case {" c" , " cpp" }, tc .assertThat(exe , matlab . unittest . constraints . IsFile )
130129 otherwise , tc .assertTrue(false , " Unknown language: " + lang_out )
131130end
132131
@@ -143,14 +142,13 @@ function test_Java_stdout_stderr(tc, lang_out)
143142
144143
145144function test_java_stdin(tc , lang_in )
146- import matlab .unittest .constraints .IsFile
147145
148146cwd = fileparts(mfilename(' fullpath' ));
149147exe = cwd + " /stdin_" + lang_in + " .exe" ;
150148
151149switch lang_in
152- case " fortran" , tc .assumeThat(exe , IsFile )
153- case {" c" , " cpp" }, tc .assertThat(exe , IsFile )
150+ case " fortran" , tc .assumeThat(exe , matlab . unittest . constraints . IsFile )
151+ case {" c" , " cpp" }, tc .assertThat(exe , matlab . unittest . constraints . IsFile )
154152 otherwise , tc .assertTrue(false , " Unknown language: " + lang_in )
155153end
156154
0 commit comments