* well as the namespace of its previously configured resources
*
* @REVISIT: this test fails on maven but is ok on eclipse...
*/
public void _testWorkspaceSyncsUpWithNamespace() {
final FormTester formTester = tester.newFormTester("dataStoreForm");
print(tester.getLastRenderedPage(), true, true);
final String wsDropdownPath = "dataStoreForm:workspacePanel:border:paramValue";
final String namespaceParamPath = "dataStoreForm:parametersPanel:parameters:1:parameterPanel:paramValue";
final String directoryParamPath = "dataStoreForm:parametersPanel:parameters:0:parameterPanel:border:paramValue";
final Catalog catalog = getCatalog();
tester.assertModelValue(wsDropdownPath, catalog.getWorkspaceByName(MockData.CITE_PREFIX));
// tester.assertModelValue(namespaceParamPath, getCatalog().getNamespaceByPrefix(
// MockData.CITE_PREFIX));
tester.assertModelValue(namespaceParamPath, catalog.getNamespaceByPrefix(
MockData.CITE_PREFIX).getURI());
Serializable directory = store.getConnectionParameters().get("directory");
tester.assertModelValue(directoryParamPath, directory);
WorkspaceInfo expectedWorkspace = catalog.getWorkspaceByName(MockData.CDF_PREFIX);
NamespaceInfo expectedNamespace = catalog.getNamespaceByPrefix(MockData.CDF_PREFIX);
// select the fifth item in the drop down, which is the cdf workspace
formTester.select("workspacePanel:border:paramValue", 4);
Component wsDropDown = tester.getComponentFromLastRenderedPage(wsDropdownPath);
tester.executeAjaxEvent(wsDropDown, "onchange");
// final String namespaceParamPath =
// "dataStoreForm:parameters:1:parameterPanel:border:paramValue";