private void testTarget(final Target target) {
Runnable testJob = new Runnable() {
@Override
public void run() {
TargetConnectionTester tester = new TargetConnectionTester(target);
TestConnectionResult result = tester.testConnection();
showResult(target, result);
persistResult(target, result);
}
};
runAndTest(target, testJob);