Я пытаюсь вызвать MyTest()
метод тестирования из моего build.gradle
файла.как я могу позвонить ниже класса из моего build.gradle
файла?Я совершенно новичок в Java и gradle
public class Test{
public void MyTest() throws IOException, InterruptedException {
String filePathString=System.getProperty("user.dir")+"\\target\\site\\serenity\\index.html";
Path path = Paths.get(filePathString);
System.out.println("*********************Path of file***********************************"+path);
try {
if (Files.exists(path)) {
System.out.println("File Found");
}
else{
System.out.println("File not Found");
}
}catch (Exception e) {
e.printStackTrace();
}
}