fix unit tests (call init() after creating an SDKManager instance.
--- a/core/com.nokia.carbide.cpp.sdk.core.test/src/com/nokia/carbide/cpp/sdk/core/test/TestCarbideSDKCache.java Tue Sep 07 16:31:38 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core.test/src/com/nokia/carbide/cpp/sdk/core/test/TestCarbideSDKCache.java Wed Sep 08 17:17:20 2010 -0500
@@ -65,6 +65,7 @@
public void testCacheCreation() throws Exception {
final TestSDKManager manager = new TestSDKManager();
+ ((AbstractSDKManager)manager).init();
manager.clearCache();
IJobChangeListener listener = new IJobChangeListener() {
@@ -96,6 +97,7 @@
public void testCacheModification() throws Exception {
final TestSDKManager manager = new TestSDKManager();
+ ((AbstractSDKManager)manager).init();
manager.scanSDKs();
manager.getScanJob().join();
assertTrue(manager.getSDKList().isEmpty() == manager.getCache().isEmpty());
@@ -119,6 +121,7 @@
assertNull(SDKCacheUtils.getCache().getCache(SBSv2QueryUtils.PRODUCT_CACHE_KEY));
assertNull(SDKCacheUtils.getCache().getCache(SBSv2QueryUtils.CONFIG_CACHE_KEY));
final TestSDKManager manager = new TestSDKManager();
+ ((AbstractSDKManager)manager).init();
manager.scanSDKs();
manager.getScanJob().join();
assertNull(SDKCacheUtils.getCache().getCache(SBSv2QueryUtils.ALIAS_CACHE_KEY));