fix unit tests (call init() after creating an SDKManager instance.
authortimkelly
Wed, 08 Sep 2010 17:17:20 -0500
changeset 1961 da3ecb4146dd
parent 1960 69011681f445
child 1969 e807f63ea52a
child 1970 10946e2735f8
fix unit tests (call init() after creating an SDKManager instance.
core/com.nokia.carbide.cpp.sdk.core.test/src/com/nokia/carbide/cpp/sdk/core/test/TestCarbideSDKCache.java
--- 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));