удаление отладочной печати сравнения и не только
This commit is contained in:
@@ -199,7 +199,6 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
}
|
||||
//---
|
||||
public void CreateTestFromSingleFile(Account account, ServerSapfor sapfor, Group group, File file, String testDescription) throws Exception {
|
||||
System.out.println("Создание теста " + file.getName());
|
||||
Test test = new Test();
|
||||
test.description = testDescription;
|
||||
test.sender_name = account.name;
|
||||
@@ -216,11 +215,9 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
//--
|
||||
Group oldGroup = groups.getGroupByDescription(group.language, group.description);
|
||||
if (oldGroup == null) {
|
||||
System.out.println("group " + Utils.Brackets(group.description) + " not found. create.");
|
||||
Insert(group);
|
||||
for (File file : files) {
|
||||
String testDescription = Utils.getNameWithoutExtension(file.getName()) + "_" + group.language.getDVMCompile();
|
||||
System.out.println("test " + Utils.Brackets(testDescription) + " create"); //добавить тест.
|
||||
CreateTestFromSingleFile(account, sapfor, group, file, testDescription);
|
||||
}
|
||||
} else {
|
||||
@@ -228,10 +225,8 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
String testDescription = Utils.getNameWithoutExtension(file.getName()) + "_" + group.language.getDVMCompile();
|
||||
Test oldTest = tests.getTestByDescription(oldGroup.id, testDescription);
|
||||
if (oldTest == null) {
|
||||
System.out.println("test " + Utils.Brackets(testDescription) + " not found. create"); //добавить тест.
|
||||
CreateTestFromSingleFile(account, sapfor, oldGroup, file, testDescription);
|
||||
} else {
|
||||
System.out.println(Utils.Brackets(testDescription) + " found. rewrite"); //добавить тест.
|
||||
SaveTestFromSingleFile(sapfor, group, oldTest, file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user