Closedown

This commit is contained in:
boccioli_m
2015-06-09 14:56:20 +02:00
parent b55b9c13d4
commit 495d462fd6

View File

@@ -396,13 +396,14 @@ public class TestingList extends Panel {
sTestName = new java.io.File( "." ).getCanonicalPath()+ TESTS_TESTS_DEFAULT_DIR + prop.getProperty("tests");
//config of device was loaded. now load the config of each test belonging to the device
testsFolder = new File(sTestName);
File[] listOfTests = testsFolder.listFiles();
for (File listOfTest : listOfTests) {
if (listOfTest.isDirectory()) {
this.jTextField1.append("\nTest " + listOfTest.getName());
if(testsFolder.exists() && testsFolder.isDirectory()){
File[] listOfTests = testsFolder.listFiles();
for (File listOfTest : listOfTests) {
if (listOfTest.isDirectory()) {
this.jTextField1.append("\nTest " + listOfTest.getName());
}
}
}
}
addToTable(prop.getProperty("name"), prop.getProperty("description"), prop.getProperty("tests"));
this.jTextField1.append(prop.getProperty("name"));
this.jTextField1.append(prop.getProperty("description"));