Merged 5.0.N (5.0.4) to 5.1.N (5.1.2)

128000 gjames: Converted the field to a local variable


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@128046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrei Rebegea
2016-06-08 14:59:30 +00:00
parent 2aa16c1219
commit 7335a8fdee

View File

@@ -87,14 +87,8 @@ public class SOLRAPIClientTest extends TestCase
private SOLRAPIClient tamperWithClient;
private TenantService tenantService;
private NamespaceDAO namespaceDAO;
private DictionaryDAOImpl dictionaryDAO;
private DictionaryComponent dictionaryComponent;
private CMISStrictDictionaryService cmisDictionaryService;
@@ -126,10 +120,10 @@ public class SOLRAPIClientTest extends TestCase
{
if(client == null)
{
tenantService = new SingleTServiceImpl();
TenantService tenantService = new SingleTServiceImpl();
dictionaryDAO = new DictionaryDAOImpl();
namespaceDAO = dictionaryDAO;
NamespaceDAO namespaceDAO = dictionaryDAO;
dictionaryDAO.setTenantService(tenantService);
CompiledModelsCache compiledModelsCache = new CompiledModelsCache();
@@ -149,7 +143,7 @@ public class SOLRAPIClientTest extends TestCase
dictionaryDAO.setResourceClassLoader(getResourceClassLoader());
dictionaryDAO.init();
dictionaryComponent = new DictionaryComponent();
DictionaryComponent dictionaryComponent = new DictionaryComponent();
dictionaryComponent.setDictionaryDAO(dictionaryDAO);
dictionaryComponent.setMessageLookup(new StaticMessageLookup());