package com.example.tests;

import java.io.FileReader;
import java.util.Properties;
import java.util.logging.Logger;

import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Optional;
import org.testng.annotations.Parameters;

import com.example.fw.AppManager;

public class TestBase {

	protected static Logger log = Logger.getLogger("TEST");

	protected static AppManager app;

	@BeforeClass
	@Parameters({ "configFile" })
	public void setUp(@Optional String configFile) throws Exception {
		if (configFile == null) {
			configFile = System.getProperty("configFile");
		}
		if (configFile == null) {
			configFile = System.getenv("configFile");
		}
		if (configFile == null) {
			configFile = "application.properties";
		}
		Properties properties = new Properties();
		properties.load(new FileReader(configFile));
		log.info("setUp start");
		app = AppManager.getInstance(properties);
		log.info("setUp end");
	}

	//@AfterTest
	public void tearDown() throws Exception {
		log.info("tearDown start");
		AppManager.getInstance(null).stop();
		log.info("tearDown end");
	}

}

@@ -972,10 +972,8 @@
 %7D%0A%0A%09
-//
 @Aft

Update TestBase.java