Project: talenddataquality
Issue TDQ-12116: let junit test case CWMPluginTest run successfully
when run the junit test case CWMPluginTest , there will get many NPE: {code} EclipseTestRunner.run(EclipseTestRunner.java:208) [exec] org.eclipse.swtbot.eclipse.junit.headless.UITestApplication.runTests(UITestApplication.java:116) [exec] org.eclipse.e4.ui.internal.workbench.swt.E4Testable$1.run(E4Testable.java:73) [exec] java.lang.Thread.run(Thread.java:745) [exec] ERROR: java.lang.NullPointerException [exec] java.lang.NullPointerException [exec] net.sourceforge.sqlexplorer.service.SqlexplorerService.getPropertyFile(SqlexplorerService.java:427) [exec] net.sourceforge.sqlexplorer.service.SqlexplorerService.addConnetionAliasToSQLPlugin(SqlexplorerService.java:296) [exec] org.talend.dq.helper.SqlExplorerUtils.addConnetionAliasToSQLPlugin(SqlExplorerUtils.java:225) [exec] org.talend.dq.CWMPlugin.addConnetionAliasToSQLPlugin(CWMPlugin.java:76) [exec] org.talend.dq.CWMPluginTest.runAddConnetionAliasToSQLPlugin(CWMPluginTest.java:87) [exec] org.talend.dq.CWMPluginTest.testAddConnetionAliasToSQLPlugin_supportDB(CWMPluginTest.java:79) [exec] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [exec] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [exec] java.lang.reflect.Method.invoke(Method.java:498) [exec] junit.framework.TestCase.runTest(TestCase.java:176) [exec] junit.framework.TestCase.runBare(TestCase.java:141) [exec] junit.framework.TestResult$1.protect(TestResult.java:122) [exec] junit.framework.TestResult.runProtected(TestResult.java:142) [exec] junit.framework.TestResult.run(TestResult.java:125) [exec] junit.framework.TestCase.run(TestCase.java:129) [exec] junit.framework.TestSuite.runTest(TestSuite.java:255) [exec] junit.framework.TestSuite.run(TestSuite.java:250) [exec] org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) [exec] org.junit.runners.Suite.runChild(Suite.java:127) [exec] org.talend.test.GenericTestsJUnit4Suite.runChild(GenericTestsJUnit4Suite.java:151) [exec] org.junit.runners.Suite.runChild(Suite.java:26) [exec] org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [exec] org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [exec] org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [exec] org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [exec] org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [exec] org.junit.runners.ParentRunner.run(ParentRunner.java:309) [exec] org.talend.test.GenericTestsJUnit4Suite.run(GenericTestsJUnit4Suite.java:176) [exec] junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38) [exec] org.eclipse.swtbot.eclipse.junit.headless.EclipseTestRunner.run(EclipseTestRunner.java:350) [exec] org.eclipse.swtbot.eclipse.junit.headless.EclipseTestRunner.run(EclipseTestRunner.java:208) [exec] org.eclipse.swtbot.eclipse.junit.headless.UITestApplication.runTests(UITestApplication.java:116) [exec] org.eclipse.e4.ui.internal.workbench.swt.E4Testable$1.run(E4Testable.java:73) [exec] java.lang.Thread.run(Thread.java:745) [exec] [exec] !ENTRY org.talend.platform.logging 4 0 2016-05-27 09:02:41.929 [exec] !MESSAGE 2016-05-27 09:02:41,929 ERROR net.sourceforge.sqlexplorer.service.SqlexplorerService - java.lang.NullPointerException [exec] [exec] !STACK 0 [exec] java.lang.NullPointerException [exec] net.sourceforge.sqlexplorer.service.SqlexplorerService.getPropertyFile(SqlexplorerService.java:427) [exec] net.sourceforge.sqlexplorer.service.SqlexplorerService.addConnetionAliasToSQLPlugin(SqlexplorerService.java:296) [exec] org.talend.dq.helper.SqlExplorerUtils.addConnetionAliasToSQLPlugin(SqlExplorerUtils.java:225) [exec] org.talend.dq.CWMPlugin.addConnetionAliasToSQLPlugin(CWMPlugin.java:76) [exec] org.talend.dq.CWMPluginTest.runAddConnetionAliasToSQLPlugin(CWMPluginTest.java:87) [exec] org.talend.dq.CWMPluginTest.testAddConnetionAliasToSQLPlugin_supportDB(CWMPluginTest.java:79) [exec] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [exec] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [exec] java.lang.reflect.Method.invoke(Method.java:498) [exec] junit.framework.TestCase.runTest(TestCase.java:176) [exec] junit.framework.TestCase.runBare(TestCase.java:141) [exec] junit.framework.TestResult$1.protect(TestResult.java:122) [exec] junit.framework.TestResult.runProtected(TestResult.java:142) [exec] junit.framework.TestResult.run(TestResult.java:125) [exec] junit.framework.TestCase.run(TestCase.java:129) [exec] junit.framework.TestSuite.runTest(TestSuite.java:255) [exec] junit.framework.TestSuite.run(TestSuite.java:250) [exec] org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) [exec] org.junit.runners.Suite.runChild(Suite.java:127) [exec] org.talend.test.GenericTestsJUnit4Suite.runChild(GenericTestsJUnit4Suite.java:151) [exec] org.junit.runners.Suite.runChild(Suite.java:26) [exec] org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [exec] org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [exec] org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [exec] org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [exec] org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [exec] org.junit.runners.ParentRunner.run(ParentRunner.java:309) [exec] org.talend.test.GenericTestsJUnit4Suite.run(GenericTestsJUnit4Suite.java:176) [exec] junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38) [exec] org.eclipse.swtbot.eclipse.junit.headless.EclipseTestRunner.run(EclipseTestRunner.java:350) [exec] org.eclipse.swtbot.eclipse.junit.headless.EclipseTestRunner.run(EclipseTestRunner.java:208) [exec] org.eclipse.swtbot.eclipse.junit.headless.UITestApplication.runTests(UITestApplication.java:116) [exec] org.eclipse.e4.ui.internal.workbench.swt.E4Testable$1.run(E4Testable.java:73) [exec] java.lang.Thread.run(Thread.java:745) [exec] ERROR: java.lang.NullPointerException [exec] java.lang.NullPointerException [exec] net.sourceforge.sqlexplorer.service.SqlexplorerService.getPropertyFile(SqlexplorerService.java:427) [exec] net.sourceforge.sqlexplorer.service.SqlexplorerService.addConnetionAliasToSQLPlugin(SqlexplorerService.java:296) [exec] org.talend.dq.helper.SqlExplorerUtils.addConnetionAliasToSQLPlugin(SqlExplorerUtils.java:225) [exec] org.talend.dq.CWMPlugin.addConnetionAliasToSQLPlugin(CWMPlugin.java:76) [exec] org.talend.dq.CWMPluginTest.runAddConnetionAliasToSQLPlugin(CWMPluginTest.java:87) [exec] org.talend.dq.CWMPluginTest.testAddConnetionAliasToSQLPlugin_supportDB(CWMPluginTest.java:79) [exec] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [exec] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [exec] java.lang.reflect.Method.invoke(Method.java:498) [exec] junit.framework.TestCase.runTest(TestCase.java:176) [exec] junit.framework.TestCase.runBare(TestCase.java:141) [exec] junit.framework.TestResult$1.protect(TestResult.java:122) [exec] junit.framework.TestResult.runProtected(TestResult.java:142) [exec] junit.framework.TestResult.run(TestResult.java:125) [exec] junit.framework.TestCase.run(TestCase.java:129) [exec] junit.framework.TestSuite.runTest(TestSuite.java:255) [exec] junit.framework.TestSuite.run(TestSuite.java:250) [exec] org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) [exec] org.junit.runners.Suite.runChild(Suite.java:127) [exec] org.talend.test.GenericTestsJUnit4Suite.runChild(GenericTestsJUnit4Suite.java:151) [exec] org.junit.runners.Suite.runChild(Suite.java:26) [exec] org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [exec] org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [exec] org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [exec] org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [exec] org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [exec] org.junit.runners.ParentRunner.run(ParentRunner.java:309) [exec] org.talend.test.GenericTestsJUnit4Suite.run(GenericTestsJUnit4Suite.java:176) [exec] junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38) [exec] org.eclipse.swtbot.eclipse.junit.headless.EclipseTestRunner.run(EclipseTestRunner.java:350) [exec] org.eclipse.swtbot.eclipse.junit.headless.EclipseTestRunner.run(EclipseTestRunner.java:208) [exec] org.eclipse.swtbot.eclipse.junit.headless.UITestApplication.runTests(UITestApplication.java:116) [exec] org.eclipse.e4.ui.internal.workbench.swt.E4Testable$1.run(E4Testable.java:73) [exec] java.lang.Thread.run(Thread.java:745) {code} more details see: http://192.168.31.21:8080/view/Junits_Studio/job/Studio_JUnit_master_DQ/203/console
Story points: 1